Thank you for the great video! I have one question. Assume that we have the following scenario: We are building microservices (having an API Gateway, Service Registry etc.) and we would like to use Rest Client. In that case, we cannot use a simple URL as a base path because it can change at any time. Is it possible to use the service name to communicate with the other applications? Should we use as a URL the gateway’s address? / Thank you in advance!
We can do same sync(block() method) and async calls with webclient. So why we need this RestClient exactly and what would be the exact requirement to introduce this one?
Basant bhaiya, WebClient can do everything what RestClient is doing, then why will one opt for new RestClient? I mean, what is the difference & benefit of using it, can you elaborate more on this?
It will avoid multiple over loaded method signatures and also you can use RestTemplate provided functionality I will upload one shot video with difference
Also, you can write HTTP client interface, and spring generates the concrete implementations. This also exists before, but now RestClient made it much simpler.
Thanks sir for making useful videos for us. But I request you very respectfully to work in a project in spring boot having at least 6 entities/tables using spring boot in the back end and React/Angular/Next in the front end
In your soap video, i followed your step but getting error while building the maven project An internal error occurred during : "Building java.lang.reflect. InvocationTargetException"
Sir, In RestClient When I'm doing save product and update product it's showing an error Could not extract response: no suitable HttpMessageConverter found for response type [class com.demo.model.Products] and content type [text/plain; charset=UTF-8] help me to solve this
Hello Mr. Basant. Where is the API side of this Consume project? Is there a GitHub link? Thank you very much by the way. You share great content. Java and Spring are my everything.
Excellent explanation, clear and concise. Thanks for your great contribution
great video and thank yor for making wonderful videos
Amazing tutorial. Crisp and to the point. 😇
Can you please explain the exception handling part of rest client?
Appreciate your efforts Basant, God bless you.😊🙏
Having some integration test would make this tutorial closer to real life usecase
How to inject interceptor via the requetInterceptor, can you please show an example.
Clear concise information. Thanks a lot sir
Thank you for the great video! I have one question. Assume that we have the following scenario:
We are building microservices (having an API Gateway, Service Registry etc.) and we would like to use Rest Client. In that case, we cannot use a simple URL as a base path because it can change at any time. Is it possible to use the service name to communicate with the other applications?
Should we use as a URL the gateway’s address?
/
Thank you in advance!
You can use an api gateway URL as a Base Url that's what usually we follow right as API gateway is the entry point to our microservice
Thank you! @@Javatechie
Thanks Basant sirji
We can do same sync(block() method) and async calls with webclient. So why we need this RestClient exactly and what would be the exact requirement to introduce this one?
Good job
amazing video !
Thanks brother 😊
Thanks a lot for this session..as always, brilliant content and easy to grasp.
Can u make one video on non blocking using this rest client ?
Can you please do video on spock with groovy unit test case for restclient spring boot 3.2
I haven't had prior experience on it . Will check and update you buddy
Thanks a lot Basant for this video. amazing. could you make upload file example using Rest Client . it will help us so much. thank you
RestClient is for asynchronous or synchronous ?
Synchronous and async both you can perform
Good session 😃
How is RestClient compared to Feign Client?
Top. But a word on error handling would be nice
can we add configuration bean to this like we do for feign clients? can this be an alternative to Open Feign?
No it's an alternative for webClient and rest template but not for feign
Please help on retry mechanism using rest client when we are facing bad gateway status code
Have you tried with spring retry
@@Javatechie No i haven't tried , i thought will try onStatus method in Rest Client , if status is 502 then try with RetryThen method
Okay i haven't explored more on the new rest client will check and update you
Thank u for sharing knowledge, can u make another video for Restclient-Async calls also
Sure
Hi sir while calling another api with rest client if that api has error message and error code and description how to capture that error message
Badant can you please made video for exception propogation from downstream service to upstream to postman.
Nice explanation
Basant bhaiya, WebClient can do everything what RestClient is doing, then why will one opt for new RestClient? I mean, what is the difference & benefit of using it, can you elaborate more on this?
It will avoid multiple over loaded method signatures and also you can use RestTemplate provided functionality
I will upload one shot video with difference
Also, you can write HTTP client interface, and spring generates the concrete implementations. This also exists before, but now RestClient made it much simpler.
Thanks sir for making useful videos for us.
But I request you very respectfully to work in a project in spring boot having at least 6 entities/tables using spring boot in the back end and React/Angular/Next in the front end
Sir can u please make a video on deployment of microservices which communicates with each other in kubernets cluster
Hello, can you update Github repository in description?
It's missing most of code showed in this video
Thanks.
It's there in the video description buddy
github.com/Java-Techie-jt/spring-3.2-rest-client
@@Javatechie Yes, I got those.
But I mean the project in 2:17.
The main project.
How to add ssl certificates
In your soap video, i followed your step but getting error while building the maven project
An internal error occurred during : "Building java.lang.reflect. InvocationTargetException"
Sir try to do courses on aws and, data structure and algorithms like you have done on microservices
Sir, In RestClient When I'm doing save product and update product it's showing an error
Could not extract response: no suitable HttpMessageConverter found for response type [class com.demo.model.Products] and content type [text/plain; charset=UTF-8] help me to solve this
Please share your GitHub. Also you can validate with my source code which mentioned in video description
@@Javatechie tqu sir
Can you please make a video on spring boot state machine
Okay i will try
Really appreciate
🙏💯👍 thanks
random question: what is the editor font name
Default intellij OS specific font buddy
Hello Mr. Basant. Where is the API side of this Consume project? Is there a GitHub link? Thank you very much by the way. You share great content. Java and Spring are my everything.
Hello buddy thank you 🤠. are you asking for a producer application?
Yes, I mean the API project consumed by the Consume project. Is there a GitHub link? @@Javatechie Please... 😀