22 Doing client side load balancing - Spring Boot Microservices Level 1

  Рет қаралды 232,523

Java Brains

Java Brains

Күн бұрын

Пікірлер: 75
@BalaKrishnan-mk6hq
@BalaKrishnan-mk6hq 5 жыл бұрын
I could see that how much efforts you've put to teach us these valuable technologies. Your efforts won't go in vain many developers are going to get benefit from your courses take good care of your health koushik. We wish you live a long happy life.
@TahirHussainMir24
@TahirHussainMir24 4 жыл бұрын
I don't understand who these people are who dislike such helpful videos
@abcxyz7132
@abcxyz7132 4 жыл бұрын
This tutorial of whole 23 videos has been very helpful. Thank you Kaushik and Java Brains for a simple and wonderful walkthrough these technologies. You are so patient in answering and explaining to the audience and with so nice attitude. Wish you live a healthy and long life and continue enlightening other people with your technical expertise
@SanjayKumar-by6oc
@SanjayKumar-by6oc 4 жыл бұрын
I came here after I took a course on Udemy...and guess what?.....I am loving it!....Cant thank you enough
@marvi182
@marvi182 4 жыл бұрын
Thank you sooooooooo much for this series! Never change the way you teach, i'm learning here what i can't understand in another channels (and i've watched a lot)
@harikrishnajavvadula8958
@harikrishnajavvadula8958 2 жыл бұрын
Thank you so much for the nice tutorial, I watched all the topics in the series. The best tutorial I have ever watched in you tube.
@giorgi23
@giorgi23 5 жыл бұрын
You're super. It's impossible to find tutorial like this on youtube. Really advanced topic!!!
@Suman-co7bc
@Suman-co7bc 5 жыл бұрын
So much of information put in a very simple way, If someone asks me what should I refer for to start on with spring boot my answer is always Java Brains Simply Magnificent.
@JohnDoe-ej6vm
@JohnDoe-ej6vm 4 жыл бұрын
can you please tell me how to find jar file mentioned in this tutorial ?
@realthoughts9141
@realthoughts9141 4 жыл бұрын
@@JohnDoe-ej6vm build you project if you are using intellji there is build option then inside lib folder you got the jar
@tiagocarneiro943
@tiagocarneiro943 4 жыл бұрын
These are actually some keen students, very good questions
@BalaKrishnan-mk6hq
@BalaKrishnan-mk6hq 5 жыл бұрын
Legend returned with the power of micro services
@dineshchandgr
@dineshchandgr 4 жыл бұрын
An amazing tutorial. the best one. Thank you so much for your efforts. I cant thank you enough. God bless
@hanumatejap3965
@hanumatejap3965 4 жыл бұрын
Thanks Koushik for this excellent session...
@shankasomasiri6309
@shankasomasiri6309 2 жыл бұрын
Thanks a lot and Love the playlist
@swatcat1470
@swatcat1470 3 жыл бұрын
Great learning! Can you please do a tutorial to deploy microservices in poduction environment. Thanks!
@LearnWithAbubakr
@LearnWithAbubakr 3 жыл бұрын
Best tutorial Koushik. Prays and Regards.
@raghubhupatiraju7708
@raghubhupatiraju7708 5 жыл бұрын
Excellent playlist. the questions are great
@ShivKuDubey
@ShivKuDubey 4 жыл бұрын
Very very good teaching and content
@bharath2103
@bharath2103 5 жыл бұрын
Thanks a lot for posting these materials sir ! Please write a book
@mukeshkumarsah3131
@mukeshkumarsah3131 2 жыл бұрын
Suppose we defined hystrix command, also bulkhead pattern for a microservice and running 2 instances of this on different ports. Will there be seperate thread pool created or both the instances share same thread pool?
@hallosf1396
@hallosf1396 2 жыл бұрын
Lets assume we are using different technologies and one of my microservices written in python or nodejs. How can I register my microservice to my eureka server?
@seyhanmustafov1191
@seyhanmustafov1191 Ай бұрын
Can we take it as a variable in one class and use its value with @Value annotation ? So we will have dynamic url if in case we change nowhere will need to be updated, it will be applied automatically!
@mingflow4410
@mingflow4410 4 жыл бұрын
Brilliant! thank you friend
@vyankateshkhadakkar6766
@vyankateshkhadakkar6766 2 жыл бұрын
Amazing series. Need one help, I am getting Connection timed out for ratings-data-service, what should I do ?
@ekaterinagalkina7303
@ekaterinagalkina7303 4 жыл бұрын
And what load balancer is used here by default? Update: Ribbon.
@Dongoske123
@Dongoske123 3 жыл бұрын
Unable to acces jar file...I enjoy these videos but it seems I am constantly getting stuck on minor things that werent explained/done very quickly at the end of a video etc.
@atulvidyarthi133
@atulvidyarthi133 4 жыл бұрын
Thank you so much for this tutorial series. I have a doubt - How would you test these APIs from Postman? I mean the path of the URL. And later if I wish to integrate ReactJs with this then how would we go about doing this? Thanks in advance.
@sohanjanaka
@sohanjanaka 4 жыл бұрын
In Spring and Netflix world how to do the server side load balancing of Inter-service communication in Microservices? What is the best practices?
@hyperborean72
@hyperborean72 3 жыл бұрын
If I understood right, we did not employ Ribbon as Eureka already has load-balancing capabilities - so we do not need client-side load balancing by Ribbon from the same Netflix library pack?
@ArjunShenoy1994
@ArjunShenoy1994 5 жыл бұрын
From where do the Eureka clients get the IP or URL of Eureka Server when Server clients are in different instances/machine
@pps1992
@pps1992 5 жыл бұрын
we need to configure the port for Eureka server in application.properties in that case. Here, the default localhost port is being used. Koushik explained this.
@sawyerford2191
@sawyerford2191 3 жыл бұрын
Here a point missed , how does Eureka client registers with Eureka server, is it just by adding client dependencies? But how does a service knows a Eureka server?
@venkatnani6940
@venkatnani6940 3 жыл бұрын
why we need spring cloud load balancer when u already aws load balancer, could you plz explain anybody
@mainHoonDora
@mainHoonDora 4 жыл бұрын
Nice tutorials👌🏻
@akshaynaik4888
@akshaynaik4888 5 жыл бұрын
I am little disagree on client side load balancing, sice client side load balancing goes to the eureka server to get service URL, eureka server knows which URL it has sent to how many requests and all client request would not hit single service on single port, or may be I am wrong. but you are doing very good work and deserve more subscribers
@kyorion1815
@kyorion1815 3 жыл бұрын
I have question how much perfect for instance can be run for one serivce on load balancing
@konradpodgorski1967
@konradpodgorski1967 4 жыл бұрын
What about Feign Client ? I have read that it's a good approach to making a calls to another service.
@NonVeggiePaaji
@NonVeggiePaaji 3 жыл бұрын
getting this error: nested exception is org.springframework.web.reactive.function.client.WebClientRequestException: failed to resolve
@santanunandan6409
@santanunandan6409 4 жыл бұрын
Hello Kaushik, Thanks for the tutorial... One question.. IN case I am deploying the configserver in kubernates pods, the uri in the client side configuration will be dynamic. How to handle that situation ? How to locate the configserver in that case? Kindly help
@surensingh123
@surensingh123 5 жыл бұрын
@Java Brains Which IntelliJ theme,fonts are you are using ?
@muralijoshi7348
@muralijoshi7348 5 жыл бұрын
Hi sir...i have this @loadbalanced working fine in my local (identifies machine name with port). But when i deploy my microservices in different tomcat instance, its not workin(identifies machine name with wrong port)
@vishnugovindan8550
@vishnugovindan8550 4 жыл бұрын
In an earlier video it was mentioned that behind the scenes, the library is actually doing server side service discovery and passing the request to the called microservice. However, its still considered client side service discovery as its happening at client side. What does this really mean? Is the eureka client not just passing this information directly to Eureka Server to make the call on your behalf (this reducing one hop)? In this video, you have mentioned that client side load balancing is happening. Does this mean that the library is getting all the registered instances and then making a call to one of those retrieved instances? Isn't this essentially client side service discovery ALL THE WAY THROUGH as you are getting the instances ultimately of the desired microservice, and then calling them yourself (after some round robin algorithm) ? Can anyone make this a bit more clearer?
@gayathrikandaswamy739
@gayathrikandaswamy739 4 жыл бұрын
HI Koushik. Thanks for the such a wonderful video. I have a doubt. Kindly clarify. We have introduced eureka server. does it mean we have deployed in spring cloud? or is there any more configuration steps?
@ambaragrawal9134
@ambaragrawal9134 5 жыл бұрын
I think we can change the application name, because on re-start of the Microservice, it will re-register with new name to the Eureka Server
@LivenLove
@LivenLove 5 жыл бұрын
but then the consuming applications needs to change as well..as all other services will get error..thats the trouble he is talking about.
@ambaragrawal9134
@ambaragrawal9134 5 жыл бұрын
@@LivenLove hmm... My bad. Got it. Thanks
@hyperborean72
@hyperborean72 3 жыл бұрын
Do I understand right that though several different services-consumers can apply for the information from the same service-publisher(supplier) it is still not identical to message broker/queue like RabbitMQ? Is the difference lies in the fact that each service-consumer opens its own private channel of communication with supplier via HTTP while all subscribers in RabbitMQ receive message simultaneously because they do not exchange the information via request-response?... I wonder via what protocol message exchange use in RabbitMQ
@komalsharma9773
@komalsharma9773 4 жыл бұрын
As you said this is not 100% full proof load balancing , can we customize it or is there any way to handle load balancing manually?
@gauravdas1000
@gauravdas1000 5 жыл бұрын
really interesting...subscribed
@DawidSwitonManiakowski
@DawidSwitonManiakowski 4 жыл бұрын
Quite good technology but I think that is much better to keep all network (load balancers, DNS, APP names etc.., discovery ) outside app logic and in separate layer for example in a virtual technology like kubernetes or docker swarm. If you decide to keep that in kubernetes then your app will be much simpler and thin. Even managing will be easier.
@SCOTTISH_TAMILAN
@SCOTTISH_TAMILAN 5 жыл бұрын
Next modify the ConsumerControllerClient code. Previously we were autowiring an DiscoveryClient bean, replace it with LoadBalancerClient.
@kals1918
@kals1918 5 жыл бұрын
Thank you so much for sharing :)
@napattraikityanukul3711
@napattraikityanukul3711 4 жыл бұрын
I'm trying exactly the same in my terminal but it has error said "Error: Unable to access jarfile movie-info-service-0.0.1-SNAPSHOT.jar"
@gautammishra96
@gautammishra96 4 жыл бұрын
You need to first make a jar file
@Dongoske123
@Dongoske123 3 жыл бұрын
@@gautammishra96 where did he make a jar file in the video? Seems odd that this would be skipped.
@mysagonirajeshgoud2564
@mysagonirajeshgoud2564 5 жыл бұрын
In real time also we will use the same localhost port numbers or any modifications we should have to do,Because the URL'S are dynamic so once it goes to production how they can know our port numbers sir,i will wait for you answer sir , Thanks in advance .
@aniketbharsakale2561
@aniketbharsakale2561 5 жыл бұрын
the URL formed at runtime will be dynamic as you expect, but the port on which that microservice is allowed to be accessed should be decided by us that cannot be dynamic. And it's not necessary that we use any fixed port number, Eureka uses 8761 by default, by you can host it on any other unreserved port number which you know of won't create conflict later in runtime. Hope this helps. Nice Question bdw. :) cheers.
@nikitaantonenko3287
@nikitaantonenko3287 5 жыл бұрын
Thank you so much!)) It's very interesting)
@divanshuful
@divanshuful 5 жыл бұрын
hey Kaushik, I'm using JDK 8 running my project as Gradle, installed all the dependencies including Jackson XML one too, but still getting a response in XML format! any solution, please.
@DEVESHANAND_gradstuff
@DEVESHANAND_gradstuff 5 жыл бұрын
include annotation in your code. @produces=(MEDIATYPE.ApplicationJSON) if want in JSON format.
@anandbabu4191
@anandbabu4191 5 жыл бұрын
Thank you so much sir its really helps me
@Madzoski
@Madzoski 5 жыл бұрын
Anyone got an idea why I get : "There was an unexpected error (type=Not Found, status=404). No message available" error when calling microservices?
@abdullahpoyraz2838
@abdullahpoyraz2838 5 жыл бұрын
same here
@Madzoski
@Madzoski 5 жыл бұрын
@@abdullahpoyraz2838 It was an error in the return types in my case, solved it by double checking the program architecture, keep an eye on that.
@prateekaggarwal62
@prateekaggarwal62 5 жыл бұрын
i am getting "java.net.UnknownHostException: movie-info-service" when connecting to movie catalog service. The movie info service registered is with eureka server, it is showing on the eureka server page. Any help here would be appreciated. code inside the movie catalog controller : restTemplate.getForObject("movie-info-service/movies/" + rating.getMovieId(), Movie.class);
@KarthikBenki
@KarthikBenki 7 ай бұрын
who is watching in may 2024
@manishmishra415
@manishmishra415 5 жыл бұрын
Thank u so much sir..
@SCOTTISH_TAMILAN
@SCOTTISH_TAMILAN 5 жыл бұрын
@Autowired private LoadBalancerClient loadBalancer;
@arnobchowdhury3191
@arnobchowdhury3191 4 жыл бұрын
So much work is already done, feel like using it for free is not justified to the spring framework developers.
@p111calcutta1
@p111calcutta1 3 жыл бұрын
you dont need a fake accent buddy. You are doing good job anyways
@akshayborse5756
@akshayborse5756 4 жыл бұрын
What if I want to do Load Balancing myself through another application, how can I disable the Load Balancing of RestTemplate?
23 Recap and Next Steps - Spring Boot Microservices Level 1
4:20
Java Brains
Рет қаралды 150 М.
Гениальное изобретение из обычного стаканчика!
00:31
Лютая физика | Олимпиадная физика
Рет қаралды 4,8 МЛН
小丑教训坏蛋 #小丑 #天使 #shorts
00:49
好人小丑
Рет қаралды 54 МЛН
VIP ACCESS
00:47
Natan por Aí
Рет қаралды 30 МЛН
20 Creating Eureka clients - Spring Boot Microservices Level 1
9:30
19 Starting a Eureka server - Spring Boot Microservices Level 1
9:00
Гениальное изобретение из обычного стаканчика!
00:31
Лютая физика | Олимпиадная физика
Рет қаралды 4,8 МЛН