All jobs / Backend developer / Architecture

Backend developer interview question · 0–1 years

When does adding a cache help, and when does it not?

The strongest answer

It helps when the same data is read far more often than it changes and a slightly stale answer is acceptable; it does not help write-heavy paths, unique-per-request data, or when staleness is unacceptable

Why it works

Right. Read-heavy, repeated, staleness-tolerant — otherwise it adds complexity for nothing.

What a good answer covers

Answers that fall short

Who gets asked this

More Architecture questions