Moving from MONOLITHS to MICROSERVICES 🎂 → 🍰🍰🍰

  Рет қаралды 220,419

Gaurav Sen

Gaurav Sen

Күн бұрын

Пікірлер: 226
@gkcs
@gkcs 3 жыл бұрын
Migrations require extensive testing, refactoring and care. To learn more about system design, head to interviewready.io
@saket37
@saket37 3 жыл бұрын
"You don't shift to microservices when your users scale. You shift to microservices when your team scales." Golden words.
@amanlonare4319
@amanlonare4319 3 жыл бұрын
That’s Conwoy’s Law!!! :)
@piyushgupta7582
@piyushgupta7582 3 жыл бұрын
That's not really 100% true or thumb rule, microservice adaption also depends on increasing user scale. Increasing load on specific service gives invention to move to microservice and design system around adding dedicated DB and other components to that service and horizontally autoscale service.
@deepakpandey9406
@deepakpandey9406 3 жыл бұрын
That's partially true 👍
@mychildschannel6076
@mychildschannel6076 3 жыл бұрын
@@piyushgupta7582 well said
@iamshivarth
@iamshivarth 3 жыл бұрын
This is not complete truth at all.. Team scales when there is a heavy load on the service. Team scaling happens when service become too complex to handle and that is why micro services concept came. Gaurav has given indirect statement.
@nativeKar
@nativeKar 3 жыл бұрын
Just completed migrating from Monolith to Micro Service, now even my dreams are fragmented!
@niketanmishra4410
@niketanmishra4410 3 жыл бұрын
Can u help me out a little too.. im in a similar process
@Nexatek
@Nexatek 3 жыл бұрын
Could you also please make a video on the approach and pain points. Mistakes and corrections etc.. Thanks
@overunityinventor
@overunityinventor 3 жыл бұрын
We have same name. 👍
@engohtimah3707
@engohtimah3707 3 жыл бұрын
Hello, I have a similar requirement, can you help me out?
@Jam.S.
@Jam.S. 2 жыл бұрын
Such a pragmatic approach you show us. Other KZbinrs are just going by the theoretical way of doing things. Thanks a lot Gaurav.
@smithmarta
@smithmarta 3 жыл бұрын
Fantastic summary on moving from a Monolith to Microservices! You are briefly touching upon CD/CI. It would be great to see an intro video on CD/CI and migration to this deployment methodology.
@gkcs
@gkcs 3 жыл бұрын
Thanks, will do!
@sameerarote1129
@sameerarote1129 3 жыл бұрын
impressed by your editing skills :)
@mayurlanjwar8799
@mayurlanjwar8799 3 жыл бұрын
Just wanted to tell you that I have been selected in Oracle, Canada. Your videos really helped me a lot. Thanks for helping me. Love your content and the way you explain. Keep up the good work.
@gkcs
@gkcs 3 жыл бұрын
Thank you and congratulations!
@unnatagarwal1475
@unnatagarwal1475 3 жыл бұрын
Most important part was when not to have a separate service. Great content.
@WittyGeek
@WittyGeek 3 жыл бұрын
Damn Gaurav! This is almost exactly how my company works internally for microservices and almost the same way we think about whether we should make a new service or not. Well done. Peach of a video!!!!
@gmt8336
@gmt8336 3 жыл бұрын
One of the best KZbin Chanel on tech
@menofculturehead9370
@menofculturehead9370 3 жыл бұрын
I am new to system design. Learned a lot. Will make it sure to watch all your videos. Great content. 👌👍🏽
@gkcs
@gkcs 3 жыл бұрын
Welcome aboard, thank you!
@sankalparora9374
@sankalparora9374 Жыл бұрын
12:17 Those animations of the architecture were quite nice!! Thanks for the vid!
@gkcs
@gkcs Жыл бұрын
Thank you 😁
@sidharathroy2929
@sidharathroy2929 3 жыл бұрын
Great work! I recently joined a new role where they keeping on talking about these micro services. This week only I was planning to study about microsevices and your video published at the same time. Thanks :)
@jatinbansal321
@jatinbansal321 3 жыл бұрын
3 years of engineering experience and had worked on couple of services but still it add some value every time I watch your content.
@asheeshkumar1424
@asheeshkumar1424 3 жыл бұрын
Thank you for microservice intro. I am having hard time to get things done in microservice than monolithic arch. Thanks a lot.
@pran322
@pran322 3 жыл бұрын
I am awed, just a great presentation, content and delivery
@svrohith9
@svrohith9 3 жыл бұрын
No one had ever told me this clear.
@benneteapen
@benneteapen 2 жыл бұрын
Finally! An explanation that makes sense. Thanks and good job Gaurav...
@vaibhavmehta36
@vaibhavmehta36 3 жыл бұрын
Came to know about Lucene. Thanks for such amazing content.
@BehindSeas
@BehindSeas 2 жыл бұрын
the best video I could find about the topic.
@gwho
@gwho 2 жыл бұрын
14:25 was baller and very helpful for deciding in a concrete manner.
@rijabratachakraborty8743
@rijabratachakraborty8743 3 жыл бұрын
Monolithic for life! They are big, they are stable but pain strikes when there is an update or bug fix or simple infrastructure patching! :-)
@bossofyoutube
@bossofyoutube 3 жыл бұрын
That's a good demo... I'm just into microservices, having a separate db for each microservice makes sense when we speak about source of truth but the updating a single user info (profile, payment, sessions etc) into each db is bitbtiresome and sometimes may violate ACID when we consider all db transactions... any suggestions on fault tolerance please like maintaining consistency even on a failure
@AlokLaha-te2pd
@AlokLaha-te2pd 7 ай бұрын
Awesome Gaurav. You are really adding value to our life. Keep up the good work.
@gkcs
@gkcs 7 ай бұрын
Thank you!
@sonaligoel4270
@sonaligoel4270 Жыл бұрын
Brilliant !! and Thank you.. You made all the complex stuff easy to understand
@gkcs
@gkcs Жыл бұрын
You're very welcome!
@MultiPIYUSH1992
@MultiPIYUSH1992 3 жыл бұрын
always I watch your videos when am free I always find interesting and refreshing my brain. keep uploading and keep going on.Thanks, Gaurav :)
@大盗江南
@大盗江南 3 жыл бұрын
amazing Gaurav, i will buy ur courses... without any doubt!
@RohanKumar-zm6cx
@RohanKumar-zm6cx 3 жыл бұрын
i literally thought he was a college student but salute to you sir.
@amithecode
@amithecode Жыл бұрын
3:55 smooth bhaiya ji smooth
@gkcs
@gkcs Жыл бұрын
That animation took me 10 minutes to make, so thank you!
@subs_hk
@subs_hk 3 жыл бұрын
explanation is to the point, clear & very practical approach one can find.
@rkumarjay
@rkumarjay 3 жыл бұрын
Explained well in simple terms, crisp and clear. Thanks
@sangeethasubramanyam2804
@sangeethasubramanyam2804 2 жыл бұрын
Hi Kiddo, you are probably half my age.But I watch your videos quite often for learning. Keep doing the good work!!
@kiplimocollins
@kiplimocollins 3 жыл бұрын
Superb video, extremely informative. Also kindly can you do a video on becoming a Software Architect?
@elimpune
@elimpune 2 жыл бұрын
Great video. Give me lots of ideas for my project. Thanks!
@jasusyb2734
@jasusyb2734 2 жыл бұрын
3:30 it is about monorepo vs polyrepo. monorepo can can b microservice as well. that is different
@aat501
@aat501 2 жыл бұрын
you're an incredible teacher
@iamshivarth
@iamshivarth 3 жыл бұрын
Gaurav you have good teaching skills.
@dhruvikdonga4569
@dhruvikdonga4569 3 жыл бұрын
slowly add new features using microservice to the monolith architecture so that old monolith code becomes a part of microservice
@manabsaha5336
@manabsaha5336 3 жыл бұрын
Loved the title 🎂 -> 🍰 🍰 🍰
@akshatrb
@akshatrb 3 жыл бұрын
Why do I, a 3rd yr Btech, like watching GKCS videos on system design or microservices when I should be working on my CS fundamentals instead? :(
@gkcs
@gkcs 3 жыл бұрын
I believe it helps. Some of my CS fundamentals got stronger after reading about the challenges of distributed systems.
@deepakpandey9406
@deepakpandey9406 3 жыл бұрын
You should work hard on improving your basic fundamentals. Learn Generic, Parallel Programming and Datastructure.
@mitejmadan8672
@mitejmadan8672 3 жыл бұрын
I am watching gcks from 1st sem (now in 3rd sem). These videos motivates and encourages me to study more. Sometimes you can easily connect dots between some concepts
@rushivachhani8615
@rushivachhani8615 2 жыл бұрын
If there are two services: 1 - Auth 2 - Profile(just provide profile data) once I get authenticated from service 1 now I want to my profile details from service 2 how come service 2 will know that this guys is already authentic and authorised to use this service every request at first will have to pass through this 1-Auth every-time?
@ashishranjanpatel4756
@ashishranjanpatel4756 2 жыл бұрын
Deployment is easier as well as hard. totally depends on the impact of code change.
@opuchakraborty
@opuchakraborty 2 жыл бұрын
I loved this video, explanation is simple
@2307vineyard
@2307vineyard 3 жыл бұрын
Even if neither of client or team scales, we may need to break the monolith into micro services because of poorly designed/developed application with too many simultaneous feature changes/bug fixes. Greatly appreciate any design/engineering examples of similar use case.
@harisridhar1668
@harisridhar1668 3 жыл бұрын
11:30 Hi Gaurav - can you clarify Kafka and Lucene/ElasticSearch here? Why do we need both a Message Queue like system ( Kafka ) for storing logs, when logs are timestamped themselves generally? Can't we just dump the log output into ElasticSearch/Lucene databases as we go?
@darshandev1754
@darshandev1754 2 жыл бұрын
What are your thoughts on the video about "microservices" from "Continuous Delivery" youtube channel
@kau5hal10
@kau5hal10 3 жыл бұрын
Bruh moment at 8:16. "what happens if my library is not up to date?" 😂😂
@mohinicoder
@mohinicoder 3 жыл бұрын
Nice explanation. Can we say that monolithic may give faster response than Microservice? In case of Microservices we might need to get data from different services through network but in case of monolithic everything is present in the same project. Though we are started using Microservice architecture in our project I was unable to explain that in an interview because of lack of clarity. Thanks for this Video.
@gkcs
@gkcs 3 жыл бұрын
In some cases yes. But a monolith may be sharded by user ranges also. You can now have a look at the "Sharding" video 👍
@prakhar8690
@prakhar8690 3 жыл бұрын
Amazing Gaurav, I really understood some of the things. Really valuable
@sheeraz1022
@sheeraz1022 3 жыл бұрын
Thanks Gaurav for giving us this amazing explanation. I would probably write a blog post and write the whole of the summary which you have mentioned.
@mrrishiraj88
@mrrishiraj88 3 жыл бұрын
Awesome analogy in title!🙏👍
@StillVeryLazy
@StillVeryLazy 8 ай бұрын
When different Microservices create connections with single DB for data fetch/post etc., Is there any challenge since database has to maintain different connections with those requests because maintaining more connections may increase Network load?
@bhushanpoorkar8482
@bhushanpoorkar8482 3 жыл бұрын
What is the Importance of DDD in creating a new MicroService or migrating to it? Can You make a series of videos on how to use DDD?
@gkcs
@gkcs 3 жыл бұрын
Have a look at Uber's blog on this.
@basdfgwe
@basdfgwe 3 жыл бұрын
Some of the benefits you're talking about microservices make it sound like monoliths have code in file (per se) and every service in a micros service interwoven like a saghetti. The reality is that the code changes in monoliths are just as easy. Imho the primary reason of microservices is scale -( I E you scale the service individually based on demand).
@sankalparora9374
@sankalparora9374 Жыл бұрын
Thanks for the detailed video !
@KusanBiswas
@KusanBiswas 3 жыл бұрын
Damn Gaurav! Really impressed with the lucidity of your explanation!
@uhejshalom
@uhejshalom 3 жыл бұрын
Last few seconds are worth it.
@anuragbapat2222
@anuragbapat2222 3 жыл бұрын
You are a great content creator Gaurav! Waiting to see you get your own Udemy or Unacademy course!
@gkcs
@gkcs 3 жыл бұрын
Thanks Anurag! It's here: get.interviewready.io
@Aditya-us5gj
@Aditya-us5gj 3 жыл бұрын
He's beast. When he saw your comment, he went straight to build his own website to help you out 😝 That's how much he loves us !!
@anuragbapat2222
@anuragbapat2222 3 жыл бұрын
I have watched every single video on this channel and improved at my current role significantly! Gaurav is a star ⭐
@prabhakarbhat2477
@prabhakarbhat2477 3 жыл бұрын
It's time to migrate from microservices to monoliths 😎🤘🏼
@ankurpremmasih8207
@ankurpremmasih8207 3 жыл бұрын
What a useful video man. Amazing Gaurav.
@ashwinhariharan310
@ashwinhariharan310 3 жыл бұрын
Very good explanation. Succinct yet clear.
@ashishranjan4597
@ashishranjan4597 2 жыл бұрын
Can you give your input on designing common configuration server for Microservices. I don't have to use Spring Cloud Config server.
@hitanshumehta4313
@hitanshumehta4313 3 жыл бұрын
I think the definition of the monolith you gave is a bit misleading. It is the definition of monorepo. I have seen projects which contain all the microservices in the same repo. Eg. Google uses monorepo, but obviously, not all of its services are released together. So, according to me, monoliths are the applications that have to be deployed as a single unit. Please correct me if I'm wrong.
@gkcs
@gkcs 3 жыл бұрын
I mentioned monoliths need to be deployed as a single unit. Not sure where you found the video misleading, could you give me some more details?
@hitanshumehta4313
@hitanshumehta4313 3 жыл бұрын
@@gkcs Sorry for being unclear and if I missed something. I'm just talking about the definition you gave at 00:23, not the complete video. Apart from that, Big fan of your videos. Keep them coming 🔥
@riddhi123456
@riddhi123456 3 жыл бұрын
What should be the testing strategy for microservices architecture?
@ivailotenevv
@ivailotenevv 3 жыл бұрын
Awesome Gaurav, keep uploading :)
@nizarkadri3109
@nizarkadri3109 2 жыл бұрын
I just completed my master's degree and got an interview for senior full stack developer.... Thanks a lot gaurav, thiis video really helped me! What do you guys think, is this a good decision to start my career directly as senior full stack developer.
@gkcs
@gkcs 2 жыл бұрын
Congratulations Nizar! All the best!
@rahulbera454
@rahulbera454 3 жыл бұрын
Isn't Message queue would be a single point of failure ? If two services rely on a message queue for communication.
@gkcs
@gkcs 3 жыл бұрын
@Dr3w 97 That's right. I made a video on this earlier.
@himanshubhatt9912
@himanshubhatt9912 3 жыл бұрын
There also you will have multiple brokers like kafka you can go through it how it works so it won't be a single point of failure
@rahulbera454
@rahulbera454 3 жыл бұрын
@Dr3w 97 Thanks Got your point !!
@RFsalman
@RFsalman 11 ай бұрын
hi, is this 7:50 what commonly referred to as anti-corruption layer ?
@lihewang6532
@lihewang6532 Жыл бұрын
my org has 200 people working for a single service, four to six teams need to release together every time, even though release frequency is already twice a week. It is really a nightmare.
@deepyad76
@deepyad76 3 жыл бұрын
A well explained concept.... thanks
@avishjain7375
@avishjain7375 29 күн бұрын
Load Balancers are connect with CDN? or It is DNS will take your request to CDN and then comes the LoadBalancer in cases of cache miss?
@avishjain7375
@avishjain7375 29 күн бұрын
kzbin.info/www/bejne/qJTOl4FtraucnZI
@VamsiM
@VamsiM 3 жыл бұрын
One word, Excellent.
@the-gray-haired-developer
@the-gray-haired-developer 3 жыл бұрын
Hi Gaurav, instead of physically separating the code base, is there any way we can keep all the code in single repo and still achieve microservices benefits ?? Or is it very must to have separate code repo for different micro service.
@gkcs
@gkcs 3 жыл бұрын
Have a look at monorep
@gnanasekaran5533
@gnanasekaran5533 3 жыл бұрын
I often watch videos at 1.5x speed. This video at normal was match to that.
@gkcs
@gkcs 3 жыл бұрын
I'll take that as a compliment 😛
@wizardkashy3133
@wizardkashy3133 3 жыл бұрын
I don't understand the separation advantage of microservices. wouldn't there still be a separation in the monoliths themselves? Also, would there be any security concerns for microservices? How do they communicate with each other?
@gkcs
@gkcs 3 жыл бұрын
Have a look at this: kzbin.info/www/bejne/p4rLg6l-btl9gdk
@muratkhan1453
@muratkhan1453 3 жыл бұрын
You can ofcourse make separation in your monolith application using modularity and this is actually a great and a MUST approach to break down your monolith app before movi it to microservices but since you deploy your monolith app as one big applocation, even it is modular, you wont get benefit of microservices. And yes there is more security issues involved with microservices. since instead of 1 application, tou need to protect each of MS and secure entire communication between...
@SatyaUpendra
@SatyaUpendra 3 жыл бұрын
Can you please do a Video on Service Oriented Architecture vs Microservices?
@adityajoshi2806
@adityajoshi2806 Жыл бұрын
Hi Gaurav, do you have kind of sample dataset regarding the decomposition of monolithic systems into microservices
@iamsantoshmishra
@iamsantoshmishra 3 жыл бұрын
Good explanation 👍
@harshal.rathore
@harshal.rathore 2 жыл бұрын
So what I underestands from this is that Microservices and Monoliths are not an actuall thing they are methodology or terminology. Monoliths is one big code base with in a single file with all the features packed in it and microservices is a term for breaking that code base into small small code bases according to their features and then they are called microservices. Am I correct?
@salamatburzhuev434
@salamatburzhuev434 2 жыл бұрын
What is the size of the team which is considered to be "small' ?
@yashwanthd1998
@yashwanthd1998 2 жыл бұрын
How to handle failur of a single service and data consistency
@vickyanand6483
@vickyanand6483 3 жыл бұрын
Hi , I have one question. How to deal if there is change in output from downstream services in microservice architecture. And upstream has to be notified of the change. Note: Downstream service is up and running .
@charan775
@charan775 3 жыл бұрын
the senpai is back!
@sonugupta147
@sonugupta147 Жыл бұрын
Hello sir, I want to design a webpage which would use an ml model to process the requests like a home pricing model, image classification model. So which architecture should I use to design my system ? would the microservice architecture be good or the monolith ?
@saikun0293
@saikun0293 2 жыл бұрын
Awesome explanation!
@JbtheBoss1892
@JbtheBoss1892 3 жыл бұрын
Good content Gaurav!!
@NoamSalomonski
@NoamSalomonski Ай бұрын
separation of concerns is true for all software in all granularity levels. Weather monolith or not. The argument that microservices implement it and monolith doesn't is plain wrong.
@doaamm1493
@doaamm1493 2 жыл бұрын
thanks for your useful videos
@gauravkumar796
@gauravkumar796 3 жыл бұрын
Won't it come with an overhead of database replicas specially analytics and reporting database .. we need to maintain copies and make sure they are in sync ?
@gkcs
@gkcs 3 жыл бұрын
Yes, the maintenance cost could go up. The data cost will be similar though (you can use the same database node to create different databases). The replica and sync cost would be true even for a monolith.
@gauravkumar796
@gauravkumar796 3 жыл бұрын
@@gkcs thank you for your response :)
@MuhammadFauzi999
@MuhammadFauzi999 3 жыл бұрын
Thanks Gaurav, do we need api gateway before call auth service or another services? And also, do we need build the api gateway of mobile app and web app separatly?
@prasanjitmitra
@prasanjitmitra 3 жыл бұрын
Is Having a independent db for service is preferable or maintain common db for all service , or making a service stateless? Will the data ingestion from external source gets difficult if the db is scattered!!
@gkcs
@gkcs 3 жыл бұрын
The service databases being independent is a good idea (could be served on the same node, but are independent databases).
@pankajjagtapp
@pankajjagtapp Жыл бұрын
Very helpful.. Thanks!
@priyankasmenon1146
@priyankasmenon1146 3 жыл бұрын
sahi hey, kuch sikha aaj ,Thanks
@teolcd
@teolcd 3 жыл бұрын
Not quite correct for for first sentence, monolith can be organized into multiple module/plugin that can be anywhere. And same for microservices, it can be organized into one repo, less work on publishing shared lib, schema etc.
@stackdeveloper6614
@stackdeveloper6614 3 жыл бұрын
Awesome! How can we integrate different frontend micro services into a single app?
@techiegroups5151
@techiegroups5151 3 жыл бұрын
Where can I find the course details, and in website it shows three different modules. Is it all separate cost
@indiansoftwareengineer4899
@indiansoftwareengineer4899 3 жыл бұрын
Loved your all videos.
@pranavp8023
@pranavp8023 2 жыл бұрын
It’s very difficult to go back to monolith architecture after working on micro services.
@GautamKumarSamal
@GautamKumarSamal 3 жыл бұрын
How to deal with a breaking changes with micro services f.e. a change in the contract?
@gkcs
@gkcs 3 жыл бұрын
I've discussed this part in more detail on get.interviewready.io
@saisravan7356
@saisravan7356 3 жыл бұрын
Isn't it we need to maintain copy of data that we push in queue parallelly in db too. so if any failure of queue u can still have the backup data to push into queue so no data is lost?is it a right approach?
@gkcs
@gkcs 3 жыл бұрын
Do you mean retries in queues? Yes they are used.
Microservices with Databases can be challenging...
20:52
Software Developer Diaries
Рет қаралды 99 М.
Microservices explained - the What, Why and How?
18:30
TechWorld with Nana
Рет қаралды 890 М.
Lazy days…
00:24
Anwar Jibawi
Рет қаралды 7 МЛН
How I built an AI Teacher with Vector Databases and ChatGPT
13:43
API GATEWAY and Microservices Architecture | How API Gateway act as a Single Entry Point?
23:18
Concept && Coding - by Shrayansh
Рет қаралды 38 М.
196. Should I Build a Monolith or Microservices?
15:49
IAmTimCorey
Рет қаралды 10 М.
Getting Started with Modular Monoliths in .NET
12:37
Milan Jovanović
Рет қаралды 26 М.
WHATSAPP System Design: Chat Messaging Systems for Interviews
25:15
Gaurav Sen
Рет қаралды 1,9 МЛН
What is an API and how do you design it? 🗒️✅
15:26
Gaurav Sen
Рет қаралды 745 М.
Service Mesh and its Architecture | How Microservices Communicate?
23:54
Concept && Coding - by Shrayansh
Рет қаралды 14 М.
Lazy days…
00:24
Anwar Jibawi
Рет қаралды 7 МЛН