Spring Boot MicroServices Course : RestClient with Resilience4j Patterns Applied
ฝัง
- เผยแพร่เมื่อ 6 ก.ย. 2024
- #sivalabs #java #spring #springboot #springcloud #microservices #restapi #rabbitmq #testing #junit #junit5 #maven #testcontainers #docker #kubernetes #wiremock
In this video, you will learn:
► How to implement REST API client using RestClient
► Implementing CircuitBreaker and Retry using Resilience4j
► WireMock for mocking API Integrations for testing
❤️ Thanks for watching
References
=============================================
⭐ Source Code: github.com/siv...
⭐ Spring Boot Tutorials: www.sivalabs.i...
⭐ testcontainers...
Connect with Me
=============================================
Blog: www.sivalabs.in
TH-cam: / sivalabs
Twitter: / sivalabs
GitHub: github.com/siv...
LinkedIn: / ksivaprasadreddy
Must Watch Videos
=============================================
🚀 🎬 Spring Boot REST API Anti-Patterns and Best Practices • Spring Boot REST API A...
🚀 🎬 Modern Spring Boot Application Development using Java 17/21 and Testcontainers • Modern Spring Boot App...
🚀 🎬 How do I upskill myself, and what tools & techniques do I use? • How do I upskill mysel...
🚀 🎬 Top 5 Tips to Succeed in Technical Interviews • Top 5 Tips to succeed ...
Popular Series Playlists
=============================================
🚀 🎬 Spring Boot Tips Series Playlist • Spring Boot Tips
🚀 🎬 Spring Boot + Kubernetes Tutorial Series Playlist • Spring Boot + Kubernet...
🚀 🎬 Spring Boot - The Missing Guide Series Playlist • Spring Boot - The Miss...
🚀 🎬 Integration Testing with Testcontainers • Integration Testing wi...
🚀 🎬 Java Testing Made Easy Playlist • Java Testing Made Easy...
⭐ Tags ⭐
best spring tutorials, best spring boot tutorials, how to learn spring boot, mastering spring boot, complete java testing course, java testing best practices, how to build spring boot rest API, spring cloud tutorials, spring boot docker tutorial, spring boot kubernetes tutorial, how to become proficient in java, how to learn spring boot quickly, how to learn spring boot in-depth
I am sharing these videos with my friends. No body is explained real time development with testing..keep posting content sir
Keep it up Siva, thanks for these lessons!
Great video, and Resilience4j is an excellent lib! One aspect that maybe I would have explored in a different angle is exception handling on the client/RestClient integration between order and catalog service. The approach taken on `ProductServiceClient`, with the fallback method, ends up transforming network errors (e.g. timeouts) into "bad request" responses (product not found). Depending on the system need, that may not be the appropriate approach. But given the code that we have so far, I guess it would be easy to handle any exceptions raised by the network call in the `GlobalExceptionHandler`.
I am looking forward for the next videos!
You can also handle Rest call errors using onStatus(..) callback like this docs.spring.io/spring-framework/reference/integration/rest-clients.html#_error_handling
Why ProductServiceClient class is public? Is it not a part of repository layer?
It's not part of domain package and I have created a separate "clients" package that holds all the external clients. So, ProductServiceClient is public.
Hi Siva, can we use Mockito inplace of Wire mock? Can you please let us know the advantage using Wire mock server instead of Mockito, thanks
In this video, I talked about exactly this th-cam.com/video/1fLNqzmnLXc/w-d-xo.html
@@sivalabs thanks
Sir what macbook you are using?
I am using MacBook Pro M1.