
PlantUML
Edit PlantUML in VPasCode
@startuml
!include https://raw.githubusercontent.com/plantuml-stdlib/C4-PlantUML/master/C4_Container.puml
title PayQuick - Container Diagram
Person(customer, "Customer", "Uses mobile app or web interface")
Person(merchant, "Merchant", "Uses web dashboard")
System_Boundary(payquick, "PayQuick Platform") {
Container(mobile_app, "Mobile App", "React Native, TypeScript", "Provides UI for customers")
Container(web_app, "Web App", "React, TypeScript", "Provides admin and merchant dashboard")
Container(api_gateway, "API Gateway", "Node.js, Express", "Handles routing, authentication, and rate limiting")
Container(payment_service, "Payment Service", "Java, Spring Boot", "Processes payments and manages transactions")
Container(notification_service, "Notification Service", "Python, FastAPI", "Sends SMS and email notifications")
ContainerDb(database, "Database", "PostgreSQL", "Stores user accounts, transactions, and balances")
ContainerDb(cache, "Cache", "Redis", "Stores session data and frequently accessed records")
ContainerQueue(queue, "Message Queue", "RabbitMQ", "Handles asynchronous notification processing")
}
System_Ext(bank_api, "Banking API", "External bank integration")
System_Ext(sms_provider, "Twilio SMS API", "External SMS delivery")
Rel(customer, mobile_app, "Uses", "HTTPS")
Rel(merchant, web_app, "Uses", "HTTPS")
Rel(mobile_app, api_gateway, "Makes API calls to", "HTTPS/JSON")
Rel(web_app, api_gateway, "Makes API calls to", "HTTPS/JSON")
Rel(api_gateway, payment_service, "Routes requests to", "gRPC")
Rel(api_gateway, notification_service, "Routes requests to", "gRPC")
Rel(payment_service, database, "Reads/writes data to", "JDBC")
Rel(payment_service, cache, "Caches frequently used data in", "Redis Protocol")
Rel(notification_service, queue, "Publishes events to", "AMQP")
Rel(notification_service, sms_provider, "Sends SMS via", "REST API")
Rel(payment_service, bank_api, "Processes transfers via", "HTTPS")
@enduml

