🏗️API Gateway
Also known as Gateway, Edge Service, Backend for Frontend
One front door that sends each request to the right service.
Think of it like
Think of it like the front desk of a big office. Visitors check in once, then get sent to the right room.
Example
Jack's phone app calls one address for all it needs. The gateway checks the login token. Then it sends order calls to the order service and profile calls to the user service.
Why it matters
It keeps shared jobs like logins and limits in one place. You do not copy them into each service.
Definition
Common mistake
Key takeaways
- 1One front door. For many services.
- 2Shared jobs here. Logins and limits.
- 3Route, do not decide. Rules stay in services.