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
  • วิทยาศาสตร์และเทคโนโลยี

ความคิดเห็น • 43

  • @sobhitakumarsahu2713
    @sobhitakumarsahu2713 3 ปีที่แล้ว +3

    I am big fan of you Basant. you explain complex things so simpler.

    • @Javatechie
      @Javatechie  3 ปีที่แล้ว

      Good to hear this thank you so much buddy

    • @landonisrael6989
      @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
      @malcolmachilles9174 3 ปีที่แล้ว

      @Landon Israel Try FlixZone. You can find it on google :)

  • @kidsfun381
    @kidsfun381 3 ปีที่แล้ว +1

    very very good explanation

  • @gopald7263
    @gopald7263 6 ปีที่แล้ว +1

    Awesome..

  • @HareeshbabuPesarlanka
    @HareeshbabuPesarlanka 3 หลายเดือนก่อน +1

    please make a video for different ip address also

  • @HareeshbabuPesarlanka
    @HareeshbabuPesarlanka 3 หลายเดือนก่อน +1

    please make a video for the same with different ip address

  • @kannadasankaruppaiyan1155
    @kannadasankaruppaiyan1155 ปีที่แล้ว +1

    Awesome

  • @noorahameds8
    @noorahameds8 ปีที่แล้ว

    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

  • @kishordige9721
    @kishordige9721 ปีที่แล้ว +1

    Thanks

  • @learnprep7423
    @learnprep7423 9 หลายเดือนก่อน +1

    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
      @Javatechie  9 หลายเดือนก่อน

      No you need to call them from the api gateway only

    • @Javatechie
      @Javatechie  9 หลายเดือนก่อน

      Please checkout this playlist Microservice: th-cam.com/play/PLVz2XdJiJQxxWhFkucZBoMxeYE6qTgEF8.html

  • @cd62
    @cd62 2 ปีที่แล้ว

    How to change round-robin to custom strategy ?

  • @rexsam3134
    @rexsam3134 2 ปีที่แล้ว +1

    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
      @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 .

  • @user-ko3cv4fi6w
    @user-ko3cv4fi6w ปีที่แล้ว +1

    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
      @Javatechie  ปีที่แล้ว

      Have you tried to fetch server.port using @Value

  • @rajulsulakhe667
    @rajulsulakhe667 2 ปีที่แล้ว +1

    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
      @Javatechie  2 ปีที่แล้ว

      No it won't ask you to stop and return try once

    • @DS-ol1ic
      @DS-ol1ic ปีที่แล้ว +1

      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

  • @sushilkumarpandeypandey1087
    @sushilkumarpandeypandey1087 5 ปีที่แล้ว

    one more question is this client side load balancing or server side load balancing

    • @Javatechie
      @Javatechie  4 ปีที่แล้ว

      its client side load balancing

  • @sarojsahoo8763
    @sarojsahoo8763 4 ปีที่แล้ว +1

    So We dont need to configure ribbon client in spring boot based application By default we are going to get

    • @Javatechie
      @Javatechie  4 ปีที่แล้ว

      Not required , always it's recommended to use feign client

  • @sushilkumarpandeypandey1087
    @sushilkumarpandeypandey1087 5 ปีที่แล้ว +1

    in this case we are not mentioning any where how many instances of payment service will be started

    • @Javatechie
      @Javatechie  5 ปีที่แล้ว

      We . mentioned ribbon dependency that's enough , eureka will identity the number of instance where your application is running

  • @namanmandli
    @namanmandli 6 ปีที่แล้ว +1

    Sir, Can you please upload OAuth2 tutorial?

    • @Javatechie
      @Javatechie  4 ปีที่แล้ว +2

      uploaded please have a look

  • @rajivjha123
    @rajivjha123 5 ปีที่แล้ว +4

    1st - You don't need ribbon dependency . 2nd - specify if Eureka registry is client side or server side . Thanks

    • @amargupta1728
      @amargupta1728 4 ปีที่แล้ว +1

      how?? please explain.

    • @vishu1602
      @vishu1602 3 ปีที่แล้ว

      Eureka have to register itself as a server such that it can treat every other mirco services as client

  • @amargupta1728
    @amargupta1728 4 ปีที่แล้ว +1

    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.

  • @shrikeshk9
    @shrikeshk9 5 ปีที่แล้ว +1

    Galat bata rahe ho bhai, RestTemplate karta hai round robin. Isme eureka ya ribbon ka abhi tak koi haat nahi hai

    • @Javatechie
      @Javatechie  5 ปีที่แล้ว

      Without ribbon it's not possible b

    • @shrikeshk9
      @shrikeshk9 5 ปีที่แล้ว

      @@Javatechie try removing ribbon dependency

    • @Javatechie
      @Javatechie  5 ปีที่แล้ว

      Ok I will check , and let you know soon . thanks dude

    • @rexsam3134
      @rexsam3134 2 ปีที่แล้ว

      @@Javatechie did you check?

    • @Javatechie
      @Javatechie  2 ปีที่แล้ว

      @@rexsam3134 no I didn't check yet . Did you tried ?