All jobs / DevOps / SRE / cloud

DevOps / SRE / cloud interview question · 3–5 years

A hot cache key expires and 5,000 requests miss at once. Design against it.

The strongest answer

Coalesce: the first miss takes a lock or a single-flight slot and rebuilds while the others wait or serve the stale value; add early refresh before expiry with jittered TTLs so keys do not expire together; the database sees one read, not thousands

Why it works

Right. Single flight, stale-while-revalidate, jitter.

What a good answer covers

Answers that fall short

Who gets asked this

More DevOps / SRE / cloud questions