kotlinannotationscircuit-breakerresilience4jresilience4j-retry

Resilience4j - Can you use annotations like @Retry in a kotlin app without Spring Boot?


I'm currently implementing retries and circuitbreakers using Resilience4j. Most of the examples online are using Spring Boot online and noticed that @Retry and @CircuitBreaker annotations are being used. However, I was wondering if a similar approach could be used for a kotlin app without Spring MVC or SpringBoot?

Thanks!


Solution

  • No, annotations only work when you use a framework like Spring Boot, Micronaut or Ratpack