Easy Resilience Patterns
Timeout with Fallback
Create a Mono that simulates a slow service by delaying 5 seconds. Apply a timeout of 1 second and provide a fallback value "Timeout fallback" using onErrorReturn. Subscribe and print.
Note: For Piston execution, simulate with Mono.delay and .timeout().
Expected
Timeout fallback
Main.kt