Skip to content
All concepts

Concept

TTL jitter

TTL jitter is a small random amount added to each cache entry's time-to-live. Entries written in the same burst then expire at different moments instead of all together. It turns one wall of cache misses into a steady trickle the database can absorb.

Watch the keys expire at scattered times while database load stays low. A live step from the lesson TTL jitter (Redis / caching). Timings and counts are illustrative.

Where you'll see it

Sources: AWS Builders' Library: Caching challenges and strategies ↗ · Scaling Memcache at Facebook (NSDI '13) ↗ · Redis docs: EXPIRE ↗ · Report a problem

The definition is in our own words; the sources are those of the lesson TTL jitter.