Posts about api-design

3 posts

  1. Retrying failed requests with exponential backoff and jitter

    A retry loop can rescue a request or take down a struggling service. Here is how to retry with backoff, jitter and a budget so it does the first.

    2 min read

  2. Rate limiting APIs with the token bucket algorithm

    How the token bucket works, why it handles bursts better than a fixed window, and what to think about when you run it across several servers.

    3 min read

  3. Idempotent APIs and why retries should be safe

    Networks fail in awkward ways. Designing endpoints so that a repeated request does no extra harm is one of the cheapest reliability wins you can get.

    2 min read