Performance & Capacity

General material on performance and capacity engineering.

6Questions
12Flashcards
11Terms
Terminology

11 terms in this topic

pattern

Admission Queue

Holding excess arrivals in an explicit, communicated queue and admitting them at a rate the system can serve - converting an overload failure into a …

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

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…

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.

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 …

concept

Write Contention

Many concurrent writers competing for the same item of state, which serialises through one lock and cannot be relieved by adding capacity.

Performance & Capacity Engineering

Neighbouring topics

Latency

Distributions rather than averages, and the floors physics imposes.

3 quiz 8 cards 3 terms

Throughput

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

6 quiz 12 cards 4 terms

Concurrency

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

4 quiz 6 cards 3 terms

Queueing Theory

Why latency explodes as utilisation approaches capacity.

4 quiz 7 cards 4 terms

Little's Law

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

4 quiz 12 cards 2 terms

Bottleneck Analysis

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

5 quiz 11 cards 3 terms

Tail Latency

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

4 quiz 7 cards 5 terms

Load Testing

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

5 quiz 12 cards 4 terms

Stress Testing

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

3 quiz 9 cards 3 terms

Soak Testing

Long runs that surface leaks and slow degradation.

4 quiz 12 cards 2 terms

Capacity Modelling

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

6 quiz 12 cards 3 terms

Horizontal vs Vertical Scaling

Scale out for stateless, scale up first for stateful.

4 quiz 8 cards 2 terms

Caching for Performance

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

5 quiz 11 cards 4 terms

Database Performance

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

6 quiz 12 cards 4 terms

Connection Pooling

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

4 quiz 8 cards 3 terms

Network Performance Tuning

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

4 quiz 9 cards 3 terms

Performance Budgets

Targets enforced in CI so regressions fail the build.

4 quiz 10 cards 2 terms

Profiling & Optimisation

Measuring before optimising, and optimising the dominant term.

3 quiz 9 cards 3 terms

Peak Event Readiness

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

6 quiz 13 cards 4 terms