No video

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

  Рет қаралды 40,254

Programming Techie

Programming Techie

Күн бұрын

Spring Boot Microservices Project Example - Part 6 | Resilience4J Circuit Breaker
Source Code
github.com/Sai...
⭐️⭐️ You can follow me on Social Media through the below Links⭐️⭐️
Twitter: / sai90_u
Blog: programmingtec...
Dev.to: dev.to/saiupad...
Facebook Page: / programmingtechie

Пікірлер: 44
@defrankline
@defrankline 2 жыл бұрын
Thanks bro! your tutorial are simple to follow and cover what its needed!
@exploreWorldMe1984
@exploreWorldMe1984 8 ай бұрын
Thanks! wonderful tutorial... keep up the good work
@ProgrammingTechie
@ProgrammingTechie 8 ай бұрын
Thank you
@vaishnavepranav7394
@vaishnavepranav7394 11 ай бұрын
Thanks for the wonderful tuorial .
@diggydavro1588
@diggydavro1588 2 жыл бұрын
Great tutorial 👌 easy to follow keepnthe good work
@toto_frs620
@toto_frs620 2 жыл бұрын
I love your videos. Well done!
@adityamankar9543
@adityamankar9543 2 жыл бұрын
Thank you for these amazing tutorials. Can you please add a video demonstrating the deployment process for microservices?
@defrankline
@defrankline 2 жыл бұрын
i second this. at the end lets deploy this app using say docker, kubernetes
@deanclancy6448
@deanclancy6448 2 жыл бұрын
Yes please🙏🙏
@ProgrammingTechie
@ProgrammingTechie 2 жыл бұрын
It's already in plan to integrate the project to Kubernetes.
@hoangtv3949
@hoangtv3949 2 жыл бұрын
Very useful
@techlead_ashu
@techlead_ashu 5 ай бұрын
Thank you so much :) _/\_ Highly appreciated!
@vietnguyenba4680
@vietnguyenba4680 2 жыл бұрын
Thanks, bro! You can share videos about managing transactions in a microservice system.
@nonamespls3468
@nonamespls3468 6 ай бұрын
why didn't the fallback work when timeout was thrown?
@az910
@az910 2 жыл бұрын
Thank you 🙏 When you will share the next part ? Haha 😁
@ProgrammingTechie
@ProgrammingTechie 2 жыл бұрын
On Tuesday :)
@az910
@az910 2 жыл бұрын
I appreciate what you do for us
@manojkumar8358
@manojkumar8358 Жыл бұрын
@@ProgrammingTechie Please tell on how to add junit test case for fallback method
@yogeez123
@yogeez123 Жыл бұрын
If you are using Gateway and service to service communication should be done through gateway, I believe
@ProgrammingTechie
@ProgrammingTechie Жыл бұрын
Gateway acts as an entrypoint of a request into our system, from there the request is routed through other services, internal service to service communication is not done through API Gateway.
@kevinm.1597
@kevinm.1597 Жыл бұрын
Thank you for this tutorial! but i am facing an issue right now TimeLimiter is not throwing the TimeoutException
@KK-wu2fq
@KK-wu2fq Жыл бұрын
Programming Techie any idea why?
@KK-wu2fq
@KK-wu2fq Жыл бұрын
ive been doing CB stuff on service, i moved all to controler and there it throws exception for timelimiter :)
@osasereuhunmwangho5293
@osasereuhunmwangho5293 Жыл бұрын
@@KK-wu2fqHello. I am facing the same issue. 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 timelimiter exception is thrown. Did you find a way around it?
@osasereuhunmwangho5293
@osasereuhunmwangho5293 Жыл бұрын
I have found a way around it. I simply moved the @TimeLimter annotation to the controller. The circuit breaker annotation remains in the service. The service returns a type of String while the controller returns a CompletableFuture
@abhinandankumar4255
@abhinandankumar4255 2 жыл бұрын
next video please
@osasereuhunmwangho5293
@osasereuhunmwangho5293 Жыл бұрын
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?
@osasereuhunmwangho5293
@osasereuhunmwangho5293 Жыл бұрын
I have found a way around it. I simply moved the @TimeLimter annotation to the controller. The circuit breaker annotation remains in the service. The service returns a type of String while the controller returns a CompletableFuture
@NoOne-mg6ti
@NoOne-mg6ti 5 ай бұрын
@@osasereuhunmwangho5293 I'm also having the same problem. Can you show me your code on handling this problem?
@razataggarwal7365
@razataggarwal7365 Жыл бұрын
Circuit Breaker annotation doesn't work for java 1.8 but why ?
@ognjenbarovic1756
@ognjenbarovic1756 Жыл бұрын
Is it just me or orderRepository still saves order after timeout?
@baranemreturkmen9497
@baranemreturkmen9497 Жыл бұрын
Yeah me too. And I don't understand why
@baranemreturkmen9497
@baranemreturkmen9497 Жыл бұрын
In my problem I relaized that I didn't invoke my placeOrder method which in OrderService class, with resilience4j time limiter. Maybe you did same mistake with me.
@aamirshaikh1389
@aamirshaikh1389 5 ай бұрын
I'm currently dealing with a similar problem, and I'd appreciate it if you could share more details on how you resolved the issue? @@baranemreturkmen9497
@bautistaquesada4436
@bautistaquesada4436 3 ай бұрын
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
@ProgrammingTechie
@ProgrammingTechie 3 ай бұрын
Please cross check the code against the GitHub repo
@bautistaquesada4436
@bautistaquesada4436 3 ай бұрын
@@ProgrammingTechie Hi! yes i double check with the repo and the problem persist.
@QuickInterviewPrep
@QuickInterviewPrep 6 ай бұрын
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)
@ProgrammingTechie
@ProgrammingTechie 6 ай бұрын
Yes you can also implement it in the gateway
@QuickInterviewPrep
@QuickInterviewPrep 6 ай бұрын
@@ProgrammingTechie Not sure if we can implement it in gateway as gateway is just routing not making rest call. Did i understand correctly? In your example you implemented it method that is calling rest endpoint
@user-lz7wx7dg5f
@user-lz7wx7dg5f 7 ай бұрын
My status always shows closed. never Open or even half open. Not sure why
@king0s
@king0s 6 ай бұрын
Bring the other service down?
@vishalwagh478
@vishalwagh478 6 ай бұрын
I too have a similar problem. Because the circuit breaker was not registering itself. Hence I changed the resilience4j.circuitbreaker.instances.inventory.registerHealthIndicator => resilience4j.circuitbreaker.instances.default.registerHealthIndicator Hence even though inventory was down, the circuit breaker was not identified & state was in OPEN state only. After reverting back to circuit status was started reflecting correctly.
Spring Boot Microservices Project Example - Part 7 | Distributed Tracing
18:38
Project Reactor - реактивная Java
27:27
letsCode
Рет қаралды 48 М.
Schoolboy Runaway в реальной жизни🤣@onLI_gAmeS
00:31
МишАня
Рет қаралды 2,1 МЛН
Parenting hacks and gadgets against mosquitoes 🦟👶
00:21
Let's GLOW!
Рет қаралды 12 МЛН
Spring Boot Microservices Project Example - Part 5 | Security
30:13
Programming Techie
Рет қаралды 63 М.
Евгений Борисов - Spring-потрошитель, часть 1
1:04:27
JPoint, Joker и JUG ru
Рет қаралды 512 М.
Top 25 Microservice Interview Questions Answered - Java Brains
39:54
Spring Tips: Spring Modulith
37:39
SpringDeveloper
Рет қаралды 22 М.
Getting started with Spring Boot AOT + GraalVM Native Images
21:03
Microservices using SpringBoot 3.0 | Full Example [NEW]
1:25:38
Daily Code Buffer
Рет қаралды 179 М.