Skip to main content
Architecturechapter 1 of 5 · 4 lessons

Monolith vs Microservices

One deployable unit vs many small independent services, each with real trade-offs.

Forty engineers push to one repository. The deploy queue is nine changes deep, and a flaky test in the analytics code has been blocking everybody's release since Tuesday.

Somebody says the word microservices and half the room nods.

Notice what actually hurts there. Nobody said the site is slow, or that they cannot handle the traffic. They said they cannot ship. That is a problem about people, not about machines, which is why this argument produces more bad decisions than anything else here: it gets treated as a technology choice when it is an organisational one.

The honest question is not which architecture is better. It is what is hurting right now, and which shape makes that specific pain cheaper.

Lessons

4 in this chapter
  1. What a Monolith Really IsOne codebase, one build, one deploy. That is the whole definition, and it is not a slur.2 min
  2. What Microservices Buy and What They CostIndependent deploys and independent scaling, paid for with the full distributed systems tax.2 min
  3. The Distributed Monolith TrapNetwork hops of microservices, coupling of a monolith. The worst square on the board.2 min
  4. How to Actually MigrateStrangle the monolith one seam at a time. Big-bang rewrites die in year two.3 min