Skip to content

yurickgomes/resilience4j-kotlin-demo

Repository files navigation

Resilience4j + Spring + Kotlin Demo

This repo shows how to use resilience4j with kotlin in a spring webflux app.

Topics covered by this example

  • Spring boot auto-configuration for resilience4j using application.yml or application.properties
  • Kotlin suspend and Flow calls with circuit breaker using resilience4j-kotlin module
  • Extend CircuitBreaker class to run or decorate suspend functions with a fallback action when circuit is open
  • Add a fallback for Flow calls when circuit is open