How itzaadiiiii/eks-project-realtime-mimic works
This is a Go ecommerce application deployed as microservices. A customer browses products and submits an order through the API gateway; the order service records it and emits work to a queue. A worker coordinates inventory reservation, payment, order confirmation, notification, and shipping, while the dashboard exposes order and operational status. The graph preserves the documented workflow and the major services. Some service-to-service and queue behavior is documented or visible in excerpts; unsampled consumer, gateway, and infrastructure details are not inferred.
Main entry points: api-gateway/main.go API gateway · worker/main.go Order worker · statefullset.yaml PostgreSQL · order-service/main.go Order service
Components 14
Customer access
- API gateway
services/api-gateway/main.go - Dashboard API
services/dashboard-api/main.go - Dashboard UI
services/dashboard-api/static/index.html
Commerce services
- Inventory service
services/inventory-service/main.go - Order service
services/order-service/main.go - Payment service
services/payment-service/main.go - Shipping service
services/shipping-service/main.go - Notification service
services/notification-service/main.go
Background processing
- Order worker
services/worker/main.go - Scheduler
services/scheduler/main.go
Application state
- SQS queue
- PostgreSQL
kubernetes/database/postgres/statefullset.yaml - Redis
kubernetes/database/redis/statefullset.yaml
Other components
- Customer
Connections 26
- Customer → API gateway: browses and orders
README.md - API gateway → Order service: routes requests
services/api-gateway/main.go - API gateway → Inventory service: routes requests
services/api-gateway/main.go - API gateway → Payment service: routes requests
services/api-gateway/main.go - API gateway → Notification service: routes requests
services/api-gateway/main.go - API gateway → Shipping service: routes requests
services/api-gateway/main.go - API gateway → Dashboard API: routes requests
services/api-gateway/main.go - Customer → Dashboard UI: views status
README.md - Dashboard UI → Dashboard API: loads dashboard
- Order service → SQS queue: publishes order events
services/order-service/main.go - Payment service → SQS queue: publishes payment events
services/payment-service/main.go - Shipping service → SQS queue: publishes shipment events
services/shipping-service/main.go - SQS queue → Order worker: feeds order work
README.md - Order worker → Inventory service: reserves or releases
services/worker/main.go - Order worker → Payment service: requests payment
services/worker/main.go - Order worker → Order service: updates order status
services/worker/main.go - Order worker → Notification service: requests notification
services/worker/main.go - Order worker → Shipping service: creates shipment
services/worker/main.go - Order service → PostgreSQL: reads and writes
services/order-service/main.go - Inventory service → PostgreSQL: reads and writes
services/inventory-service/main.go - Payment service → PostgreSQL: reads and writes
services/payment-service/main.go - Shipping service → PostgreSQL: reads and writes
services/shipping-service/main.go - Notification service → PostgreSQL: reads and writes
services/notification-service/main.go - Dashboard API → PostgreSQL: reads metrics
services/dashboard-api/main.go - Scheduler → PostgreSQL: queries and updates
services/scheduler/main.go - API gateway → Redis: uses rate limiting
services/api-gateway/main.go