Spring Retry & RestClient (Part 2): Custom HTTP Exceptions, Error Handlers, JDK/Apache HttpClients

preview_player
Показать описание
In today’s video, we’re going apply Spring Retry and RestClient together into our service.

References:

(00:00): Introduction and Important Notes
(00:20): Initialize services from scratch
(02:02): RestClient
(04:27): Enable Retry
(05:20): Apply Retry
(07:10): HTTP Retryable Exceptions
(15:36): Custom HTTP Exceptions
(16:18): RestClient Error Handlers & Interceptors
(20:17): Custom Retry Annotation
(21:34): Internal Retry in Apache HttpClient5
Рекомендации по теме
Комментарии
Автор

Thanks for the wonderful explanations with debug in detail

rsrini
Автор

Im using RestClient now, but i do miss the retry structure built in WebClient, it was more straightforward

yuriandrade
Автор

I fell a little behind watching your videos - but I catch up now. Retry is another wonderful, advanced topic. Thanks for sharing. One little recommendation - as I see you always struggling to import classes manually when adding/uncommenting code. I used to do that too for years. But there is a setting in IntelliJ: Enable "Add unambiguous imports" (and maybe Optimize imports) in 😄

jurgen