Learn/Glossary/API Gateway
Infrastructure

API Gateway

An API Gateway is the single front door for client requests, routing them to the correct backend services and managing auth.

Diagram

  Client ──────────────────▶ API Gateway (single entry point)
                              │ (validates token, checks rate limits)
              ┌───────────────┼───────────────┐
              │               │               │
              ▼               ▼               ▼
         /api/users      /api/posts      /api/payments
         User Service    Post Service    Payment Service

In Depth

An API Gateway is a reverse proxy that serves as a single entry point for all client requests in a microservices architecture. It routes paths to their respective microservices, handles authentication, and shields the internal server layout.

Related Terms