Skip to content

Patterns, animated

Each page runs the same traffic through two clients, one without the pattern and one with it, and plays the result.

The models follow the library's code. A test checks each one against the real HttpClient, so the pages change when the library does.

  • Timeouts: Per-attempt timeout or total deadline? What attemptMs and totalMs each protect you from.
  • Backoff and jitter: Why clients that retry on the same schedule come back together, and how full jitter spreads them out.
  • Retry budget: How plain retries keep a slow host down after it recovers, and how a budget caps the extra load.
  • Circuit breaker: What happens to callers when a host goes down, with and without a breaker that fails fast.
  • Bulkhead: A slow service fills the shared global limit and blocks a fast one. A partition limit for the slow one keeps the fast one working.
  • Rate limiter: A burst of 100 requests hits an API that allows 20 per second and answers 429. A token bucket spreads the burst out instead.