System Design Problem

Design an API Gateway (Kong / Envoy)

Commonly Asked By:KongStripeNetflixLyft

  • Routing: Route incoming HTTP requests to the correct backend microservice based on URL paths and headers.
  • Authentication & Authorization: Validate tokens (e.g., JWT) before forwarding requests.
  • Rate Limiting: Prevent abuse by limiting the number of requests per user/IP over a time window.
  • Load Balancing & Retry: Distribute traffic across healthy backend instances and retry failed requests.
  • Dynamic Configuration: Routes and limits must be updatable without restarting the gateway (zero downtime).

Modern API Gateways separate the Control Plane (configuration and management UI) from the Data Plane (the highly optimized proxy servers actually handling the traffic).

Loading...