How raphaeldiscky/go-micro-commerce works
Go Micro Commerce is a distributed commerce application: customers and administrators use a web storefront backed by independently deployed Go services, with API gateways and federated GraphQL interfaces. The main customer path spans authentication, product discovery, cart and checkout, payment, fulfillment, and order updates; chat and notifications are parallel capabilities. The graph retains these documented product stages and key asynchronous and real-time mechanisms. Evidence is limited to the README, tree, and supplied excerpts/index; unshown service-to-service wiring is not asserted.
Main entry points: graphql-gateway Federated gateway · internal Order management · service Cart and checkout · auth_service.go Authentication
Components 21
Web experience
- Storefront
frontend/src/routes - GraphQL clients
frontend/src/lib/graphql
API access
- Federated gateway
graphql-gateway - REST gateway
api-gateway/internal/gateway
Commerce services
- Authentication
auth-service/internal/service/auth_service.go - Product catalog
product-service/internal - Product search
search-service/internal/service/search_service.go - Cart and checkout
cart-service/internal/service - Order management
order-service/internal - Payments
payment-service/internal - Fulfillment
fulfillment-service/internal/service/fulfillment_service.go
Customer engagement
- Chat
chat-service/internal - Notifications
notification-service/internal/subscription/manager.go
Messaging and data
- Event streaming
- Redis pub/sub
- Service databases
- Search index
- Workflow engine
pkg/temporal/schedule_manager.go
Other components
- Customer
- Carrier service
- Payment provider
Connections 30
- Customer → Storefront: uses
- Storefront → GraphQL clients: queries
- GraphQL clients → Federated gateway: sends GraphQL
- Customer → REST gateway: calls REST
- Federated gateway → Authentication: routes federation
- Federated gateway → Product catalog: routes federation
- Federated gateway → Cart and checkout: routes federation
- Federated gateway → Order management: routes federation
- Federated gateway → Payments: routes federation
- REST gateway → Product catalog: proxies requests
- REST gateway → Authentication: proxies requests
- Customer → Authentication: signs in
- Customer → Product search: searches products
- Product search → Search index: queries index
- Customer → Cart and checkout: checks out
- Cart and checkout → Service databases: persists sessions
- Customer → Payments: pays
- Payments → Payment provider: charges
- Order management → Fulfillment: requests fulfillment
- Order management → Workflow engine: orchestrates saga
- Fulfillment → Carrier service: creates shipment
fulfillment-service/internal/service/fulfillment_service.go - Fulfillment → Service databases: stores fulfillment
- Authentication → Service databases: stores identity
- Order management → Event streaming: publishes events
- Event streaming → Notifications: delivers events
- Cart and checkout → Event streaming: publishes events
- Chat → Redis pub/sub: subscribes events
chat-service/internal/subscription/manager.go - Notifications → Redis pub/sub: subscribes events
notification-service/internal/subscription/manager.go - Customer → Chat: chats
- Customer → Notifications: receives updates