Gateway

The single public entry point. Every request from the apps and from partners arrives here over HTTPS and passes through three plugins in order before it reaches a service.

Request pipeline

Step Component Rejects with
1 Auth middleware: validates the JWT 401
2 Router: picks the upstream from path and headers 404
3 Rate limiter: checks the client's quota and the upstream's circuit 429 or 503

Accepted requests are forwarded to the User API, Order API or Notifier over gRPC.

Operations

  • Runs as Kong Gateway with custom Lua plugins, 3 replicas on the edge node in prod.
  • Stateless: every replica shares quota counters through the Rate-limit store, so replicas can be added or removed at any time.
  • Logs every request and response line with a request ID that the services propagate.

Owner

edge-team. Route changes for a service are made by that service's team in a pull request that the edge team reviews.

Edit ./docs/containers/gateway.md to change this text.

Contains

gateway diagram
gateway · Open view