Could you provide a video covering asynchronous requests using WebClient or another library that can offer this? And if possible, how to do unit tests as well, as that would be very helpful!
Hey Dan, I use resttemplate and wanted to move to springboot 3 and confused to use webclient or the restclient. I call sync apis and wanted to understand whether to directly learn restclient or first go through webclient as it was a successor of resttemplate(after it got deprecated)
I think if you just want to communicate synchronously, you can go straight to RestClient. WebClient is part of Spring WebFlux, and its purpose is to handle asynchronous communications. So, in my view, you only need to go this route if you need it.
I ended up creating a test-only RestClient to work around this but this is much cleaner. Awesome!
Hi you're doing good job , keep rocking with java programming , i support you , you're new subscriber ❤
Could you provide a video covering asynchronous requests using WebClient or another library that can offer this? And if possible, how to do unit tests as well, as that would be very helpful!
How to test if have 2 beans with restclient? tks!
Why the rest client is not providing connectiontimeout and readtimeout.
Hey Dan, I use resttemplate and wanted to move to springboot 3 and confused to use webclient or the restclient. I call sync apis and wanted to understand whether to directly learn restclient or first go through webclient as it was a successor of resttemplate(after it got deprecated)
I think if you just want to communicate synchronously, you can go straight to RestClient. WebClient is part of Spring WebFlux, and its purpose is to handle asynchronous communications. So, in my view, you only need to go this route if you need it.