Posts about api-design
3 posts
-
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.
-
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.
-
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.