Тёмный

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

Tech Primers
Подписаться 134 тыс.
Просмотров 297 тыс.
50% 1

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

Хобби

Опубликовано:

 

7 июл 2024

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 364   
@TechPrimers
@TechPrimers 3 года назад
⏱ 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
@shuklabhanuprakash
@shuklabhanuprakash 5 лет назад
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.
@redgreen9688
@redgreen9688 5 лет назад
Wow. Excellent session which covers clearly what it is intended to. Kudos to tutor.
@knockjkeee
@knockjkeee 5 лет назад
Thank! This is the best in the open spaces of the site, the explanation is simple and clear Thank you!
@abhishekmishra-ik7ve
@abhishekmishra-ik7ve 3 года назад
I would say it's the best video with eureka and zuul implementation. Thanks :)
@manishjs19
@manishjs19 4 года назад
Thanks for the presentation. Its nice & to the point for someone who wants to quick start on Micro Services using Spring Boot.
@jsever5517
@jsever5517 6 лет назад
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 :)
@rahulsantharaam
@rahulsantharaam 6 лет назад
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!!
@vijay517501
@vijay517501 6 лет назад
your explanation and presentation are awesome.
@nabinkhatiwada4597
@nabinkhatiwada4597 5 лет назад
NO issue.1st part Worked perfectly as shown. Currently running Spring Boot 2.0
@rushalibhattarai9579
@rushalibhattarai9579 4 года назад
sir can u share me database related to this project
@peterchen6462
@peterchen6462 6 лет назад
Best demo I have ever seen
@niftymiller6057
@niftymiller6057 5 лет назад
Awesome ! So simple and fast :) keep rocking
@karthikeyanchidambaram6560
@karthikeyanchidambaram6560 4 года назад
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 !!!
@manikmaurya791
@manikmaurya791 6 лет назад
Excellent tutorial. Easy to understand, you really deserve lot Thanks
@abvijaykumar
@abvijaykumar 5 лет назад
great tutorial - wish there was no music..it is very distracting..Keep posting more
@zamundaking8108
@zamundaking8108 4 года назад
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)
@SanjeevKulkarniWorld
@SanjeevKulkarniWorld 5 лет назад
Nice explanations, refreshed the concepts..
@61Marsh
@61Marsh 6 лет назад
Hey man, Thanks for the tutorial, very informative!!
@San13692
@San13692 6 лет назад
Amazing video ..simply followed the steps and application worked perfectly . Also got the understanding of Netflix Eureka. Great tutorial!!
@TechPrimers
@TechPrimers 6 лет назад
Thanks Surabhi. Glad that was helpful
@rushalibhattarai9579
@rushalibhattarai9579 4 года назад
sir do u have database regarding this project?
@sergeykholkhunov1888
@sergeykholkhunov1888 4 года назад
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)
@jannu234
@jannu234 5 лет назад
Very nicely explained.......Awesome :) Thanks a lot
@rageshsharma4368
@rageshsharma4368 7 лет назад
Very nice tutorial.. Thanks... waiting for upcoming videos..
@tejassontakke8382
@tejassontakke8382 3 года назад
Neat and clean explanation. Thanks for the video.
@ahmetcihan8025
@ahmetcihan8025 6 лет назад
Thank you so much my friend.
@saravanansukumaran6679
@saravanansukumaran6679 4 года назад
Such a nice tutorial. Thanks man
@piuroy1384
@piuroy1384 Год назад
Excellent tutorial
@chowbrown7659
@chowbrown7659 5 лет назад
really great tutorail, thx very much!
@andrzejokon1517
@andrzejokon1517 6 лет назад
Really great tutorial. Thank you. Regards!
@TechPrimers
@TechPrimers 6 лет назад
thank you mate. glad that was useful
@sachinshukla6047
@sachinshukla6047 6 лет назад
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
@TechPrimers 6 лет назад
thanks sachin. Glad that was useful
@channuk1
@channuk1 6 лет назад
Superb tutorial and presentation!
@TechPrimers
@TechPrimers 6 лет назад
Thanks Channu. Glad that was useful
@kurupudiveeradurga4970
@kurupudiveeradurga4970 6 лет назад
Nice video ... Ajay..learnt lot of things in very less time.
@VENKATESHPUPPALApatel
@VENKATESHPUPPALApatel 6 лет назад
Great channel! very use full
@AndhraKitchenFoods
@AndhraKitchenFoods 3 года назад
This is a wonderful technology channel.
@TechPrimers
@TechPrimers 3 года назад
Thank you. Glad its useful
@aravindkatte
@aravindkatte 5 лет назад
You are awesome buddy. I really love the way you code. Especially Java8. #MicroServices #Spring-Boot #Spring-Cloud #Java8
@photo_lab4095
@photo_lab4095 6 лет назад
superb Tech Primers It's a very helpful video session thanks a lot to share this type of knowledge thanks again
@TechPrimers
@TechPrimers 6 лет назад
Thanks Ramjeet
@gabokings260388
@gabokings260388 6 лет назад
Nice tutorial!!! Good job
@chinmayabehera1452
@chinmayabehera1452 4 года назад
superb tutorial .. n grt background music .. very helpful
@AmitSingh-vb6oj
@AmitSingh-vb6oj 6 лет назад
Very nice and informative video. Keep it up
@markgargan5793
@markgargan5793 5 лет назад
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
@TechPrimers 5 лет назад
Thanks mark. Yeah. all new videos don't have the music.
@nitinsridhar7555
@nitinsridhar7555 5 лет назад
You are a champion!!!
@harirayapaneni
@harirayapaneni 6 лет назад
Great video!!!, Kudos to you
@MrsanjayMsharma
@MrsanjayMsharma 5 лет назад
Awesome keep up the good work
@ArvindVerma-ct7oq
@ArvindVerma-ct7oq 6 лет назад
Awesome tutorial !!!
@TechPrimers
@TechPrimers 6 лет назад
+Arvind Verma thank you Arvind
@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.
@InterviewDOT
@InterviewDOT 6 лет назад
Nice, thanks a lot
@amitrajput8299
@amitrajput8299 5 лет назад
Awesome thanks so much
@obioraokwubanego4789
@obioraokwubanego4789 5 лет назад
Awesome tutorial. Many thanks. Kindly keep the background music low when uploading more tutorials.
@leelaprasadjagu3177
@leelaprasadjagu3177 7 лет назад
Nice tutorial
@vikram6462
@vikram6462 6 лет назад
amazing work sir :)
@TechPrimers
@TechPrimers 6 лет назад
Thanks Vikram
@goodluckndumanya3936
@goodluckndumanya3936 7 лет назад
Thank you very much
@boopathisomasundaram7066
@boopathisomasundaram7066 5 лет назад
Thank you so much
@SwikarP
@SwikarP 6 лет назад
Best ever keep it up thanks
@TechPrimers
@TechPrimers 6 лет назад
thanks swikar
@saurabhgandhi7982
@saurabhgandhi7982 5 лет назад
Very nice video
@pritamghosh4158
@pritamghosh4158 5 лет назад
Ajay, too good..Keep posting:)
@TechPrimers
@TechPrimers 5 лет назад
Thank you Pritam. Glad that was useful!
@subramanianchenniappan4059
@subramanianchenniappan4059 3 года назад
Thanks
@neerajchand6436
@neerajchand6436 6 лет назад
Good Job...Please add some advanced level videos on microservices covering Zipkin & hystrix.
@TechPrimers
@TechPrimers 6 лет назад
sure wil do neeraj
@artemaz
@artemaz 6 лет назад
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
@TechPrimers 6 лет назад
thanks for the tip Artemas
@akashpatel285
@akashpatel285 6 лет назад
Awesome
@gibbs974
@gibbs974 6 лет назад
Thank you very much.Please make a video on Docker.
@TechPrimers
@TechPrimers 6 лет назад
hi Anil, you can check my video on Docker with Spring Boot.
@kpkumar7698
@kpkumar7698 6 лет назад
Nice tutorials love to watch all your videos just one request can we expect Oauth 2 with microsevices
@TechPrimers
@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.
@ameerm7894
@ameerm7894 3 года назад
Superb :)
@TechPrimers
@TechPrimers 3 года назад
Glad it was helpful 👍🏻
@jayakumarj85
@jayakumarj85 6 лет назад
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.
@tapanupadhyay
@tapanupadhyay 5 лет назад
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.
@madhavkotha
@madhavkotha 6 лет назад
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
@mrpavansfriends
@mrpavansfriends 4 года назад
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.
@tariqahsan
@tariqahsan 6 лет назад
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
@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)
@nitinsridhar7555
@nitinsridhar7555 5 лет назад
Please add 3rd episode of microservices video with hystrix and logging that will very helpful Mr. Champion behind tech primer
@TechPrimers
@TechPrimers 5 лет назад
Sure nithin. Will do
@vpezzano
@vpezzano 5 лет назад
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
@ayushjain5584
@ayushjain5584 4 года назад
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
@indraalapati989
@indraalapati989 4 года назад
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.
@zenhsuld
@zenhsuld 7 лет назад
Great tutorial., how to secure rest endpoints? auth-service?
@TechPrimers
@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
@urbannerdz
@urbannerdz 6 лет назад
Awesome video!! Once the microservice architecture is created, how would I implement Swagger for documenting the API endpoints?
@TechPrimers
@TechPrimers 6 лет назад
you can check my video on swagger with spring boot and use it in this
@tech.sunil-info4406
@tech.sunil-info4406 5 лет назад
when to use service registry and service discovery .plz give me an idea plz help.plz provide the video
@sumanchandrasaw7637
@sumanchandrasaw7637 5 лет назад
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 ??
@samyzemmouri4534
@samyzemmouri4534 5 лет назад
Whats your opinion on using netflix oss vs istio Envoy when it come to deploy this application on k8s ?
@atv8465
@atv8465 6 лет назад
Hi.. Can u pls add new video for adding throttling in Spring Cloud services solution project.
@GautamKumar0412
@GautamKumar0412 6 лет назад
Hi, please give the link to the video you mentioned "What is zuul" and "What is Eureka"
@suneesh0388
@suneesh0388 5 лет назад
Hello , How do I deploy this in External SSL enabled tomcat ?
@akshayask4978
@akshayask4978 5 лет назад
Good tutorial but remove background noise. Thanks a lot , that I understood basics of ms . Please upload next videos
@shivamgupta5476
@shivamgupta5476 3 года назад
Nice , Please make some new project using kafka
@codingmechanic8954
@codingmechanic8954 4 года назад
if you're getting a timezone error for mysql, try this line in your application.properties file : spring.datasource.url=jdbc:mysql://localhost:3306/test?serverTimezone=EST5EDT
@VishuCartoons
@VishuCartoons 6 лет назад
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?
@ManasMallik1977
@ManasMallik1977 3 года назад
Nice videos really helpful
@indraalapati989
@indraalapati989 4 года назад
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.
@nirajsoni8231
@nirajsoni8231 6 лет назад
Nice video tutorial but want to know how to implement spring security in microservice architecture? Can you please make video tutorial for that?
@kishoremaroju2720
@kishoremaroju2720 4 года назад
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
@TechPrimers 3 года назад
I use Google Slides kishore. Yes its a mixture of component animations and slide transitions
@himedha
@himedha 5 лет назад
YOu mentioned about the video on Eureka and Zuul. Kindly, provide the link. WIth google getting many other
@parmarkamlesh6493
@parmarkamlesh6493 5 лет назад
Hi please share URL for zuul and eureka as you mentioned in this video.
@redsnakeintown
@redsnakeintown 6 лет назад
Can you share what do you use for your diagrams. I liked the software. Great channel. Love your tutorials
@TechPrimers
@TechPrimers 6 лет назад
In this video, I had used Google Docs(Slides). I use a mixture of Xmind and Google Docs in my videos.
@redsnakeintown
@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..!
@krishnajunk
@krishnajunk 6 лет назад
For same kind of implementation, my team is asking 2 Weeks :-( ... but you did within an hour :-)
@TechPrimers
@TechPrimers 6 лет назад
hahaha. :)
@psangawar7130
@psangawar7130 6 лет назад
If you charge only for an hour, there is not much money like how Doctors make in an hour...thats why 2 weeks...lol.
@AndhraKitchenFoods
@AndhraKitchenFoods 3 года назад
Can you do one video on sagas design pattern with Spring boot based code example? Thank you and much appreciated.
@christiankocevar6791
@christiankocevar6791 5 лет назад
Very interesting video as it shows consequently how the practive works very good. Is the source code for download somewhere?
@TechPrimers
@TechPrimers 5 лет назад
Yes it's in the GitHub link in the description
@diegoramos27
@diegoramos27 4 года назад
Hi Tech Primers, which component does the load balancing ? Service Registry or API Gateway ? thanks
@TechPrimers
@TechPrimers 4 года назад
It depends. Usually API Gateway does it in our case
@RahulKumar-us4ee
@RahulKumar-us4ee 6 лет назад
Hi, Even after adding the spring-cloud dependency, I'm not getting @enableEurekaClient annotation. Please suggest.
@TechPrimers
@TechPrimers 6 лет назад
can you check if the jars are getting downloaded to your maven repo.may be ur firewall is blocking?
@kevguev1
@kevguev1 6 лет назад
At 29:28, how are you not getting a compilation time error for delete if delete() should only accept 1 Quote?
@sanjaymodha3751
@sanjaymodha3751 5 лет назад
I solved the compilation error by writing the below code. quotes.stream() .forEach(quote -> quotesRepository.delete(quote));
@surendirababujanarthanan761
@surendirababujanarthanan761 7 лет назад
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
@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
@nandhureddythippareddy9201
@nandhureddythippareddy9201 4 года назад
Can please tell me someone difference between jparepository vs curdrepository. When to use jparepository When to use curdrepository Thanks in advance
@ankurshah8341
@ankurshah8341 6 лет назад
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
@TechPrimers 6 лет назад
That's upto us. These are principles and standards. It makes sense when each microservices are managed by a different team.
@ankurshah8341
@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?
@shahidsuri4046
@shahidsuri4046 5 лет назад
Its returning 401 - unauthorised now with 3.13.0 and 3.12.3. Is there a way to fix this?
@bharpoorkt5165
@bharpoorkt5165 6 лет назад
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
@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
@bharpoorkt5165 6 лет назад
Thanks a lot for the response. From now onward I'm your true follower.
Далее
Cabeças erguidas, galera! 🙌 Vamos pegá-la!
00:10
⚡️Uylanishim kerak, sovchilikka borasizmi?...😅
00:50
Microservices using SpringBoot 3.0 | Full Example [NEW]
1:25:38
Spring Security using OAuth2 in Spring Boot | Tech Primers
1:00:37
Design Microservice Architectures the Right Way
48:30
Просмотров 708 тыс.
Securing Microservices with Spring Cloud Security
1:29:52
Microservices using SpringBoot | Full Example
1:21:39
Подробности в закрепе
0:55
Просмотров 1,3 млн
тг: @keyneceee  #корея #корейцы
1:01
Просмотров 1,5 млн