Problem Statement
What is a core role of an API Gateway in a microservices architecture?
Explanation
Gateways offload cross-cutting concerns: authentication, throttling, request shaping, and routing. They also help with canary traffic and header normalization.
Do not overstuff business logic at the gateway. Keep it a control point, not your application.
Code Solution
SolutionRead Only
Gateway → /v1/orders → OrdersSvc; JWT verify; 429 on quota
