Performance & Capacity

General material on performance and capacity engineering.

3Questions
10Flashcards
12Terms
Terminology

12 terms in this topic

pattern

Caching Strategy

The chosen pattern for how a cache is populated, read and invalidated — cache-aside, read-through, write-through or write-behind.

concept

Concurrency

The number of operations in progress at once — distinct from parallelism, which is how many are literally executing simultaneously.

concept

Connection Pool

A fixed set of reusable database connections shared by an application's requests, and one of the most common hidden capacity ceilings.

case-study

Google Maps and Planetary-Scale Spatial Serving

Map serving is fast because almost nothing is computed on request — the world is precomputed into a pyramid of tiles, and space is indexed onto a one…

pattern

Hedged Request

Sending a duplicate of a request to a second replica after a short delay and using whichever response returns first, to cut tail latency.

concept

Horizontal vs Vertical Scaling

Adding more machines versus making one machine bigger — and the fact that vertical is underrated for stateful tiers.

concept

Little's Law

In a stable system, the average number of items in it equals the arrival rate times the average time each spends in it — L = λW.

practice

Load Testing

Driving a system with realistic traffic at a target volume to verify it meets its performance targets before real users do.

metric

Tail Latency

The latency experienced by the slowest small percentage of requests, which is what users and dependent services actually feel.

metric

Throughput

The rate of work a system completes per unit of time — and a quantity that trades against latency rather than tracking it.

case-study

Twitter's Timeline Fan-Out

Twitter precomputes each user's timeline at write time but handles very-high-follower accounts at read time, because neither strategy alone survives …

case-study

WhatsApp's Small-Team Scale

WhatsApp served hundreds of millions of users with a few dozen engineers by matching one technology choice precisely to the workload and refusing to …

Performance & Capacity Engineering

Neighbouring topics

Latency

Distributions rather than averages, and the floors physics imposes.

No content yet

Throughput

Work completed per unit time, and why it trades against latency.

No content yet

Concurrency

Operations in flight, and the limits that are the real capacity ceiling.

No content yet

Queueing Theory

Why latency explodes as utilisation approaches capacity.

No content yet

Little's Law

L = λW, and the pool sizes it computes directly.

No content yet

Bottleneck Analysis

Finding the constraint, and expecting a second one behind it.

No content yet

Tail Latency

p99 behaviour, amplification across fan-out, and hedged requests.

No content yet

Load Testing

Realistic data, realistic mix, and a ramp rather than a step.

No content yet

Stress Testing

Pushing past target to learn what breaks first and how it fails.

No content yet

Soak Testing

Long runs that surface leaks and slow degradation.

No content yet

Capacity Modelling

Arithmetic before load tests, and headroom for failure as well as peak.

No content yet

Horizontal vs Vertical Scaling

Scale out for stateless, scale up first for stateful.

No content yet

Caching for Performance

Layer choice, hit ratio as a first-class metric, and cold-cache recovery.

No content yet

Database Performance

Plans, indexes, contention and the pool in front of the database.

No content yet

Connection Pooling

The most common hidden ceiling, and the metric nobody collects.

No content yet

Network Performance Tuning

Keep-alive, compression, payload size and round-trip elimination.

No content yet

Performance Budgets

Targets enforced in CI so regressions fail the build.

No content yet

Profiling & Optimisation

Measuring before optimising, and optimising the dominant term.

No content yet

Peak Event Readiness

Freeze, pre-scale, shed order, warm caches and rehearse.

No content yet