Resilience patterns in practice
summary
Shows concrete patterns with code and tests using Resilience4j (successor to Hystrix), Feign clients and WireMock endpoints: TimeLimiter with 100ms timeout, RateLimiter allowing 1–2 calls per 2s window (reject or delay mode), Retry with max 3 attempts and configurable backoff, Bulkhead implemented as thread-pool or semaphore (example: 20 threads, 4 paddles), CircuitBreaker with ring buffer size 4, 50% failure threshold, 2s wait and 2 trial calls, plus fallback and JCache/Caffeine integration for caching.
AI-written summary · about
chapters (10)
- 0:00Introduction
- 0:48Dunkirk
- 3:58Why do we need resilience
- 6:28Time limiter
- 10:04Rate limiter
- 17:28Market
- 22:12Resources
- 25:37Integrations
- 26:19Circuit breaker
- 26:56Circuit breaker diagram
related talks
44mIs Resilience4j enough to make fault tolerant software?
43mFault tolerance – look, it’s possible!
57mResilience by Design
29mResilient by Design
35mDesign patterns for application resiliency
32mHow does your application behaves when everything goes wrong?
29mResilient by Design
37mResilience Design Patterns
