Spring Framework 7 and Spring Boot 4 are bringing core resiliency features directly into the framework, eliminating the need for the external Spring Retry dependency. The key features covered include: the @Retryable annotation for declarative retry support with configurable max attempts, delay, and exponential backoff multiplier; the RetryTemplate for programmatic retry control with custom retry policies, listeners, and auditing hooks; and the @ConcurrencyLimit annotation to cap simultaneous concurrent calls to a method. All these features require enabling via @EnableResiliencyMethods on a configuration class. Practical examples are demonstrated using a food delivery app with simulated flaky APIs and driver assignment services.

33m watch time

Sort: