Spring Boot Microservices Project Example - Part 6 | Resilience4J Circuit Breaker

preview_player
Показать описание
Spring Boot Microservices Project Example - Part 6 | Resilience4J Circuit Breaker

Source Code

⭐️⭐️ You can follow me on Social Media through the below Links⭐️⭐️
Рекомендации по теме
Комментарии
Автор

Thanks bro! your tutorial are simple to follow and cover what its needed!

defrankline
Автор

Thanks! wonderful tutorial... keep up the good work

exploreWorldMe
Автор

Thank you for these amazing tutorials. Can you please add a video demonstrating the deployment process for microservices?

adityamankar
Автор

Great tutorial 👌 easy to follow keepnthe good work

diggydavro
Автор

Thank you so much :) _/\_ Highly appreciated!

techlead_ashu
Автор

Thanks, bro! You can share videos about managing transactions in a microservice system.

vietnguyenba
Автор

Thank you 🙏
When you will share the next part ? Haha 😁

az
Автор

Hello Programming Techie.

I am facing an issue with the time-out exception. I want to keep the logic stuff in the service and the controller stuff strictly in the controller. Do I have to move my logic to the controller before a time-limiter exception is thrown? I don't think so.

The annotations i.e. CircuitBreaker, TimeLimiter are in the service layer. I am returning a type of CompletableFuture in the service layer also. The controller attached to it is also returning a type of CompletableFuture.
The error observed when I run in postman is that, TimeLimiter annotation ought to return a type of CompletionStage which means the service should have a return type of CompletionStage instead of CompletableFuture.

Once this is done, I have tried using a return type of CompletionStage in the controller too. On the other hand, I have used a return type of CompletableFuture and I simply cast the response of the service to CompletionStage.

Either way, the time-out exception is not being thrown when I try to send in Postman. All it does is wait for as long as the thread.sleep is set in the inventory service. After which, the order is then successfully placed.

Please what is the way around it?

osasereuhunmwangho
Автор

why didn't the fallback work when timeout was thrown?

nonamespls
Автор

Thank you for this tutorial!

but i am facing an issue right now TimeLimiter is not throwing the TimeoutException

kevinm.
Автор

If you are using Gateway and service to service communication should be done through gateway, I believe

yogeez
Автор

Great tutorial :). can we implement circuit breaker in gateway?
Or As my UI is calling gateway and gateway is calling my service, should i implement in UI(say react)

QuickInterviewPrep
Автор

Circuit Breaker annotation doesn't work for java 1.8
but why ?

razataggarwal
Автор

Is it just me or orderRepository still saves order after timeout?

ognjenbarovic
Автор

Hey! can someone help me please im having this issue An expected CSRF token cannot be found, when im trying to do a post in localhost:8080/api/order, i dont know how to solve it
my application.properties of my discovery server is the same as the video. so i dont understand what is happening

bautistaquesada
Автор

My status always shows closed. never Open or even half open. Not sure why

lzwxdgf
visit shbcf.ru