Index

Free, with Google

Keep going, free.

A free account opens lessons 2 and 3 of every track, 33 more lessons, and keeps your progress and review cards on every device.

Start free with Google

A chalk plan

Open everything on chalk.

Every lesson, board, video, lab and paper, and the full review decks. Yearly is $39/year.

See plansStart free instead

Module 05 · System Design · Deeper than the interview · about 18 min to read

Watch: The monolith that never died: what Slack kept in five million lines
▶ VideoPlay it as a journeyTutor comes with a plan

One building or many: monolith, microservices and the strangler

The Monolith That Never Died
The Monolith That Never Died · Open board

One large program that kept serving a fast-growing company, with the few parts that really needed to leave drawn as separate boxes around it. This lesson is about deciding which parts leave, and how.

Before you start. You need The Contract at the Counter (API design): two programs meet across a written list of what you may ask, and adding a new line to that list breaks nobody. You need Thirty stalls on one order (availability, the nines, and the tail at scale): when a request needs many parts, the chance that all of them work is each chance multiplied together. When the neighbour is slow: timeouts, retries, breakers gave you the timeout, the retry limit and the circuit breaker, which return in the second read. Changing the engine in flight (live schema and data migrations) showed how to move live data in small safe steps, and the migration here uses the same habit.

Lesson 33 of 115 in System Design

The rest of this lesson is part of a plan.

A plan opens every lesson, board, video, lab and paper on chalk. Yearly is $39/year.

See plansAlready a member? Sign in

Or start free: a free account opens lessons 2 and 3 of every track.

In this lesson

  • The problem: 140 services and three engineers keeping them alive
  • Monolith: one program, one deployment
  • Microservices: one program per job, and what the split costs
  • Modular monolith: strict boundaries, still one deployment
  • When to split: three reasons that pay
  • Strangler fig migration: replace it piece by piece

Terms it explains: monolith, microservice, modular monolith, API gateway, Common mistakes, Service discovery, service mesh.

Review System Design