Reading Microservices Architecture Descriptions
5 exercises — read a realistic microservices architecture document for an e-commerce platform. Extract component responsibilities, understand async communication patterns, and reason about trade-offs.
Reading microservices architecture documents
- Entry point → find where external traffic enters (usually API Gateway or Load Balancer)
- Synchronous vs. async → does Service A wait for Service B, or fire-and-forget?
- Who calls whom → map the dependency direction: A → B means A depends on B
- Shared infrastructure → queue, cache, DB — components used by many services are high-risk SPOFs
- Key design decisions → look for "because", "in order to", "this enables" — these explain trade-offs
0 / 5 completed
1 / 5
E-Commerce Microservices Architecture
{ex.passage} According to the passage, what is the primary role of the API Gateway in this architecture?
The API Gateway is the single entry point — routing, not business logic:
The passage states: "The API Gateway is the single entry point for all client requests… The Gateway never performs business logic — it routes or rejects."
What the Gateway does do:
If the Gateway made business decisions, every business change would require touching a central shared component — breaking the independence of microservices. The Gateway's job is purely operational.
Architecture vocabulary:
The passage states: "The API Gateway is the single entry point for all client requests… The Gateway never performs business logic — it routes or rejects."
What the Gateway does do:
- TLS termination → decrypts HTTPS traffic once, so internal services don't have to
- Routing → forwards each request to the correct downstream service
- Auth token validation → rejects unauthenticated requests before they reach any service
- Rate limiting → protects downstream services from traffic floods
If the Gateway made business decisions, every business change would require touching a central shared component — breaking the independence of microservices. The Gateway's job is purely operational.
Architecture vocabulary:
- single entry point → all traffic passes through one place (also called a "front door")
- TLS termination → ending the encrypted tunnel at the gateway, forwarding plain HTTP inside the private network
- rate limiting → rejecting requests above a threshold to prevent abuse or overload