Identifying Scaling Bottlenecks

Amdahl's Law, the NALSD method, and how Google does back-of-envelope on a whiteboard.

Overview

Bottlenecks come from growth patterns

Scaling problems rarely look like 'we need bigger machines.' They look like 'this design works at 10K QPS but breaks at 100K.' The bottleneck is a component whose growth pattern the original design didn't anticipate.

When load grows 10x or 100x, it does not grow evenly through the system. It lands on storage, compute, join state and replication bandwidth, and each of those grows at its own rate. The slowest component caps the whole system.

Key concepts

  • NALSD (Non-Abstract Large System Design)
  • Four-question loop
  • Amdahl's Law
  • Separate components by growth pattern
  • Hot shards

Interview questions

  • How do you approach a scaling-bottleneck question on a whiteboard?
  • How does Amdahl's Law apply to scaling bottlenecks?
  • I've scaled my service horizontally and one shard is overloaded. Why?

Sign up free to read the full topic

More SRE topics

Start free on Cariara · Coding problems · System design studio