Skip to content

"Microservices scale better than a monolith"

“The monolith won’t scale. Break it into microservices so each part can scale independently.”

A product page used to be served by one monolith making in-process calls. After the split, loading the page means 12 synchronous calls to separate services: profile, catalog, pricing, inventory, recommendations, reviews and so on. Each service is good: 99.9% of calls succeed, and 99% of calls complete within 50 ms. All the services still read from one shared database.

Assumption Value
Services called per page view 12, all needed for the page
Success rate per call 99.9%
Latency per call 99% of calls under 50 ms; the slowest 1% take much longer
Data One database shared by all services

Failures multiply. The page loads only if all 12 calls succeed: 0.999¹² ≈ 98.8%. Each service fails 1 call in 1,000; the page fails about 12 in 1,000, twelve times as often.

Tail latency multiplies. The chance that all 12 calls avoid their slowest 1% is 0.99¹² ≈ 88.6%. So about 1 page view in 9 waits for at least one service’s worst-case latency. What was each service’s rare slow request has become a routine experience for users. At 100 calls per request, it would be nearly 2 in 3.

Scaling stops at the shared part. Each service can now run on more instances, but every instance reads from the same database. The bottleneck that limited the monolith is still there, now with twelve connection pools competing for it, plus network hops and serialization on every call.

One page view, twelve dependencies, one database1. The page needs all 12 calls to succeed, so their failure rates add up. 2. Every service still reads from one database, so scaling the services doesn't scale the system. Page viewneeds all 12 calls Profile99.9% success Catalog, pricingand 8 more services Reviews99.9% success 98.8% of pagesload successfully Shared databasethe real limit 1 page in 9hits a slow call12
One page view, twelve dependencies, one database Each service is reliable on its own; the page depends on all of them at once, and they all depend on the same database.
  1. The page needs all 12 calls to succeed, so their failure rates add up.
  2. Every service still reads from one database, so scaling the services doesn't scale the system.

Change how many services each page calls and how reliable each one is. The chart shows how quickly rare slow calls become common slow pages. The first scenario reproduces the example above.

A request that depends on n services in series inherits all their failures and all their slow moments. Availability multiplies: n components at availability p give roughly pⁿ. Tail latency compounds: the chance of avoiding every component’s slowest 1% is 0.99ⁿ, which falls quickly as n grows.

And scaling is a property of where the work and data are partitioned, not of how many deployable units there are. Splitting code into services lets you scale the parts that are actually different. It doesn’t scale a shared database, a shared queue, or a call chain that touches everything on every request.

  • Parts of the system have genuinely different load profiles: a search service under heavy read load, a checkout service that’s small but critical.
  • Each service owns its data, so scaling it doesn’t contend for a shared database.
  • Requests don’t fan out widely and synchronously: data is aggregated ahead of time, calls run in parallel with timeouts and fallbacks, and non-essential parts (recommendations, reviews) degrade instead of failing the page.
  • The organization has the platform and operational maturity to run many services.

Microservices let you scale the parts that differ, if they own their data and requests don’t depend on many of them at once. Count the synchronous dependencies on your busiest request; each one multiplies failures and tail latency.

Discussion question. Which of the 12 calls does the page actually need to render? What would the page look like if recommendations and reviews were allowed to fail?

Exercise. Make recommendations and reviews optional: if either fails or takes longer than 50 ms, the page renders without it. The other 10 calls are still required. What share of pages now load successfully, and what share wait for a required call’s slowest 1%?

Worked answer

Only the 10 required calls determine success: 0.999¹⁰ ≈ 99.0% (up from 98.8%). The chance that none of the 10 required calls is in its slowest 1% is 0.99¹⁰ ≈ 90.4%, so about 1 page in 10 waits for a slow required call (down from 1 in 9). The two optional calls no longer slow pages down at all, because they’re cut off at 50 ms. Bigger gains come from removing calls from the critical path entirely, for example by assembling product data ahead of time.

  • Jeffrey Dean and Luiz André Barroso describe how fan-out across many servers turns rare slow responses into common ones, and techniques such as hedged requests: The Tail at Scale (opens in a new tab) (Communications of the ACM, 2013).
  • The Prime Video case study shows a team moving one workload from distributed services back to a single process to cut cost and complexity.

Written and edited by Abhinav Taduka, enterprise software architect.