Medium Resilience Patterns
Retry with Backoff
Traducción al español en progresoEl contenido detallado de esta lección aún se está traduciendo. Mientras tanto, se muestra en inglés.
Create a service that fails the first 2 times and succeeds on the 3rd. Use retryWhen with Retry.fixedDelay(2, Duration.ofMillis(100)) to retry with delay. Print the result.
retryWhen with Retry.fixedDelay adds a delay between retries.
Esperado
Success on attempt 3
Main.kt