Designing Microservices using Spring Boot, Spring Cloud, Eureka and Zuul | # 1 | 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 2 Video link: • Designing Microservice...
⏱ Chapter Timestamps
====================
0:00 - Intro
0:46 - Architecture
8:36 - Creation of db-service
25:29 - Testing db-service
27:47 - Deletion feature in db-service
30:50 - Creation of stock-service
47:39 - Testing stock-service
52:15 - Creation of eureka-service
56:39 - Eureka Dashboard
57:34 - Enable Eureka in stock-service
59:31 - Enable Eureka in db-service
📌 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: FCP
🎼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.
#Spring #SpringBoot #TechPrimers
#SpringCloud #Microservices #TechPrimers
Пікірлер: 364
⏱ Chapter Timestamps ==================== 0:00 - Intro 0:46 - Architecture 8:36 - Creation of db-service 25:29 - Testing db-service 27:47 - Deletion feature in db-service 30:50 - Creation of stock-service 47:39 - Testing stock-service 52:15 - Creation of eureka-service 56:39 - Eureka Dashboard 57:34 - Enable Eureka in stock-service 59:31 - Enable Eureka in db-service
The best thing about the tutorial we can see what errors might come during setup, thank you techprimer to make such videos not readymade things.
Wow. Excellent session which covers clearly what it is intended to. Kudos to tutor.
Thank! This is the best in the open spaces of the site, the explanation is simple and clear Thank you!
You seriously deserve an like and subscribe. You teach the way it actually help to learn than just showing how one do it its more like how its must be done. Thanks for the great tutorial :)
I would say it's the best video with eureka and zuul implementation. Thanks :)
THANK YOU SO MUCH. Pros: - Great hands on explanation - No fluff, just stuff Cons: - BG music - Sometimes the scrolling between IDEs is too fast (so unable to see which layer has what port number) - but managed to pause the find the info. Overall I enjoyed watching the full video. Better than some videos I have seen on pluralsight.com Keep up the good work buddy!!
your explanation and presentation are awesome.
Thanks for the presentation. Its nice & to the point for someone who wants to quick start on Micro Services using Spring Boot.
great tutorial - wish there was no music..it is very distracting..Keep posting more
Awesome ! So simple and fast :) keep rocking
Excellent tutorial. Easy to understand, you really deserve lot Thanks
Excellent !!! In fact resolving the errors (while running the server) due to incorrect port number, made the video revisit the configuration, which could have been missed out while watching :-). Excellent again !!!
Hey man, Thanks for the tutorial, very informative!!
Nice explanations, refreshed the concepts..
Best demo I have ever seen
Very nicely explained.......Awesome :) Thanks a lot
Amazing video ..simply followed the steps and application worked perfectly . Also got the understanding of Netflix Eureka. Great tutorial!!
@TechPrimers
6 жыл бұрын
Thanks Surabhi. Glad that was helpful
@rushalibhattarai9579
4 жыл бұрын
sir do u have database regarding this project?
This is a wonderful technology channel.
@TechPrimers
3 жыл бұрын
Thank you. Glad its useful
Neat and clean explanation. Thanks for the video.
Very nice tutorial.. Thanks... waiting for upcoming videos..
Hi, great job, thanks! Some people talk about noisy music at background, but I personally think, it was calming and fitted well, so please, don't remove it)
GREAT tutorial!!! Very clear & well explained. (Like others said, background sound was a bit loud but I'm sure that can be fixed next time. One way to control that sound is to record the video without background, then add background sound during the video mixing so you can keep it on a separate audio channel & control its volume when needed)
Such a nice tutorial. Thanks man
NO issue.1st part Worked perfectly as shown. Currently running Spring Boot 2.0
@rushalibhattarai9579
4 жыл бұрын
sir can u share me database related to this project
really great tutorail, thx very much!
Nice video ... Ajay..learnt lot of things in very less time.
Really nice video. I watched both of them and liked them as well. good information is filled in less time along with Architecture diagram. One of the best videos to learn Spring boot concepts. -$
@TechPrimers
6 жыл бұрын
thanks sachin. Glad that was useful
Great channel! very use full
Really great tutorial. Thank you. Regards!
@TechPrimers
6 жыл бұрын
thank you mate. glad that was useful
Nice tutorial!!! Good job
Very nice and informative video. Keep it up
Excellent tutorial
superb tutorial .. n grt background music .. very helpful
Thank you so much my friend.
Superb tutorial and presentation!
@TechPrimers
6 жыл бұрын
Thanks Channu. Glad that was useful
Great video!!!, Kudos to you
superb Tech Primers It's a very helpful video session thanks a lot to share this type of knowledge thanks again
@TechPrimers
6 жыл бұрын
Thanks Ramjeet
Awesome keep up the good work
You are a champion!!!
You are awesome buddy. I really love the way you code. Especially Java8. #MicroServices #Spring-Boot #Spring-Cloud #Java8
Awesome tutorial !!!
@TechPrimers
6 жыл бұрын
+Arvind Verma thank you Arvind
Awesome tutorial. Many thanks. Kindly keep the background music low when uploading more tutorials.
Awesome thanks so much
This is an excellent resource Ajay. It's true the background music is a little disconcerting but if you just lower it without muting it I think it does help to concentrate the mind. It's a real find of a video. Inclusive of the resources you mention in the title, you cover start.spring.io, Java 8 streams and display a excellent working knowledge of Intellij. Thanks and well done.
@TechPrimers
5 жыл бұрын
Thanks mark. Yeah. all new videos don't have the music.
Nice, thanks a lot
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.
Nice tutorial
amazing work sir :)
@TechPrimers
6 жыл бұрын
Thanks Vikram
Very nice video
Thank you so much
Best ever keep it up thanks
@TechPrimers
6 жыл бұрын
thanks swikar
Thank you very much
Ajay, too good..Keep posting:)
@TechPrimers
5 жыл бұрын
Thank you Pritam. Glad that was useful!
Awesome
Superb :)
@TechPrimers
3 жыл бұрын
Glad it was helpful 👍🏻
Hello Ajay, Thank you for wonderful tutorials. Explanation was very good with easy examples. At 4:16, you mentioned that you have prepared videos of what is Eureka and What is Zuul. I tried to find those videos, but didn't catch them. Can you please share link of those videos.
Nice tutorials love to watch all your videos just one request can we expect Oauth 2 with microsevices
@TechPrimers
6 жыл бұрын
It takes a while to create microservices example. I do have a day job in a company, so finding it difficult to do everything.
Hi Tech Primers, How would you secure your services ? Could you help me in understanding, what could be the good architecture to implement authentication and authorization in micro services, assuming application is both B2B and C2B.
Hi.. Can u pls add new video for adding throttling in Spring Cloud services solution project.
Hi, please give the link to the video you mentioned "What is zuul" and "What is Eureka"
Nice tutorial. If you can give the links for your other tutorials in the description, it would be easy to refer. I could not find a separate video from you on zuul proxy as you have mentioned in this tutorial.
Great tutorial., how to secure rest endpoints? auth-service?
@TechPrimers
7 жыл бұрын
+Enhsuld Zorigtbal ya. We can use Spring security with oauth2 or something similar. I will cover that in a different series. May be next week
Awesome video!! Once the microservice architecture is created, how would I implement Swagger for documenting the API endpoints?
@TechPrimers
6 жыл бұрын
you can check my video on swagger with spring boot and use it in this
Whats your opinion on using netflix oss vs istio Envoy when it come to deploy this application on k8s ?
Hi Ajay, it appears a bit fuzzy to me the difference between SOA and microservices. But, as I understand, the main differences are that microservices are more fine-grained than SOA, and each microservice has an indipendent database layer. In this example, we have 2 microservices that are using the same database layer. So, isn't this going more towards SOA than real microservices, and what is the best approach? Thanks a lot for your great videos. Valentino
Good Job...Please add some advanced level videos on microservices covering Zipkin & hystrix.
@TechPrimers
6 жыл бұрын
sure wil do neeraj
Thanks
Hello , How do I deploy this in External SSL enabled tomcat ?
when to use service registry and service discovery .plz give me an idea plz help.plz provide the video
Thank you very much.Please make a video on Docker.
@TechPrimers
6 жыл бұрын
hi Anil, you can check my video on Docker with Spring Boot.
Hi @techprimers_admin, nice explanation, And also I was wondering what’s the software you use for your presentations where the images/text will get step by step instead of all at a time in ppt. One you used above during 1:58 where the boxes (components) are coming just like magical that too in single page.. thank you.
@TechPrimers
3 жыл бұрын
I use Google Slides kishore. Yes its a mixture of component animations and slide transitions
Hi Ajay Great tutorial! Specifically learned about the usage of Zuul - Netflix's JVM based router and server side load balancer. Also learned about client-side service discovery using Spring Cloud Netflix Eureka. By the way, the music you play in the background is pretty cool. Sets the mood to write code :) Can you share the name of the music? ;) Thanks!
@TechPrimers
6 жыл бұрын
Thank you Tariq. Glad to hear that. :) In this video the music is here: brokeforfree.bandcamp.com/track/day-bird Most of videos are from Joakim Karud (you can search in soundcloud.com for his tracks)
Hi , when I am converting DB service application as eureka client , every times it fails causing java.sql.SQLException: Unable to load authentication plugin 'caching_sha2_password'. , hibernate session factory and related exception , whereas when i comment out the @Enable eureka client it starts working fine, I added the dependencies as mentioned and also tried changing the version of the spring-boot dependency
Hi this is very good video on Microservices can you please demo how we can deploy same project on container platforms like docker and kubernetes
YOu mentioned about the video on Eureka and Zuul. Kindly, provide the link. WIth google getting many other
Hi please share URL for zuul and eureka as you mentioned in this video.
Hi, Could you explain the reason for embedding zuul proxy in eureka server ? What is the strategy of running these two process in same service/instance ? Can i use this same strategy in production environment ? What type of discovery is this pattern ? Your architecture diagram look likes Server - Side Discovery but implementation looks like Client-Side discovery. Thanks in advance.
How in microservice architecture two services communicate each other ? and if any exception through one service which is dependent on other service how we will handle the exception ??
Can you share what do you use for your diagrams. I liked the software. Great channel. Love your tutorials
@TechPrimers
6 жыл бұрын
In this video, I had used Google Docs(Slides). I use a mixture of Xmind and Google Docs in my videos.
@redsnakeintown
6 жыл бұрын
You can also use the start.spring.io from within Intellij so you dont have to go to the project to open it..!
Hi Tech Primers, which component does the load balancing ? Service Registry or API Gateway ? thanks
@TechPrimers
4 жыл бұрын
It depends. Usually API Gateway does it in our case
Let assume we have 30 microservices, so one instance of eureka server can not handle the all request. so we have to go for multiple instance of eureka server. my question is how to configure multiple instance of eureka server and how to register microservices with them?
Nice videos really helpful
why do we need to register db service instance too as a client ? because anwway we are gonna access via stock price service right. Is there any specific purpose behind this registration?
@TechPrimers
7 жыл бұрын
+surendirababu janarthanan Yes. We don't have to hard code URL of Db service in stock service, hence we register db service to Eureka and access it from there. If DB service is deployed in different port, we don't have to do a code change in stock service. Hence this architecture pattern is followed
Very interesting video as it shows consequently how the practive works very good. Is the source code for download somewhere?
@TechPrimers
5 жыл бұрын
Yes it's in the GitHub link in the description
Hi, Even after adding the spring-cloud dependency, I'm not getting @enableEurekaClient annotation. Please suggest.
@TechPrimers
6 жыл бұрын
can you check if the jars are getting downloaded to your maven repo.may be ur firewall is blocking?
Great Tutorial. Thanks a lot. Understood nicely. Though I have a question to ask. Can this be considered an architecture and procedure followed by real microservices projects development companies? Asking this because I'm working in spring boot projects in a company since last two years and looking for a job change with good hike. So after going thoroughly by these microservices tutorial can I call myself a Microservice developer as well? Please clear my doubts. Will be grateful to you.
@TechPrimers
6 жыл бұрын
Yes. This is an enterprise level Microservices architecture. This is while solving one specific problem. The are more design patterns and implementation details on providing a purely functional Micoservices development
@bharpoorkt5165
6 жыл бұрын
Thanks a lot for the response. From now onward I'm your true follower.
Its returning 401 - unauthorised now with 3.13.0 and 3.12.3. Is there a way to fix this?
Can you provide the link to learn about zuul? I tried searching it , but not able to find it…
hello... I have implemented zuul gateway which helps to call microservices .but the doubt is I want to apply like, I have authenticated service which implements JWT, and some other micro services. now I want to check before every request from zuul - URL is the user already logged in or not if the user already logged in then able call other microservices or APIs else return login UI. please give me some reference or hit to do this.thank you in advance,
Can you do one video on sagas design pattern with Spring boot based code example? Thank you and much appreciated.
Can please tell me someone difference between jparepository vs curdrepository. When to use jparepository When to use curdrepository Thanks in advance
i am getting the following error Parameter 0 of constructor in com.techprimers.stock.dbservice.resource.DbServiceResource required a bean named 'entityManagerFactory' that could not be found.
@TechPrimers
6 жыл бұрын
+Nikhil looks like the constructor injection is missing. Which version of the Spring boot are u using
@Nikhil-fm4ii
6 жыл бұрын
hi tech primers thank you for fast reply i am using 1.5.3 release version of spring boot.
@Nikhil-fm4ii
6 жыл бұрын
i solved the issue was because of the compatibility between goals
@TechPrimers
6 жыл бұрын
+Nikhil nice
@StyleTrick
6 жыл бұрын
How did you manage to solve the problem? I'm getting the same error as of now. Thanks
Hi, Thanks for the hands on tutorial. Just one doubt. Don’t you think the database should associate with each micro services instead one common dB services for two micro services?
@TechPrimers
6 жыл бұрын
That's upto us. These are principles and standards. It makes sense when each microservices are managed by a different team.
@ankurshah8341
6 жыл бұрын
If so then how will it be different then the monolithic architecture where all the services is referring single database. If we follow the one you are saying, it will be monolithic service sooner than later. Isn't it?
Thanks for the tutorial. Is there any tutorial shared by you to show the communication between microservices using eureka on kubernetes (any cloud). If yes please share the link.
@TechPrimers
3 жыл бұрын
Does this video suffice Deepak? - kzread.info/dash/bejne/m5etqqujlsq_grw.html
@DeepakPandey-ij3bz
3 жыл бұрын
@@TechPrimers Thanks for the reply. This tutorial is not including eureka server but the it is helpful in understanding the communication between microservices. I have seen a lot of examples where eureka is used and in eureka server we have to provide a url of eureka server in properties. I am trying to understand how that url part will be handled in kubernetes (cloud) because in local machine it is localhost but in kubernetes it should be pod url. Please share your thoughts. Thanks
Really very nice Tutorial. well explained, Thanks mate. For Eureka server, your 8080 port was in used not 8761. You don't need to change your port cause your 8080 was already in use taken by tomcat server by default, therefore, it was showing an error. Running Eureka server at 8761 will not work. it's tomcat which brings this server up. When you change the Tomcat server port it started running fine.
Can you please give the next video's link?
When you want to open a Maven project in IntelliJ, select the 'pom.xml' file and open it as a project. IntelliJ will automatically pickup that it's a Maven project. If you select just the folder, generally it won't recognise that it's a Maven project at first.
@TechPrimers
6 жыл бұрын
thanks for the tip Artemas
Hi I am using AWS ecs to deploy springboot microservice application and I am able to do. But how to deploy using eureka server and client. I search in google but didn't get any proper blog to deploy eureka in aws. Please someone help me what are the changes needed to deploy eureka in AWS.
Good tutorial but remove background noise. Thanks a lot , that I understood basics of ms . Please upload next videos