Aggregation

Client makes one call. Gateway calls N backends, composes response. Mobile clients love this — fewer round trips.

Advertisement

Aggregation

Client makes one call. Gateway calls N backends, composes response. Mobile clients love this — fewer round trips.

Advertisement

Cross-cutting concerns

  • Auth (validate JWT once, not per service)
  • Rate limiting
  • Request logging
  • Response transformation
  • API key management

Client-specific endpoints (BFF)

Backend For Frontend — mobile gateway aggregates differently than web. Optimizes for client needs.

Gateway is critical path

Every request goes through. HA is essential. Multiple gateway instances behind an LB.

Don't do business logic

Gateway = routing + auth + transform. Business logic in services. Otherwise gateway becomes a monolith.