A principal engineer and one of the original authors of the blog post from DoorDash emailed me with a couple corrections: """ 1. cascading failure: the point here is not that an error or latency experience in an RPC call graph is experienced by all upstream callers. Rather it's that one thing being broken or slow ends up breaking a totally other thing, usually in a different way. As an example, let's say a database gets slow and it's used in a call graph by multiple services. So like A->B->db, C->B->db. By cascading failure we mean that because db is slow, A or B develop a NEW kind of failure, like they run out of memory or threads or something like that. 2. death spiral: scaling out is often a part of it, but the real issue is how to handle an overload condition. If there's no central coordinator, then each node needs to make this determination around overload individually. """ I will try to make a follow-up video covering these. Written version: neetcode.io/newsletter System Design Playlist: kzbin.info/www/bejne/onfSnnSPqsSInZI
@hellowill2 ай бұрын
monoliths can scale (performance wise) too. microservices are more about scaling deployments and teams.
@jonas-froeller2 ай бұрын
I like monoliths. I don‘t like having to type something for every new microservice.
@andreiga76Ай бұрын
It depends on how uniform the processes are, if you also have some high CPU/GPU usage processes it's better to put those on different services (not necessary microservices) so you can use specific nodes for them, otherwise you would have to scale the infrastructure with a lot of high cost CPU/GPU nodes to satisfy both simple operations and compute intensive operations (good luck telling that to managers).
@illu1na16 күн бұрын
nah there is a limit to which monolith can scale. Obvious reasons are database connection limit and load to the master database.
@funkdefied12 ай бұрын
I love this. It’s not just reading and reacting. It’s original content
@robertluong30242 ай бұрын
Primeagen and Theo in shambles
@JegErN0rsk2 ай бұрын
Primeage is good at bringing his own thoughts and knowledge
@imdeadserious61022 ай бұрын
People who read are curators and add their own thoughts. You probably wouldn't read all the articles yourself. And now you get 3 layers of input, yourself, KZbin reader, and the article.
@TylerFields-o8p2 ай бұрын
So tired of Prim and Theo... hardly ever anything good anymore. We get it, you have opinions, but i want to know what the title of your video is about, you know?f
@aveonhx2 ай бұрын
@@robertluong3024 Theo doesn't even put any efforts into making such videos, sits and yap like a maniac.
@caspera31932 ай бұрын
Do not build distributed monoliths. Avoid temporal coupling. And if you can, avoid microservices unless you cannot run from them anymore.
@manojBadam2 ай бұрын
What do you mean by Temporal coupling?
@jonlogrippo83122 ай бұрын
Not a programmer. This is so over my head I thought I was on a sci-fi channel for a sec
@9e7exkbzvwpf7c2 ай бұрын
@@manojBadamto be clear I disagree with them but they mean building sync chains of calls, that your microservices should be handling async events.
@tomasbajarunas6416Ай бұрын
When does microservice architecture stops being a microservice architecture and becomes a distributed monolith one? When does distributed monolith stops being one and becomes modular monolith? I tried to look for good source to read more about, all those three, being compared, I think I understand microservices, I understand modular monolith, but recently heard about distributed monolith, and am wondering now what is that all about, and maybe my understanding of all those three is not as good as I thought it was.
@palmwineguyАй бұрын
@@manojBadam it sounded like some gandolf stuff
@ismbks2 ай бұрын
i'm starting to like this channel's content more than the main one
@ThiagoVieira912 ай бұрын
Same here
@adityaanuragi69162 ай бұрын
Didn't realise he had 2 channels lol
@ivoredafe96602 ай бұрын
There’s a main one?
@MengLinMaker2 ай бұрын
Hard agree. This content is much more practical
@ismbks2 ай бұрын
@@chaos9790 linus tech tips
@arniie52882 ай бұрын
I love these kinds of system design videos, would love to see more coming!
@mjrmjr42 ай бұрын
Hi, I work at DoorDash on this kind of thing. A lot has changed since we wrote that blog post. I'd be happy to talk to you about the way we are thinking about microservices now if that's something you'd be interested in.
@NeetCodeIO2 ай бұрын
Thanks, just emailed you!
@mjrmjr42 ай бұрын
@@NeetCodeIO Alright, let's make this happen.
@didyoustealmyfood8729Ай бұрын
Let them cook
@dukedarkwolfeАй бұрын
get out matt
@kevincrotty8262 ай бұрын
Pedantic nit pick: a negative feedback loop is self damping (it negates the output, then feeds it back in). You have described a positive feedback loop (the input begets even more of the same as output) that has an undesirable outcome.
@Flowy6532 ай бұрын
pedantic or not, it ruined whole video for me
@rednafiАй бұрын
@@Flowy653 quit being so overrly dramatic. Write your own content then.
@pubcollizeАй бұрын
He clearly said "negative feedback-loop", not "negative-feedback loop"
@debkanchan2 ай бұрын
First mistake was making "microservices" that directly depend on one another and hence coupled(which is what microservices shouldn't be).
@qapplor27 күн бұрын
so how can they work together, when there can be no depedency at all?
@purdysanchez2 ай бұрын
Most of the large ecosystems of micro services I've gotten to dive into have ironically been way more expensive and way slower than just building regular APIs with reasonable service boundaries. Then in order to make the microservice driven website appear performant, they spend a ton of money on monolithic caching layers between the client and the microservice APIs.
@HairyCheese2 ай бұрын
I've seen it where we need to separate a production back end away from a client facing the front end. I'd put the micro service against the client facing front end, some risk of stale data, but using event streaming from the back end should scale well. Whaddya think?
@nthmost2 ай бұрын
This is exactly why messaging queuing became popular in the 2010s, to enable the decoupling of these services so as to avoid bottlenecks and timeouts. This isn't always possible (read: appropriate for the use case), but important for software architects to keep in mind as a potential solution.
@Hidacal8 күн бұрын
Its more of a hack than a solution. Its popular because it solves the immediate problem, but it also creates a integration hell and does absolutely nothing to decouple services, only shoves problems under a rug for someone to deal with later. Coupling virtually always exists do to business requirements, not architecture. Changing how it looks doesnt change the fact that it exists.
@alexclark6777Ай бұрын
So it sounds like DoorDash just made a complete hash of their microservice architecture and did every tropey-microservice misstep in the book. I'm not even pro-microservice but their failure isn't exactly a detractor for microservices, it's just another solid example of a company adopting an architecture without properly understanding it.
@hapaise29242 ай бұрын
I love this type for content, u get to learn soo much concepts and overview of systems and understand whats going on. keep this up
@sidasdf2 ай бұрын
Interesting that these are exactly the problems faced in networking. The retry storm issues / prevention techniques are exactly the same as the problems / solutions that one faces with retransmission logic in TCP
@zacki56632 ай бұрын
this was a great video. i can tell you we use to run an interview where we'd ask what failure modes there are at scale and the mitigations, and very few people could answer past "thundering herd" and "exponential backoff"
@hellowill2 ай бұрын
network latency isn't that bad in my experience. The main latency is the serialisation/deserialisation overhead.
@rednafiАй бұрын
What language are you using for serialization and deserialization? In my experience, serde load accounts for less than 10% of network overhead in a real system.
@deallocАй бұрын
Depends on your structures, size of the data and what you are de/serializing and what the format you send through. Binary can be more efficient, whereas string representations (i.e. JSON) can be more flexible. Protobufs are more complicated, but aims to provide both flexibility and efficiency (albeit with additional complexity).
@bananasmileclub55282 ай бұрын
This is pretty good content. I have never really liked system design kind of questions/reflections but this def brought it in a new light for me. Thank you for that.
@gaulcore2 ай бұрын
This is a great presentation. Love this format. Keep it up!
@ngominhsaoS2Ай бұрын
2:30 strictly speaking, this is not microservices architecture, it's more like service-orient architecture.
@nark48372 ай бұрын
regarding the death spiral, wouldn't it also be wise to have some autoscaling rule on if X many deaths within Y minutes, scale up by Z nodes? i feel like this would mitigate this issue also tbh, i feel like if they're using gRPC for every service anyway, they had that coming, use asynchrony where possible, e.g., MQs, rather than just jamming requests down a microservices throat when it doesn't have the capacity to handle them
@someguyO2W2 ай бұрын
What's the point then?
@milliepards96Ай бұрын
Now that I’m actually working as a SWE, I find these videos so much more interesting than Leetcode puzzles.
@tomasbajarunas6416Ай бұрын
To address scaling, instead of scheduled one, or based on load, another option could be to have a combination: scale on predicted load times, but in addition, scale early - your combined server usage is reached 50% - spawn +10% of current number of instances. You have a sudden spike, server loads reached 75%, spawn +2 right away. Various techniques could be implemented with some watchdog observing servers and proactively managing microservice instances. Spawning services shouldn't actually take that long.. well, depends.. on AWS, there is a difference between how ECS are spawned: Fargate vs EC2 instances, and in case ECS are spawned in EC2 instances, then it would take time to get a new EC2 instance, spin it, etc.. Fargate is more expensive, but is faster to get it running.. And here we have it - scheduled scale: use EC2, you need an immediate few instances - spawn Fargate, while spawning instances on EC2 as well, thus Fargate satisfies an initial load fast, and could be killed first, as soon as ECS services on EC2 come alive, and load goes down bellow certain threshold, and we start killing cluster instances - always downsize Fargate ones first. There is additional overhead in tems of how much you need to pay attention to dev-ops side of this architecture, and I think the real issue for DoorDash isn't in not having brainpower, or because of lack pf experience, but rather not willing to be proactive and waiting till it really becomes a necessity to address that technical debt. Future me problem, and taking a least resistance path, even though those scenarios are pretty clear. BTW, good video, we need more of those so that companies be aware and stop pushing microservices, which in most cases is an unnecessary complicated architecture: when you need, you need it, but in most cases you don't. It's not a silver bullet, true horizontal scaling comes at price.. At the moment, microservices are overhyped, and it's a buzzword, and it seems that majority of solutions should implement a monolith modular architecture rather than a microservices one.
@DsBoyanАй бұрын
Can't believe I lived to hear Java and performance used in the same sentence 😆
@mkresАй бұрын
yeah, he clearly didn't mean it, replacing python with java for performance reasons is still not a thing :D
@dontdoit69862 ай бұрын
TBH for years the world was designing micro-services incorrectly and it was an uphill battle to correctly implement them. And then, over the crest, now there are attacks on micro-services. 😅
@johnboy14Ай бұрын
In most cases they’re completely unnecessary. I don’t buy this argument that we must break our architecture so more people can work on it. Linux doesn’t do this and there's millions of lines of code in there. If your code base has proper separation of concerns and nice points of abstraction, then multiple people can work on the same codebase. Ive seen it work. I favour libraries over microservices and I'd still write versions in multiple libraries than turn one codebase into 4 different services.
@highdynamic2 ай бұрын
Couple thoughts: 1. the need for load shedding could usually be a sign that your microservices are not that "micro" after all. If in one service you end up with very different load patterns on certain endpoints, you should consider splitting there to have these patterns scale independently of each other (not necessarily a full different "service" but at least shaved off and put on their own "infrastructure" within that "service") 2. auto-scaling: predictive scaling is amazing if you have consistent historical patterns or can make very good predictions, but you can also go a long way if you just really fine-tune your auto-scaling rules: give more "breathing space" for the system in overall and run it at a lower overall resource utilization, so it won't be so "tight". You don't need to do this necessarily by having to pay for extra unused resources constantly, what I mean is that you can be more generous with the resources given when scaling. Give more and stronger instances to the pool at the first scale trigger kicking in, kind of be more "aggressive at first sight" and scale out AND up at the same time in a pre-emptive fashion (granularity of the settings you have ofc may differ based on what cloud service you are using, not all have super detailed options). Depends of course on each case and business, but many companies are just using built in default settings or very basic approach, and by giving a higher initial "scale response" and really fine-tune the scaling triggers (and cooldowns) to their own product, life would be a lot easier and less issues with spikes. (not saying DoorDash did or did not do anything, just in general I've often seen auto-scaling configurations being underutilized and too vague or universal)
@hentie537112 күн бұрын
failure 3 is just a simple problem and it is also not a problem unique to microservice architecture. CB exist for a reason, its best to fail some requests than to fail the service along with every requests coming into it.
@avrelyy27 күн бұрын
Good explanation of issue with microservices. Thank you
@yaboy71202 ай бұрын
good stuff man you got a new sub! clicked out of curiosity expecting to click off but by the end I was disappointed that it was over lol. You break things down well
@10000rahАй бұрын
I don’t see the microservices is the problem here, it how they splitting the monolith to microservice is the problem
@SamWhitlock2 ай бұрын
If you have the privilege of having your monolith hold you back, you'll definitely have the privilege of hiring top talent to break it up as needed. If you do uServices from the get-go, you're just leaving a wake of hot garbage resume-oriented architecture around that will hurt you in the short run.
@ChrisCebelenskiАй бұрын
"No Silver Bullet" - as valid today with microservices and honestly any other architectural patterns. And it's an easy to get into trouble like latency and poor optimization and circular jerk with monoliths as with microservices. But orgs get into trouble faster with microservices when there is no design or coordination - and the problem is only worse with poor testing regimes and bad tooling - it takes more maturity or process with microservices. And poor developers write poor code no matter the paradigm. With good tooling and deployment automation (GitOps!) and containerization (K8s) and automated testing, all boats are raised by the tide.
@rogers2934Ай бұрын
Surprised they didn't consider choreography for this problem. In our experience, a blend of choreography and orchestration has worked well for most of our use cases. However, it's possible that it just doesn't suit their specific requirements.
@Dave.Wattz1002 ай бұрын
We use microservices at company that I work at and we categorize our services. One category is coordinator service, such service is responsible for making request to all other microservices that are necesarry for a certain task. No other microservice is not allowed to make requests to other microservices. I think it kinda solves this problem ?
@BigBrotha34592 ай бұрын
Like a mediator right?
@BlTemplar2 ай бұрын
Your solution solves some problems but brings new ones. Imagine you have a service A which makes a call to service B. The client accesses the service A directly. But you have a coordinator so you have service C which makes calls to both A and B. Two requests instead of one and the coordinator becomes an additional point of failure in your system. Doordash problem wasn't that microservices call other microservices but that there was not enough protection against outages and no graceful degradation.
@varshard02 ай бұрын
Now the coordinator becomes a single point of failure with added latency. imo, it's better to implement other microservice patterns like circuit breakers, bulkhead and etc. Introducing some events driven in some areas where eventual consistency is allowed is also not a bad idea.
@adambickford87202 ай бұрын
Google 'choreography vs orchestration'; these are known tradeoffs.
@ecereto11 күн бұрын
I agree with the conclusion that microservices only help when the amount of people working on the same code are in the thousands. Even then you probably could make do with better architecture. I'm having flashbacks of the time I tried to right a small poece of software usong microservices and was so stuck on figuring out gRPC and message passing that i never even started working on my idea before i gave up.
@jamiebrs12 ай бұрын
Makes sense they had that spike in 2020 when the pandemic hit and most people were staying home.
@jrdtechnologies2 ай бұрын
Perhaps doordash could have benefited from architecting their databases utilizing database sharding design patterns to minimize down time and to improve availability? Or minimally reduce the severity of the impact by isolating the database maintenance issue to a smaller area perhaps
@Patmorgan235Us2 ай бұрын
They did this, and there's several entries on their engineering blog about their DB engineering
@DaRealCodeBlack2 ай бұрын
They should have gone with erlang
@norunners_2 ай бұрын
I’m surprised health checks were not discussed on the topic of availability. It’s one way for the load balancing to detect unhealthy hosts without relying on an unhealthy host to monitor its own resources. It’s often best to remove an over burdened host from an LB, thus failing fast can lead to faster mitigations and recovery times.
@Viviko2 ай бұрын
What’s with all the waiting? Isn’t it better to just replicate data across services and make use of eventual consistency? Like, instead of waiting for something to complete, just fire an event and have the interested service listen and update its state… eventually?
@adityaanuragi69162 ай бұрын
2:35 as a red-green colour blind person this is hard to read for me Slight suggestion - both healthy and unhealthy service have same pattern of lines, perhaps change just one of them
@NeetCodeIO2 ай бұрын
Good suggestion and sorry for the issue, I should've known that. Will keep it in mind for future videos.
@mohamed443242 ай бұрын
I am really enjoying this content. we need more of this
@mehuljain19912 ай бұрын
Very Interesting! Make more like this.
@JegErN0rsk2 ай бұрын
More if this. Great video!
@mikhail-t2 ай бұрын
Thanks for great video! Am I right that Failure 4 (Metastable failures) is just a consequence of Failure 3 (or similar) where system cannot recover to stable state by itself? Trying to understand why it was separared into dedicated failure type. Btw, during this video I was waiting for any mention of backpressure ...
@SamSedighianАй бұрын
Actually engineering is one of our smaller teams so you are correct. I would guess 10% of our employees are engineering
@CalifornianViking2 ай бұрын
Interesting video. While i am a fan of service oriented architectures, I believe they microservices has become blindly over used. First, there is too much focus on the word micro, there is no service that is small enough. Second, as the video points out, there are major latency issues, and while you can scale out of compute capacity, you cannot scale out of latency. Third. There is spiraling complexity. Complexity is added to deal with complexity instead of solving the root cause. Fourth. There is a lack of understanding of microservices overhead. Every developer should understand the time it takes to read from cache, memory, network, disk, etc and evaluate the effects of microservices. Fifth. Many of the claims of microservices are not accurate. Many developers can work on the same code if it is spilt into libraries with good interfaces. No microservices needed.
@VidyaBhandary2 ай бұрын
Another great explanation !!! Thank you !!!
@montramedia2 ай бұрын
as far as the death spiral why not just lower the traffic/usage threshold ?
@RadoMichАй бұрын
Wow... just the nuts and bolts, instead of usual performance-scalability-cost-saving-observability-mumbo-jumbo you can easily find on other channels.
@fudgeyfoot419Ай бұрын
It seems to me like a majority of these things apply to a monolith service too. How does a death spiral only apply to a microservice architecture and not a monolith service? As a matter of fact, I would argue that a microservice architecture would be MORE helpful in a death spiral situation since it is isolated to one of your many microservices.
@gonzalooviedo54352 ай бұрын
Wonderfui Video. Thanks, very useful!
@VaibhavShewale2 ай бұрын
damn, i think doordash have created their own tool for this problem and not teling about it but incoming months they will share how they created the tool to tackle the issue and it solved the problem and will probably will donate it to open source community or sell that tool
@xerideaАй бұрын
Cascading failure, seems they was hyper aggressive on assuming latency was a failure, and timeout thresholds were set way too low. Auto scaling, why would they take down nodes that were being replaced, and why jump to conclusion to aggressively replace stuff all the time? Just scale up and only replace if there are actual failures, this would significantly mitigate the negative feedback loop. And high latency shouldn't be considered an error.
@ika_6662 ай бұрын
using this video as white noise for my sleep
@johnw.87822 ай бұрын
I appreciate your channel and the information you're trying to get across, but what is your actual real world experience with any of these types of architectures?
@funkdefied12 ай бұрын
A lot of the strategies used to mitigate these orchestration issues seem pretty complex. What’s the best way to implement these strategies at scale? Does every microservice implement their own request IO strategy? Or is there a scalable solution external to the microservices?
@Dezdichado1000Ай бұрын
the real issue was they used python, not the specific architecture.
@shakes268Ай бұрын
In this video it shows they migrated from a python monolith to a java microservice architecture. Are you referring to uber being a python microservice architecture?
@andreiga76Ай бұрын
I'm not sure I understand the "Payment" vs "Image" example, isn't that the trigger to "request" separating the components in different services so they can be scaled and maintained separately? In my view the client (calling service or whatever) should be in charge to say if something is critical or not and how to manage the fails because it knows the business logic needs, not the called service (especially if it is a microservice).
@NurHossainRidoy2 ай бұрын
what books or articles or websites do you follow to learn system design or architechture.
@theprimecoder49812 ай бұрын
I'm currently learning microservice uusinh Java so this video is reqlly helpful
@booznoseАй бұрын
Everything is technical debt. It's simply a choice of where you want to invest that debt.
@NathanielBabalolaАй бұрын
How do you do predictive auto scaling when your app is used in multiple countries in different time zones ?
@ravi72mundeАй бұрын
not sure how Doordash does it but most companies will try to recreate the whole stack in a different region so they pretty much act independently. But something for say within US but different time zones it still is very predictable(eg: Doordash will probably see surge of orders at 12 pm ET and 12 pm PT).
@NathanielBabalolaАй бұрын
@@ravi72munde okay fair enough, I get you. Thanks
@HairyCheese2 ай бұрын
I am really enjoying this channel. I've seen failure 3 often. Fat containers taking too long to start up screw you ... The answer, allow more latency LMAO 😂 The funniest answer I was given when I challenged was....wait for it.... you need to consider warm-up 🎉
@thekingofallblogs2 ай бұрын
Microservices have to be totally independent or they are of no use. If they are not independent, just make that piece a monolith, because you won't gain anything by making them separate. They shouldn't even share databases.
@FreeDomSy-nk9ue2 ай бұрын
Are these videos part of a live stream or something? Where can I watch?
@silversurfer1967Ай бұрын
what software did u use to create the sketch ?
@devCulture12 ай бұрын
what software do you use to draw on the images while recording?
@jaskijАй бұрын
You mixed up types of scaling. Scaling up is getting a beefier server. Scaling out is getting multiples. And frankly, nothing is stopping a monolith from scaling out. That's something I never got with microservices. Typically, the limit is how many requests the hottest database is processing. Sure, it can be wrapped in a microservice with an API, but it's still the limiting factor. Having multiple instances of a given microservice doesn't really give you anything here.
@dumpling_byte2 ай бұрын
Did Uber not use event-based architecture? Meaning most service to service communication is a fire-and-forget event that doesn't require a response.
@DaveOzoalorАй бұрын
Whats the advantage of this?
@spartanghost_172 ай бұрын
Did they really try to implement micro services without circuit brakers ? Lmaooooo😂😂😂😂
@someguyO2W2 ай бұрын
Nor bulkheads 😂😂
@dmc_xenon24112 ай бұрын
Thank you for the content.
@0xACАй бұрын
All this talk about microservices that those are needed to achieve independent deployment doesn't not make any sense to me. If microservices were completely independent of each other, it would mean they are separate applications. But it is not the case, microservices are part of the same application, and they communicate with each other regardless of commination protocol. Events, api calls, and so on need to be unstood by particular microservices. Having an application that is modular and does not use microservices allow separate teams to work on them. There are also ways to deploy them independently. Such architecture is quite common, and this is what plugins are about. What microservices really allow is the ability to scale independently. Properly designed modular monolith allows multiple teams to work on them relatively independently.
@shakes268Ай бұрын
Microservices also allow for implementing something akin to the single responsibility principal at the service level. Code degrades over time. It just does. The more cooks in the kitchen the chaotic a single codebase can become. If it's a monolith that code rot impacts a much larger code base. People try to implement more abstraction but in essence you still end up with a brittle monolith. One change can (n) other things. I see microservices as a way to have a smaller code base, more focused on a specific responsibility that can scale independently of the rest of the system. Modular monoliths make sense in many scenarios, especially if you have medium sized or smaller teams. It's easier to manage but you still run the risk of something potentially breaking an entire application. It's always a tradeoff.
@JumpingMike3332 ай бұрын
I love this content fr
@skanderbegvictor648724 күн бұрын
I had to do these for amazon as well. Damm didn't think all these systems are so similar
@ruijose48032 ай бұрын
I'm not into it, but what happened to your previous channel?
@riser96442 ай бұрын
I think he's blowing this out of proportion, this is a simple problem, that is expected and can be accounted for What a drama queen
@mkresАй бұрын
Surely an interesting topic, but tbh I have doubts how much experience you really have with different architectures to discuss it. All those problems to a degree apply to a monolith and any solutions in between. Mechanisms like circuit braker come out of box in the frameworks like .net core. Distributed tracing is also pretty standard now. Of course there is a lot to think of and adjust with multiple services so things work well together but you do have more tools to deal with it than with a monolith in most cases.
@stephenghool88882 ай бұрын
Good content man. Are you in the Bay Area? Let’s meetup. I’m here until the end of September.
@east4mingАй бұрын
It's all about trade-offs.
@olge13552 ай бұрын
Great explanations
@tuber6942 ай бұрын
Excellent video!
@geoffxander7970Ай бұрын
I love postmortems like this.
@Create-The-ImaginableАй бұрын
The problem is that is was written in Java! 🤣
@erilee8429 күн бұрын
That's a terrible microservices implementation. This is what is known as a distributed monolith 😂
@nosouponheadАй бұрын
It's impossible for microservices to go right.
@MuhammadAkbar-m4g2 ай бұрын
i dont know what this is but if you are making it then i am gonna watch it
@jamesisaacson64142 ай бұрын
I wonder whether some form of request queues (different queues for each priorities) would have helped. What's your take on this Navi?
@NeetCodeIO2 ай бұрын
Possibly, but some of the requests were meant to receive payloads in the response, where as a message queue would just respond with an 'ok' that the request has been queued. Also, if the receiving service is failing a message queue would still be retrying the requests. I guess it would persist them though. Just my thoughts, someone else can chime in.
@punkboi97k2 ай бұрын
@@NeetCodeIO The core microservices at the company I work at just publish and subscribe to our kafka stream using event carried state transfer. So microservice one doesnt need to know anything about microservice 2. But this approach doesnt really solve a "distributed monolith" approach to microservices.
@mjrmjr42 ай бұрын
Message queues certainly help avoid some of those problems, but like all engineering decisions there are tradeoffs.
@CarlosAlvarado04Ай бұрын
Developers restarting services? You mean operation engineers, right?
@dafivers41272 ай бұрын
Make more of these videos!
@Unknown373d2 ай бұрын
greeat, is this a system design error
@jasonwalton3013Ай бұрын
So sad for people my age to watch this type of video. In the 90s we had HA cluster software did all this for you. The only issue with HA cluster software was it needed intelligent people to utilise it properly. It's been proven to be cheaper to get less intelligent people to build things, which means we need less intelligent approaches to complex problems, which in turn give us systems that are inherently unstable. Every decade I see more and more systems adopt newer tooling which is easier to understand. And these same systems have a lifespan of years as opposed to decades. Perhaps, instead of going round and round in circles and replacing the tooling and methodologies, we should look at replacing the people?
@olyneannie47392 ай бұрын
А через траствалет так же можно?
@tyswenson75422 ай бұрын
Python can implement static typing
@Dom-zy1qy2 ай бұрын
Thats actually pretty wild that they were using a Python monolith up til 2020. Sounds like a stressful codebase.
@MaxJM7112 ай бұрын
Fr, I don't mind writing in Python but a single monolith written in it for such a big company? Jfc that sounds awful lol
@antdok95732 ай бұрын
google has a monolithic code base, too
@antdok95732 ай бұрын
the point is using a monolith wouldnt inherently cause problems. moreso the engineers that interpret, such as yourself, and the ones that actually contribute to it do. everyone on the same page and it will be easy to navigate it without even having to delve into microservices
@someguyO2W2 ай бұрын
We have too many people who don't have enough production experience 🤦
@Huntertje132 ай бұрын
If you have a bad monolith then you also have a bad microservice.