Posts about architecture

2 posts

  1. Circuit breakers: failing fast when a dependency is down

    When a downstream service is struggling, waiting on it makes things worse. A circuit breaker stops calling it for a while so both sides can recover.

    3 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