This repo shows how to use resilience4j with kotlin in a spring webflux app.
- Spring boot auto-configuration for resilience4j using
application.yml
orapplication.properties
- Kotlin
suspend
andFlow
calls with circuit breaker using resilience4j-kotlin module - Extend
CircuitBreaker
class to run or decoratesuspend
functions with afallback
action when circuit is open - Add a
fallback
forFlow
calls when circuit is open