Designing Microservices using Spring Boot, Spring Cloud, Eureka and Zuul | #2 | Tech Primers

  Рет қаралды 79,987

Tech Primers

Tech Primers

Күн бұрын

This video covers an example implementation of Stock Price Viewer using Microservices Architecture using Spring Cloud, Spring Boot, Eureka, Zuul.
🔗Github Link for Code: github.com/TechPrimers/stock-...
🔗Part 1 Video link: • Designing Microservice...
📌 Related Playlist
================
🔗Spring Boot Primer - • Spring Boot Primer
🔗Spring Cloud Primer - • Spring Cloud Primer
🔗Spring Microservices Primer - • Spring Microservices P...
🔗Spring JPA Primer - • Spring JPA Primer
🔗Java 8 Streams - • Java 8 Streams
🔗Spring Security Primer - • Spring Security Primer
🔗Containers Primer - • Containers Primer
🔗Kubernetes Primer - • Kubernetes Primer
🔗AWS Primer - • AWS Primer
💥Join TechPrimers Slack Community: bit.ly/JoinTechPrimers
💥Telegram: t.me/TechPrimers
💥TechPrimer HindSight (Blog): / techprimers
💥Website: techprimers.com
💥Slack Community: techprimers.slack.com
💥Twitter: / techprimers
💥Facebook: TechPrimers
💥GitHub: github.com/TechPrimers or techprimers.github.io/
🎬Video Editing: iMovie
🎼Background Music: Broke For Free - Day Bird
brokeforfree.bandcamp.com/tra...
---------------------------------------------------------------
🔥 Disclaimer/Policy:
The content/views/opinions posted here are solely mine and the code samples created by me are open sourced.
You are free to use the code samples in Github after forking and you can modify it for your own use.
All the videos posted here are copyrighted. You cannot re-distribute videos on this channel in other channels or platforms.
#SpringCloud #Microservices #TechPrimers

Пікірлер: 197
@GauravSharma-wb9se
@GauravSharma-wb9se 6 жыл бұрын
Dude.....You have cleared my all doubts almost by this series of videos on this application, I was struggling a lot from long to learn micro service complete flow end to end. Thanks for your great work...god bless you :)
@TechPrimers
@TechPrimers 6 жыл бұрын
Thanks Gaurav
@dhanyakumargonageri4259
@dhanyakumargonageri4259 4 жыл бұрын
@@TechPrimers Man nice explanation.
@playtochat5917
@playtochat5917 4 жыл бұрын
HI gaurav are u working on micro services now? i am strucked ann issue while calling the yahoo api for getting stock quotes. The problem is like when we are passing a quote like "GOOG" to get method of Yahoo finance i am getting index out of bound exception. i am not sure why it is happening.Could you please help me out?
@sarojsahoo8763
@sarojsahoo8763 4 жыл бұрын
@@playtochat5917 Is this resolved ! Make a core java application and try getting stock object
@playtochat5917
@playtochat5917 4 жыл бұрын
@@sarojsahoo8763 it's been seven months ji. Any way thanks for the reply..it got resolved 😊. Now I want to learn react . Can u suggest me a good source?
@anusaxena1621
@anusaxena1621 4 жыл бұрын
I was trying to find out a well explained video now I got it when I saw this one. Thanks for sharing wonderful information.
@niftymiller6057
@niftymiller6057 5 жыл бұрын
Awesome ! :) and seriously rocking video. Just seeing part-1,2 of these videso clarified so much of my long pending doubts. keep up the good work.
@Premkumar-ln7gt
@Premkumar-ln7gt 5 жыл бұрын
i have just started searching about microservices and i must say your the best i have ever seen .great videos..keep going .it really help full in understanding the technologies which we never work.
@61Marsh
@61Marsh 6 жыл бұрын
I Have learnt a ton from this series! Thanks mate
@ldyao
@ldyao 5 жыл бұрын
excellent video! thank you so much for teaching me how to use spring cloud!
@sachinghumbre7835
@sachinghumbre7835 5 жыл бұрын
Both videos are very nice. I think the way you are explaining is very good. What I liked most is that you are not only discussing particular topic but also dealing with exceptions occurring during execution. This way we learn quickly and confidently. Many thanks !!! Keep it up !!!
@samiraghayarov6898
@samiraghayarov6898 4 жыл бұрын
Thanks a lot for all of your clear explanations which help people to improve their skills , great job!
@krishnaiahkashaboina4207
@krishnaiahkashaboina4207 5 жыл бұрын
This is excellent and very help full. Thank you for your effort. You have give so much knowledge about Micro service
@sivakumarchekuri
@sivakumarchekuri 6 жыл бұрын
Excellent!!!!! Thanks Tech Primary for nice demo
@TechPrimers
@TechPrimers 6 жыл бұрын
my pleasure siva. Glad that was useful
@arjunasettymurahari2568
@arjunasettymurahari2568 5 жыл бұрын
This is best video on cloud and micro services .. nice explanation and live code as well. Awesome .. Thank you for your great effort.
@knockjkeee
@knockjkeee 5 жыл бұрын
Thank! This is the best in the open spaces of the site, the explanation is simple and clear Thank you!
@sammyzim
@sammyzim 6 жыл бұрын
Thanks for this. Good crash course on micro services with excellent example architecture
@TechPrimers
@TechPrimers 6 жыл бұрын
Thanks Sam. Glad that was useful
@swaprks
@swaprks 5 жыл бұрын
This is the best tutorial I have gone through. Each and every flow is well explained. This is amazing work. If you can add the spring security login and registration module to it, that would be complete package.
@upenderyarra2772
@upenderyarra2772 6 жыл бұрын
Awesome demo , thanks to Tech Primers
@TechPrimers
@TechPrimers 6 жыл бұрын
Thanks Upender
@steambassador
@steambassador 4 жыл бұрын
Thank you! this tutorial is gold!
@mallen8557
@mallen8557 5 жыл бұрын
Excellent explanation. Thanks!
@vikasmessi
@vikasmessi 6 жыл бұрын
Thanks a lot for the video. Really instructive. God bless!
@amardeeppunekar5373
@amardeeppunekar5373 5 жыл бұрын
This is really useful and interesting video, thanks a lot, good work.
@Teluguboygaming245
@Teluguboygaming245 5 жыл бұрын
Good and Nice explanation to learn micro service complete flow end to end.Thanks for provide this with example.
@ruchirpt
@ruchirpt 5 жыл бұрын
Thank you for wonderful work.
@jannu234
@jannu234 5 жыл бұрын
You explained very nicely...... It cleared my all doubt Thanks a lot....
@hareeshs4177
@hareeshs4177 5 жыл бұрын
good and explanatory. thanks for your efforts.
@aniruddhavaidya6337
@aniruddhavaidya6337 5 жыл бұрын
Useful and informative.
@AkarKyaw1
@AkarKyaw1 5 жыл бұрын
Thanks for sharing. It is very helpful and easy to understand.
@AmitSingh-vb6oj
@AmitSingh-vb6oj 6 жыл бұрын
Tech Primers you did amazing job with this nicely explained tutorials. Best wishes cheers.
@TechPrimers
@TechPrimers 6 жыл бұрын
Thank you Amit
@andrzejokon1517
@andrzejokon1517 6 жыл бұрын
Great tutorial!
@nithingn3567
@nithingn3567 6 жыл бұрын
Thanks a lot.Fabulous job :)
@selvibr394
@selvibr394 6 жыл бұрын
Very good info about microservice design
@bhanusreeja3205
@bhanusreeja3205 5 жыл бұрын
Worthy video - Thanq :)
@vinodguptamummidisetti7702
@vinodguptamummidisetti7702 5 жыл бұрын
Bro... Thanq so much... Now I clearly understood... How to work with microservices
@malam3958
@malam3958 3 жыл бұрын
Dude... you just did awesome!
@TechPrimers
@TechPrimers 3 жыл бұрын
Glad it's helpful
@jayasudhakar4463
@jayasudhakar4463 5 жыл бұрын
Good explanation Bossss!!
@aniruddhavaidya6337
@aniruddhavaidya6337 5 жыл бұрын
Very informative and useful
@meenakshisundaram3231
@meenakshisundaram3231 4 жыл бұрын
To be really honest: Initial mindset: 1. I wasn't interested about 1 hour video 2. I ran thru the comments that music is little problematic. After seeing both videos: 1. Wow. 1 and 1/2 hours went like a breeze with your cool way of doing things 2. Music was kept that interesting factor rolling on, what's next you would make us know. Great Tech Primer. Thank you 🙏💕
@TechPrimers
@TechPrimers 4 жыл бұрын
Thanks buddy. Glad it’s helpful
@rajusakthitube
@rajusakthitube 6 жыл бұрын
Great work
@Premkumar-ln7gt
@Premkumar-ln7gt 5 жыл бұрын
You are really awasome
@anantht2701
@anantht2701 7 жыл бұрын
good demo mate 👍
@TechPrimers
@TechPrimers 7 жыл бұрын
+Ananth T thank you Ananth
@jeeperscreepers7
@jeeperscreepers7 6 жыл бұрын
great video!
@rahulgoti3864
@rahulgoti3864 6 жыл бұрын
Thank You!!
@DeepakPandey-ij3bz
@DeepakPandey-ij3bz 5 жыл бұрын
Thanks for the vedio. Very informative. Please upload vedio on transaction management in microservices showing 2 phase commit or sagas pattern.
@dinakerdeshini1367
@dinakerdeshini1367 4 жыл бұрын
Best video on Microservices on entire KZbin platform
@TechPrimers
@TechPrimers 4 жыл бұрын
Thanks Dinaker
@karan6551
@karan6551 3 жыл бұрын
Awesome 🔥❤️❤️❤️❤️
@sbylk99
@sbylk99 5 жыл бұрын
The best tutorial of MS, solve most puzzles. Although I don't think your MS communication codes are efficient :)
@neshant89
@neshant89 6 жыл бұрын
very nice video tech primers.
@TechPrimers
@TechPrimers 6 жыл бұрын
+neshant sharma thanks neshant. Glad that was helpful
@sathishraj1
@sathishraj1 6 жыл бұрын
Great work of philantrophy ! Can you make live videos , so we can clear doubts online
@igrai
@igrai 6 жыл бұрын
thank you!
@bhaskergour
@bhaskergour 4 жыл бұрын
great tutorial
@songleishiyulin
@songleishiyulin 6 жыл бұрын
nice. short and systematic
@TechPrimers
@TechPrimers 6 жыл бұрын
+Lei Song thanks lei
@vedprakashmishra7535
@vedprakashmishra7535 5 жыл бұрын
Good job . Jut add security also it will be very helpful.
@sonalkesarwani7234
@sonalkesarwani7234 5 жыл бұрын
its a great tutorial covering all aspects. Just a constant issue that I have faced starting from its first part is that the audio moves on but the video doesn't catch up with it. I had to pause and start again from a previous second to match the video to its audio. Else its very well explained.
@shubhangibansod3521
@shubhangibansod3521 4 жыл бұрын
Useful video....
@ajitkumargiri87
@ajitkumargiri87 5 жыл бұрын
Thanks for these Informative videos. You have done a great job,it really helps me to understand the micro service and its implementation. Here if you can add the security for the REST service ,it will he great help?
@srikanthbk5604
@srikanthbk5604 5 жыл бұрын
This is very useful and thanks, kindly upload the same tutorial without back ground music it is very very disturbing especially the first video.
@sudiptendupal7254
@sudiptendupal7254 5 жыл бұрын
Hi Tech Primer, let me complement you first by saying "both the videos you posted on Micro services were simply superb". I am an AWS Architect who is learning Spring Boot from your lectures. Can you help me in resolving few questions on a complex AWS architecture diagram? I am looking forward to integrating AWS API-Gateway REST services with Spring Boot.
@sarojsahoo8763
@sarojsahoo8763 4 жыл бұрын
Also we need to add @CrossOrgin annotation on Stock Resource methods in order to access the resources from a different origin
@kavithayadav2809
@kavithayadav2809 5 жыл бұрын
I think the way you are explaining is very good.plz provide the microservices designpatterns also
@TechPrimers
@TechPrimers 5 жыл бұрын
Yes Kavitha. I have done few already. follow the Microservices playlist. I will be doing more in the coming weeks
@sanjaymodha3751
@sanjaymodha3751 5 жыл бұрын
I have used yahoo finance api 3.14.0 version and added as a external dependency and then it works!
@jeroenj7494
@jeroenj7494 5 жыл бұрын
hero!
@rishirajsoni7262
@rishirajsoni7262 4 жыл бұрын
Thanks Tech primers, one of the best microservices video, given a clear picture.. I hve one doubt that hw to move this architecture on different environment i.e qc n uat
@TechPrimers
@TechPrimers 4 жыл бұрын
You can use profiles to control configurations n use CICD to deploy to the destination env
@sangeethavariath3124
@sangeethavariath3124 4 жыл бұрын
Thank you. Finally got hold of something that I was looking for. Since its a two year old video, has anything changed w.r.t libraries etc. Would be great to know!
@vijaykumarbrahma-routhu473
@vijaykumarbrahma-routhu473 6 жыл бұрын
Awesome tutorial buddy. It was very useful in understanding all the pieces involved. FYI... the yahooFinance API version mentioned in the tutorial was not working for me. When I changed it to 3.12.3 it worked for me.
@mohanvamsi007
@mohanvamsi007 6 жыл бұрын
Thanks, it works when changed to 3.12.3
@yueranzhang2350
@yueranzhang2350 4 жыл бұрын
Very great and clear tutorial! Thx for ur help. Just one little question: what is the difference between Eureka and Zuul? It seems like both of them all have the mapping between service name and their IP address, and they both works like DNS server
@vckumarvk
@vckumarvk 6 жыл бұрын
your videos are really awesome. Thank you very much. You made the developer life easy. Really appreciate your effort. Do you have any video on how to deploy microservices, eureka and hystrix in cloud foundry or docker ? I saw you deploying helloworld in cloud foundry. If possible please create a video. Thanks again. Keep up the good work.
@vckumarvk
@vckumarvk 6 жыл бұрын
I got it. I was able to deploy eureka server and client. But I was able to deploy only 2 apps due to memory issue. I would like to deploy at least 3, any idea how can we do it in free edition? Thank you.
@TechPrimers
@TechPrimers 6 жыл бұрын
Thanks Vins. Glad that was helpful.
@TechPrimers
@TechPrimers 6 жыл бұрын
I also had the same problem. Unfortunately, We cannot deploy more apps in the Trial Verion of PCF.
@04nikunj
@04nikunj 6 жыл бұрын
Thank you for the video, one doubt why have you hardcoded url in zuul. Why cannot we use the application names as we did in the stock-service for using the db-service?
@VRRM
@VRRM 5 жыл бұрын
I had a question regarding hibernate. In any booking system If multiple users select the same seat. How to handle it in the backend so that only one user gets the seat
@DigvijayBhakuni-1990
@DigvijayBhakuni-1990 6 жыл бұрын
Very Good Video Can you do authentication with Zuul
@bhavishyasoni7491
@bhavishyasoni7491 4 жыл бұрын
Nice video dear, can you please share how we can scale up the services by creating the multiple instances of the db-service and stock-service??
@maclovesgeet
@maclovesgeet 6 жыл бұрын
Nice work. Thank you very much. Quick question on architecture. What is the purpose of separating Quote maintenance service and DB service. For me, it looked like a single domain providing Quote service with the persistence.
@TechPrimers
@TechPrimers 6 жыл бұрын
yes you are right. I wanted to show the service registry with this example, hence split it further
@ancellitto
@ancellitto 6 жыл бұрын
Hi Ajay, thanks for this wonderful tutorial...it truly gave a holistic picture about microservices! BTW is running micro services that resource intensive? and what machine config would you recommend to check this out..I am currently using a virtual machine for all my personal development..do you think that would suffice?
@TechPrimers
@TechPrimers 6 жыл бұрын
Hi Ancel, very good question. Yes. It's bit resource intense since you will be running multiple JVMs. If you have a 8Gb VM let's say, it's more than enough to run 5 to 6 Microservices which hav 1gb memory each. However if you can stil manage with 512mb, its more than enough. I don't know how does it fair with AWS w.r.t cost. Also since these are Microservices you don't a single VM. Instead u can hav multiple VMs and can scale whenever you need them
@GauravSharma-wb9se
@GauravSharma-wb9se 6 жыл бұрын
can you please make video on topic i.e. when to go for messaging queue(Kafka) and when we should go for direct call using rest template ?
@anilnaidu4751
@anilnaidu4751 6 жыл бұрын
hi bro one of the nice video you have done and how we apply security to Api Gateway could you please do one video
@TechPrimers
@TechPrimers 6 жыл бұрын
+anil naidu sure will do a video on securing microservicsa
@neshant89
@neshant89 6 жыл бұрын
tech primers please do a video on securing the microservices and gateway
@playtochat5917
@playtochat5917 4 жыл бұрын
Hi Ajay. I have watched the part 1 and its really really helpful in this part i am strucked an issue while calling the yahoo api for getting stock quotes. The problem is like when we are passing a quote like "GOOG" to get method of Yahoo finance i am getting index out of bound exception. i am not sure why it is happening.Could you please help me out?
@cafeta
@cafeta 6 жыл бұрын
+Tech Primers how do I register in Zuul the services when the ports are dynamically generated?
@amitpadgaonkar8830
@amitpadgaonkar8830 4 жыл бұрын
Great video!!!. Music is really annoying though. Your presentations are great in themselves. There is no need for background music. It's really distracting
@praveenkumarkodge8184
@praveenkumarkodge8184 5 жыл бұрын
Zuul configured with 8300 and 8301.. what is the use of it ???
@sinanniyaziev5055
@sinanniyaziev5055 6 жыл бұрын
Hi, great tutorial! Would I ask, how to auto-generate properties for zuul properties/configuration in .yml file. I think I saw this in the previous tutorial with the properties file.
@TechPrimers
@TechPrimers 6 жыл бұрын
It's a feature in IntelliJ called Live template. I have shown it in my IntelliJ shortcuts videos
@polimet12345
@polimet12345 5 жыл бұрын
Hi I have a question. If UI hits Gateway to microservice directly (stock Service or dB service) and from here if they lookup in Eureka service discovery for communication between Microservices then what is the point if particular micro service is down or not available or port changed then gate way ips of service has to be changed and redeploy ? I believe api gateway should hit or interact with Eureka service discovery for look up micro service rite ? Please advise
@SrikarReddyAc
@SrikarReddyAc 6 жыл бұрын
Nice video. Can we fire up multiple instances of Stock Service? so that when one service is down or there is too much load then the other will respond. If so, Is there an additional configuration that needs to be setup? What is the optimal way of handling the situation instead of sending error messages to the user?
@TechPrimers
@TechPrimers 6 жыл бұрын
Yes. You need to use Ribbon for load balancing in that case. Yes. there is additional config. For the error handling, you can use Hystrix and return empty response or something similar to make sure error is not propagated to the user
@HossamKandil
@HossamKandil 5 жыл бұрын
Very helpful, question: should we add the services to zuul config , or should it be discovered from Eureka server ?!
@TechPrimers
@TechPrimers 5 жыл бұрын
The new notion is using Eureka Server to perform auto discovery
@josimaramilcarjafa
@josimaramilcarjafa 5 жыл бұрын
amazing videos is missing just security between microservices
@mobinshah1
@mobinshah1 4 жыл бұрын
Zuul Proxy has been forwarded to maintenance... which means that it will probably be discontinued at some point.
@susmithapuppala3599
@susmithapuppala3599 2 жыл бұрын
which zuul version do we need to add for spring boot 2.4.5 ?
@abhishekramkrishna9448
@abhishekramkrishna9448 6 жыл бұрын
The video didn't show to detect service with Eureka service. TheDB service URL is still hardcoded.
@muralik5504
@muralik5504 5 жыл бұрын
Nice tutorial, but I was taken so many pauses to make it on my system.
@Apurvk
@Apurvk 6 жыл бұрын
Hey Ajay, Thanx for the effort. Quick question: How do we go about deploying all these on AWS ? like on EC2 ?
@TechPrimers
@TechPrimers 6 жыл бұрын
there are different ways to do it. AWS CodeDeploy helps in pushing these to EC2.
@Apurvk
@Apurvk 6 жыл бұрын
would you be making a youtube video regarding the same?
@TechPrimers
@TechPrimers 6 жыл бұрын
my latest video shows how to deploy spring boot app manually to EC2. I'm learning AWSCodeDeploy. Will do once i get comfortable with it
@smithdragon6477
@smithdragon6477 6 жыл бұрын
watched Marked
@ohhhgggeeezzz
@ohhhgggeeezzz 5 жыл бұрын
Could you please explain why we need Eureka server / clients? Because zuul proxy settings we already defined the routes path: /db-service/** url: localhost:8300 So without Eureka if we hit our REST endpoint like so http:localhost:8302/db-service/rest/db/{name} would zuul still successfully reach the endpoint?
@ohhhgggeeezzz
@ohhhgggeeezzz 5 жыл бұрын
In spring boot 2 Is anyone getting com.sun.jersey.api.client.ClientHandlerException: java.net.ConnectException: Connection refused (Connection refused)? Both db-service and stock-service is working in eureka dashboard but I get this connection refused like ever 2 minutes..
@balrajmys
@balrajmys 7 жыл бұрын
Awesome demo :) I'm working in spring boot web project calling third party server and pushing orders created from our UI calling the api access. But my concern is I'm pushing 100 orders at a time when it's pushing api server may go down and order creation may stop in between. So I want to push all orders into somewhere and pushing each item to api server. When it's down still orders will be in cache offline and when server is up it has to take orders from the cache instead user uploading from the beginning. Pls suggest
@TechPrimers
@TechPrimers 7 жыл бұрын
+balraj s you can use JMS queue to solve that problem. Check my video on ActiveMq. It's a queue implementation. Messages are stored inside the queue. So that even if the process guess down the messages will be in the active mq topic
@balrajmys
@balrajmys 7 жыл бұрын
Thanks a lot I'll go through ur videos on that and let you know for any help :)
@TechPrimers
@TechPrimers 6 жыл бұрын
+balraj s I have answered your question here: kzbin.info/www/bejne/Y3zSYWuJg9OtbNE
@hi1983ja
@hi1983ja 6 жыл бұрын
Thanks for such a informative video. I have question. Is there any way we can determine whether zuul is hitting appropriate service. It would be helpful if you could provide code snippet or a way to achieve this. Thanks
@TechPrimers
@TechPrimers 6 жыл бұрын
nope. zuuls primary job is to act as a gateway/proxy. so i dont think its required
@hi1983ja
@hi1983ja 6 жыл бұрын
thanks for reply, so in this case how we can determine without executing end to end test that gateway is redirecting the request to proper services.
@ashishkathait6783
@ashishkathait6783 6 жыл бұрын
One question.... can we create a separate microservice for ZUUL at some other port, with its own yml file and integerate it with EUREKA server registry ?? that will decouple the EUREKA and ZUUL
@TechPrimers
@TechPrimers 6 жыл бұрын
+Ashish Kathait yes. That's the idea. My laptop didn't have enough memory to run them separately. Hence i had merged them together
@ashishkathait6783
@ashishkathait6783 6 жыл бұрын
Thanks Tech Primers... This was an awesome tutorial and the best part was you were doing it live. Have one more question. how to do Transaction Management in microservice environment. you explained about hystrix and that is to avoid sending the exception to front end. So is there other technology for Microservice transaction management ? ?
@smishra2128
@smishra2128 5 жыл бұрын
Trying the microservice design on H2 internal Database , getting an error which is taking hours to resolve : com.sun.jersey.api.client.ClientHandlerException: org.apache.http.conn.ConnectTimeoutException: Connect to localhost:8761 timed out at com.sun.jersey.client.apache4.ApacheHttpClient4Handler.handle(ApacheHttpClient4Handler.java:187) ~[jersey-apache-client4-1.19.1.jar:1.19.1] at com.netflix.eureka.cluster.DynamicGZIPContentEncodingFilter.handle(DynamicGZIPContentEncodingFilter.java:48) ~[eureka-core-1.6.2.jar:1.6.2] The Eureka server looks good at 8302 , however when I start the DB service I get this error - is there a way to resolve this ? Application Properties in DB service : spring.application.name=db-service #server.port=8300 [[this is commented as it throws error][ spring.datasource.url=jdbc:h2:mem:testdb;DB_CLOSE_ON_EXIT=FALSE spring.h2.console.enabled=true spring.h2.console.path=/h2console spring.datasource.username=sa spring.datasource.password= spring.datasource.driverClassName=org.h2.Driver spring.jpa.properties.hibernate.dialect=org.hibernate.dialect.H2Dialect
@harichan444
@harichan444 6 жыл бұрын
what is need of proxy server here i.e zuul..and we are doing same as we for rest service registration and publishing it and rest client will access it using url. what exactly microservice providing additionally...i am confused with microservice and rest service
@TechPrimers
@TechPrimers 6 жыл бұрын
+harish vs if there are 100 Microservices (every Microservice will be in different port/host) URL will be different and the accessing server will have use know what's the URL for every service they use. Proxy server abstracts that. Micro service uses REST to communicate with each other. Every micro service is nothing but a process or a JVM
@shubhangibansod3521
@shubhangibansod3521 4 жыл бұрын
While calling stockprice service yahoo Finance api is throwing string index out of bound exception.. Plz help with this
@asimah3959
@asimah3959 5 жыл бұрын
I'm getting the following error when trying to run eureka-service. Help is highly appreciated! Error starting Tomcat context. Exception: org.springframework.beans.factory.UnsatisfiedDependencyException. Message: Error creating bean with name 'org.springframework.cloud.netflix.zuul.ZuulProxyAutoConfiguration': Unsatisfied dependency expressed through field 'zuulProperties'; nested exception is org.springframework.boot.context.properties.ConfigurationPropertiesBindException: Error creating bean with name 'zuul-org.springframework.cloud.netflix.zuul.filters.ZuulProperties': Could not bind properties to 'ZuulProperties' : prefix=zuul, ignoreInvalidFields=false, ignoreUnknownFields=true; nested exception is org.springframework.boot.context.properties.bind.BindException: Failed to bind properties under 'zuul.routes' to java.util.Map 2019-01-10 16:48:28.282 INFO 53629 --- [ main] o.apache.catalina.core.StandardService : Stopping service [Tomcat] 2019-01-10 16:48:28.287 WARN 53629 --- [ main] ConfigServletWebServerApplicationContext : Exception encountered during context initialization - cancelling refresh attempt: org.springframework.context.ApplicationContextException: Unable to start web server; nested exception is org.springframework.boot.web.server.WebServerException: Unable to start embedded Tomcat 2019-01-10 16:48:28.299 INFO 53629 --- [ main] ConditionEvaluationReportLoggingListener :
@willyastore
@willyastore 5 жыл бұрын
a lil help?? after fixing StockResource and using @LoadBalanced at Config, when i hit: localhost:8082/rest/stock/Samson, i got: "I/O error on GET request for \"db-service/rest/db/Samson\": Connection reset; nested exception is java.net.SocketException: Connection reset",
@manishjs19
@manishjs19 4 жыл бұрын
Hi Ajay. Currently i am only running db-service and eureka service discovery and accessing db-service thru postman by hitting load balance URL (localhost:8302/api/db-service/rest/db/add) & it works. But If I create multiple instance of db-service (2 instance with different ports) how can i make sure the request is load balanced between 2 instances of db-service. I tried to give comma separated value for list of urls in zuul route url property but that didn't worked. . Can you please advise on how to load balancing only this?
@RishiRaj-ff3sd
@RishiRaj-ff3sd 6 жыл бұрын
How to make setting to make IntelliJ IDEA keyboard shortcut suggestion popups appear automatically, as these are visible in your video?
@TechPrimers
@TechPrimers 6 жыл бұрын
Hi Rishi, its Presentation Assist plugin. I have shown about it here in the IntelliJ Tricks I use video - kzbin.info/www/bejne/oarcaayhociHncU
@singhrudrajeet7
@singhrudrajeet7 4 жыл бұрын
Hey, I have created the complete application but from YahooFinanceAPI the response are coming null. I have used the same version as mentioned in the video. Inside the YahooFinance class, there is getQuotes() - where we have StockQuotesRequest request = new StockQuotesRequest(query);. then List quotes = request.getResult();. Here the request don't generate getResult().. And I'm getting timeout exception. Please help
@shubhammahajan1178
@shubhammahajan1178 6 жыл бұрын
Hi team, first of all..thank you all for these great videos. I'm starting with these technologies using your videos only. But I am having a problem in service registration here. Services are being registered and visible in the Eureka Dashboard, but i am not able to access db-service using it's application name. It's giving me the UnknownHostException: db-service
@TechPrimers
@TechPrimers 6 жыл бұрын
Hi Shubham, please check how you are creating the RestTemplate. It needs to be auto-wired rather than new RestTemplate(). If you autowire SpringBoot will take care of replacing the db-service name with the relevant host and routes it
@shubhammahajan1178
@shubhammahajan1178 6 жыл бұрын
I did autowired the template as you did... but not working...is there a way to communicate in slack???
@shubhammahajan1178
@shubhammahajan1178 6 жыл бұрын
this is the exception that i'm getting: ResourceAccessException: I/O error on GET request for "db-service/rest/db/shubham": db-service; java.net.UnknownHostException: db-service But when i use the localhost:8089 (port of db-service) in StockResource class, everything is working then..please help...
Spring Security using JWT in Spring Boot App | Tech Primers
1:13:04
Tech Primers
Рет қаралды 138 М.
Stupid Barry Find Mellstroy in Escape From Prison Challenge
00:29
Garri Creative
Рет қаралды 21 МЛН
Вечный ДВИГАТЕЛЬ!⚙️ #shorts
00:27
Гараж 54
Рет қаралды 9 МЛН
МАМА И STANDOFF 2 😳 !FAKE GUN! #shorts
00:34
INNA SERG
Рет қаралды 3,8 МЛН
КАРМАНЧИК 2 СЕЗОН 7 СЕРИЯ ФИНАЛ
21:37
Inter Production
Рет қаралды 325 М.
Mastering Chaos - A Netflix Guide to Microservices
53:14
InfoQ
Рет қаралды 2,2 МЛН
RAG Architecture | Scalable Architecture for LLMs
14:39
Tech Primers
Рет қаралды 1,1 М.
REST API Documentation using Swagger2 in Spring Boot | Tech Primers
26:27
Dekho Anaya Ne Kaise Mnaya Apna Birthday 🎂🎉
0:46
Anaya Kandhal
Рет қаралды 36 МЛН
🇹🇷Kemer Beach Antalya - Awesome Views - Türkiye
0:12
Benimle Gor
Рет қаралды 38 МЛН
Выбор за тобой🤓 #jetcarru #shorts #youtubeshorts
0:30
How to get convenience store snack for free
1:00
Mykoreandic
Рет қаралды 44 МЛН
Doesn't let others play
0:15
V.A. show / Магика
Рет қаралды 9 МЛН