dear friend, thank you very much for this video. I know I watched it, and then I watched many others. then for a long time I remembered where to find you)) after watching this material again, everything became absolutely clear. this is definitely the best material. Thank you!
But how can we manage errors? For example: external api returns 404. How can I handle that api response body to return that exact same message using my own ApiErrorDTO?
Awesome new component! I was messing around with it but i didn't get working the RestClient with OAuth2 client_credentials, it could be that spring security support is currently a WIP? Excelent channel BTW!!
Not sure if RestClient handles it but anyway I don't think it would bring any value. For reactive interfaces you can still use WebClient under the hood
Thanks for the video. I would like to understand how to enable micrometer tracing with RestClient? using RestClient.Builder when creating the bean and using that is not propagating the traceparent header to other api service.
As long as you don't become one of those devs that uses reactive for everything, recently had to refactor a whole new service because an overeager dev used reactive for a simple rest microservice and FE guys said they wanted pagination after I took over. It's important to learn when to use reactive programming, it's an overkill tool for simple services.
@@SpringAcademywhat are the mainstream alternatives to webflux? I just learnt vertx and use it instead of webflux. So I’m wondering if I really need to learn webflux
It depends if the underlying low level HTTP client works with virtual threads. I'm sure that all major ones eventually will or they already do considering how virtual threads are easy to use in existing application.
If dependency brings no to little value I just prefer to avoid it. Especially considering how spring boot autoconfiguration behavior changes depending on what's on the class path
dear friend, thank you very much for this video. I know I watched it, and then I watched many others. then for a long time I remembered where to find you)) after watching this material again, everything became absolutely clear. this is definitely the best material. Thank you!
Excellent, thanks.. I hope you will continue to upload often ☺️
Thank you! That's the plan 🙂
But how can we manage errors? For example: external api returns 404. How can I handle that api response body to return that exact same message using my own ApiErrorDTO?
Briefly and understandable, thanks!
Important note that by default RestClient uses Java HttpClient introduced in Java 11
That's so nice! The declarative option using interface is very useful.
Thanks, it is nice material. Good overall overview without annoying details.
loved how you gave really good and concise examples and explanation. Thanks for making the video!
Thank you for such a nice feedback! I'm super happy you found it useful!
Nice, using the interfaces will make things much cleaner.
Indeed!
Congratulations! Great content 👏
Great presentation. Thanks a lot
Thank you!
Awesome new component! I was messing around with it but i didn't get working the RestClient with OAuth2 client_credentials, it could be that spring security support is currently a WIP? Excelent channel BTW!!
Likely. It's still few months before the RC so I'm pretty sure they'll fill the gaps
Well done. Quick question can you use still flux / mono in the interface? E.g `public Flux …..`
Not sure if RestClient handles it but anyway I don't think it would bring any value. For reactive interfaces you can still use WebClient under the hood
Great Insight
Thanks for the video. I would like to understand how to enable micrometer tracing with RestClient? using RestClient.Builder when creating the bean and using that is not propagating the traceparent header to other api service.
thanks, you make very easy !
It's look like Spring Cloud OpenFeign. Is there any difference between this two ? The usage of RestClient over Feign is now recommended by Spring ?
what about FeignClient is it stil good
Does anybody know which Spring Boot version will use the Spring Framework 6.1?
Spring Boot 3.2. Check calendar.spring.io/ for release dates
How to configure RestClient with OAuth2 and call protected endpoints
Hi, Will learning Spring Webflux boost my resume ?
Please give me your opinion.
It definitely will but considering how niche the reactive programming is I would recommend learning something more mainstream to boost your resume
As long as you don't become one of those devs that uses reactive for everything, recently had to refactor a whole new service because an overeager dev used reactive for a simple rest microservice and FE guys said they wanted pagination after I took over.
It's important to learn when to use reactive programming, it's an overkill tool for simple services.
Thank you guys for replying.
@@SpringAcademywhat are the mainstream alternatives to webflux? I just learnt vertx and use it instead of webflux. So I’m wondering if I really need to learn webflux
Great...
Thanks!
I subscribed❤
Does this also work with virtual threads?
It depends if the underlying low level HTTP client works with virtual threads. I'm sure that all major ones eventually will or they already do considering how virtual threads are easy to use in existing application.
Out of curiousity, why didn't you want add Webflux and WebClient as a dependency?
If dependency brings no to little value I just prefer to avoid it. Especially considering how spring boot autoconfiguration behavior changes depending on what's on the class path
More like a feign set with fixed lookup
i cannot hear you
Why's that so? Too quiet or not clear?
i turned off my headphones@@SpringAcademy