May we use cookies so Meta, Google, LinkedIn and ChatGPT see your visit and we learn which ads work? PrivacyMay we use cookies to see which pages help, and let Meta, Google, LinkedIn and ChatGPT see your visit, so we know which of our ads work? That way we spend less on ads that do not work. We do not sell your data, and the site works the same if you decline. You can change your answer at any time under Cookie settings at the foot of the page. Privacy policy
Loading...
2 system design questions lean on this idea. Each walks through the full answer.
System Design Masterclass · Microservices Architecture
Free preview: the first 2 parts of this 11-part lesson.
Already bought the course? Sign in to read the whole lesson.
this lesson is part of
System Design Masterclass
Unlock this lesson and the 751 other paid lessons
$35 once, by card or PayPal
See the System Design courseread the rest of this lesson in
System Design Masterclass
Unlock this lesson and the 751 other paid lessons
$35 once, by card or PayPal
See the System Design coursein Microservices Architecture
This lesson is part of the full System Design Masterclass. Unlock it along with 769 other lessons for a one-time payment.
One-time payment by card or PayPal
Get Lifetime AccessOne-time payment: UPI, card or netbanking
Get Lifetime Access18 Foundation lessons are free, no payment needed. Try them now
It is easy and good
“It is really nice and good Please join the course”
Netflix, Amazon, Uber, Twitter, every single one of them started as a . One codebase. One deployment. One database. And for a good while, it worked perfectly.
There's a weird cultural thing in tech right now where "monolith" is almost a dirty word. Developers talk about like they're the only serious architecture, and monoliths are something you should be embarrassed about. That's nonsense.
Shopify handles billions of dollars in transactions every year. It's a monolith. A massive Ruby on Rails monolith. Stack Overflow serves millions of developers daily with a small team and a monolithic .NET application. They're not behind the times, they made a deliberate architectural choice.
Here's the thing nobody tells you in system design tutorials: the monolith is the default for a reason. It's simpler to build, simpler to deploy, simpler to debug, and simpler to reason about. The question isn't "should I use microservices?", it's "has my monolith hit the wall where microservices actually solve a real problem?"
Understanding monolithic architecture deeply is the foundation for everything else in this category. You can't understand why microservices exist if you don't understand what monoliths do well and where they break down.
A monolithic application is a single deployable unit that contains all of your application's functionality. The user interface, the business logic, the data access layer, background jobs, everything lives in one codebase and gets deployed as one artifact.
Think of it like a house. A is a single-family home. The kitchen, bedrooms, bathroom, living room, they're all under one roof, connected by hallways. If you want to renovate the kitchen, you're working inside the same building where everyone sleeps. If the plumbing breaks, it affects the whole house.
Compare that to an apartment complex (), where each unit is independent. But we'll get there later.
In concrete terms, a monolithic app typically looks like this:
| Layer | What It Does | Example |
|---|---|---|
| Presentation | Handles requests, renders UI | Controllers, templates, API routes |
| Business Logic | Core rules and workflows | Order processing, payment validation |
| Data Access | Talks to the database | ORM queries, , repositories |
| Infrastructure | Cross-cutting concerns | Logging, auth, email sending |
All of these layers live in the same process. When you hit the "Place Order" button, the request enters the presentation layer, flows through business logic, hits the database, and returns, all within a single application process. No network calls between services. No message queues. No . Just function calls.