Spring Cloud- Load Balancing using Netflix Ribbon + Eureka | Spring Boot
ฝัง
- เผยแพร่เมื่อ 8 มิ.ย. 2018
- 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 - วิทยาศาสตร์และเทคโนโลยี
I am big fan of you Basant. you explain complex things so simpler.
Good to hear this thank you so much buddy
I guess it's kind of off topic but does anybody know a good website to watch newly released tv shows online?
@Landon Israel Try FlixZone. You can find it on google :)
very very good explanation
Awesome..
please make a video for different ip address also
please make a video for the same with different ip address
Awesome
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
Thanks
Please tell if a service is running on multiple instances then how to call it. With its service name only from postman or frontend .....
No you need to call them from the api gateway only
Please checkout this playlist Microservice: th-cam.com/play/PLVz2XdJiJQxxWhFkucZBoMxeYE6qTgEF8.html
How to change round-robin to custom strategy ?
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.
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
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
No it won't ask you to stop and return try once
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
one more question is this client side load balancing or server side load balancing
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
Not required , always it's recommended to use feign client
in this case we are not mentioning any where how many instances of payment service will be started
We . mentioned ribbon dependency that's enough , eureka will identity the number of instance where your application is running
Sir, Can you please upload OAuth2 tutorial?
uploaded please have a look
1st - You don't need ribbon dependency . 2nd - specify if Eureka registry is client side or server side . Thanks
how?? please explain.
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
Without ribbon it's not possible b
@@Javatechie try removing ribbon dependency
Ok I will check , and let you know soon . thanks dude
@@Javatechie did you check?
@@rexsam3134 no I didn't check yet . Did you tried ?