APIs, Gateways and Rate Limiting
An API (application programming interface, the requests a program may send to a service) is the front door of a system, and a rate limiter (a guard that caps how many requests a caller may send in a time) protects it. Interviewers ask which API style you choose, how pages of results work, how a client retries safely, and how a limiter counts. After this section you can compare REST, gRPC and GraphQL, explain cursor paging and idempotency keys, describe a gateway, trace four limiting algorithms, and explain the 429 "too many requests" reply.
Topics in this section
- Designing the API surface
- Pagination
- Idempotency keys for safe retries
- API gateway
- Rate limiting algorithms
- HTTP 429 and Retry-After
- Distributed counting, client throttling and priorities