Spring Cloud- Load Balancing using Netflix Ribbon + Eureka | Spring Boot
Ғылым және технология
This video explains you how to perform load balancing using spring cloud ribbon and Eureka
GitHub:
github.com/Java-Techie-jt/spr...
Blogs:
javagyanmantra.wixsite.com/we...
Facebook Group :
/ 919464521471923
Like & Subscribe
Пікірлер: 43
I am big fan of you Basant. you explain complex things so simpler.
@Javatechie
3 жыл бұрын
Good to hear this thank you so much buddy
@landonisrael6989
3 жыл бұрын
I guess it's kind of off topic but does anybody know a good website to watch newly released tv shows online?
@malcolmachilles9174
3 жыл бұрын
@Landon Israel Try FlixZone. You can find it on google :)
very very good explanation
please make a video for the same with different ip address
please make a video for different ip address also
I have created two spring boot projects employee and department and both this entities are registered on Eureka server and I have configured an Api gateway to call this entity so to add load balancer to this project I need to apply load balancing only on API gateway or all three projects (api gateway, employee, department). I want to use Netflix Ribbon for load balancing. ANY INPUT WOULD BE VERY HELPFUL. Thanks in advance
Awesome..
How to change round-robin to custom strategy ?
Awesome
If payment service is deployed on multiple servers then do you have such a example as a diagram since having 2 machines is not possible on a personal laptop? How load balancing works? This is a typical prod env scenario.
@Javatechie
2 жыл бұрын
Sweet did you check my k8s video ? Since our application is microservice we should go with containerization platform so k8s will take care this .
Thanks for good explanation .Tried with same code but when try to hit payment service from shoping it is coming as "payment with 1007 is successfull" server port info is not displaying....is it require any code for server port info
@Javatechie
Жыл бұрын
Have you tried to fetch server.port using @Value
how you are running payment service mutiple instance , if one instance running in one port we cant change port and rerun it will ask stop and rerun
@Javatechie
2 жыл бұрын
No it won't ask you to stop and return try once
@DS-ol1ic
Жыл бұрын
maybe you are using IntelliJ, you can edit the run configuration with a different name or run it from cmd with --server.port=some number
Thanks
in this case we are not mentioning any where how many instances of payment service will be started
@Javatechie
5 жыл бұрын
We . mentioned ribbon dependency that's enough , eureka will identity the number of instance where your application is running
Please tell if a service is running on multiple instances then how to call it. With its service name only from postman or frontend .....
@Javatechie
9 ай бұрын
No you need to call them from the api gateway only
@Javatechie
9 ай бұрын
Please checkout this playlist Microservice: kzread.info/head/PLVz2XdJiJQxxWhFkucZBoMxeYE6qTgEF8
one more question is this client side load balancing or server side load balancing
@Javatechie
4 жыл бұрын
its client side load balancing
So We dont need to configure ribbon client in spring boot based application By default we are going to get
@Javatechie
4 жыл бұрын
Not required , always it's recommended to use feign client
Sir, Can you please upload OAuth2 tutorial?
@Javatechie
4 жыл бұрын
uploaded please have a look
1st - You don't need ribbon dependency . 2nd - specify if Eureka registry is client side or server side . Thanks
@amargupta1728
4 жыл бұрын
how?? please explain.
@vishu1602
3 жыл бұрын
Eureka have to register itself as a server such that it can treat every other mirco services as client
I missed your teaching spirit and you didn't explain about the load balancer(you have used in @LoadBalanced for RestTemplate) properly and seems you have to hurry to finish the video.
Galat bata rahe ho bhai, RestTemplate karta hai round robin. Isme eureka ya ribbon ka abhi tak koi haat nahi hai
@Javatechie
5 жыл бұрын
Without ribbon it's not possible b
@shrikeshk9
5 жыл бұрын
@@Javatechie try removing ribbon dependency
@Javatechie
5 жыл бұрын
Ok I will check , and let you know soon . thanks dude
@rexsam3134
2 жыл бұрын
@@Javatechie did you check?
@Javatechie
2 жыл бұрын
@@rexsam3134 no I didn't check yet . Did you tried ?