SYSTEM-DESIGN Contents

API Gateway Pattern

Centralize routing, auth, and cross-cutting concerns.

On this page

API Gateway Centralizes Cross-Cutting Concerns

An API gateway handles routing, authentication, rate limiting, and observability at the edge.

Benefits

  • Centralized policy enforcement
  • Simplified clients

Risks

  • Gateway becomes bottleneck
  • Overloaded with business logic

Production-First Takeaway

Keep gateways thin and focused on cross-cutting concerns, not business orchestration.