Reliability Patterns
Timeouts, retries, circuit breakers, bulkheads, rate limiting, idempotency and graceful degradation.
Reliability patterns limit the blast radius when a dependency is slow or down. Several of them appear in context in the order management case study.
Articles
- Circuit breakers (Resilience4j)Keeping services up when dependencies fail: timeouts, retries with backoff and jitter, circuit breaker states and configuration, bulkheads, rate limiters and time limiters with Resilience4j in Spring Boot, the Spring Cloud CircuitBreaker abstraction, Spring Framework 7's built-in @Retryable and @ConcurrencyLimit, fallbacks, ordering of patterns, and monitoring.
- IdempotencyMaking operations safe to retry: what idempotency means for HTTP methods, idempotency keys for POST requests (storage, concurrency, expiry, request fingerprinting), idempotent message consumers, natural idempotence, conditional writes, and a Spring Boot implementation with a filter and database constraint.
Planned topics
These topics are on the roadmap and not written yet. They appear here so you can see the full scope of the section.
- Rate limiting
- Load shedding
- Graceful degradation
- Health checks: liveness versus readiness