Microservices E-Commerce
Intermediate
30 XP
You're trying this as a guest: your result shows here but isn't saved.
Sign in
Design a microservices architecture for an e-commerce platform.
Instead of one big server, split the system into independent services that each handle one domain (users, products, orders). This is how companies like Amazon and Netflix build their systems.
The brief
Design a microservices e-commerce system.
Required services:
- API Gateway — Single entry point. Routes requests to the right service.
- User Service — Registration, login, profiles, authentication.
- Product Service — Product catalog, search, inventory tracking.
- Order Service — Cart, checkout, order history, payment processing.
- Database(s) — Each service should have its own data store.
Show these flows:
- User browses products (API Gateway -> Product Service -> DB)
- User places an order (API Gateway -> Order Service -> checks inventory via Product Service -> processes payment -> confirms order)
Design questions:
- Why does each service need its own database?
- How do services communicate with each other?
- What happens if the Product Service is down when an order is placed?
To pass
- A component named "API Gateway"
- A component named "User Service"
- A component named "Product Service"
- A component named "Order Service"
- A component named "Database"
- At least 5 connections between components
Need a hint?
- The API Gateway is the single entry point — all client requests go through it.
- Each service owns its data. The Order Service never reads the Product DB directly.
- Services communicate via REST APIs or message queues. Think about what happens if a service is slow.