How it works · 8 of 38 Core

Monolith vs microservices: which architecture should you choose?

One big app or many small ones

Monolith vs microservices: A monolith is one program that does every job; microservices split the jobs into small programs that run and ship on their own and talk through APIs: easier to change and scale piece by piece, but every split adds a network call that can be slow or fail.

Loading the animation…

Say it like this A monolith is one program doing every job; microservices split it into small services that change and scale on their own, at the price of network calls between them, so split only where teams or load truly need it.

Under the hood — for builders
What you trade
Each column is the same shop built two ways. Neither wins everywhere; the team and the load decide.
The Prime Video case, exactly
Prime Video's audio/video monitoring service was built from separate serverless steps (AWS Step Functions and Lambda) that passed video frames through S3 storage. Moving it into one program, where the parts pass frames in memory, "reduced our infrastructure cost by over 90%" and raised how far it could scale. One service, not all of Prime Video.
Terms
Service: a program that owns one job and its data. Network call: a request to another machine, which takes time and can fail. Distributed tracing: one id follows a request through every service so you can see where it waited. Modular monolith: one program with strict internal walls, a common middle path.
When to split
Separate teams that keep blocking each other's releases; one part with very different load (search at a sale); a part needing stronger isolation (payments). Splitting just to look modern is the usual mistake.
Watch out
Each service needs its own deploy, monitoring and on-call. Services that must change together aren't really separate. Chains of calls multiply waiting: put a timeout and a fallback on every call.
Measure it
Hops per user request, the slowest 1% of response times end to end, and how often teams wait on each other to ship.
Sources
Prime Video Tech blog, "Scaling up the Prime Video audio/video monitoring service and reducing costs by 90%" (March 2023).

What happens in the monolith vs microservices animation, step by step?

  1. A monolith: one program holds every part of the shop. Its parts call each other instantly, inside the same program.
  2. But it lives and ships as one: a crash in Reviews takes the whole shop down, and a one-line fix means redeploying everything.
  3. Microservices: each part becomes its own small service. Reviews can crash without stopping orders, and only Search gets extra copies at sale time.
  4. The price: every hand-off is now a call over the network, which can be slow or fail, and you must trace where an order got stuck.
  5. Your turn: Prime Video glued one system's services back into one program. What happened to its bill? Tap your guess.
  6. Split well, you may run hundreds of small services in containers. Who places them on servers and restarts the ones that crash? Next: Kubernetes.

What everyday example explains monolith vs microservices?

One big restaurant kitchen where every cook shares the room (monolith) versus a food court of stalls, each with its own kitchen, passing orders by runner (microservices). A fire in one stall leaves the rest open, but a meal from four stalls needs four runners, and someone to find the one who got lost.

Why should a team care about monolith vs microservices?

Split a system only where teams or load truly need to move separately; every split buys independence and pays in network calls, tracing and on-call work, so the right answer for a small team is often one well-organised program.