All jobs / Backend developer / Distributed Systems

Backend developer interview question · 3–5 years

The interviewer asks: “The replica is behind. Do you serve stale reads or error?” Strongest answer?

The strongest answer

It depends on the use case: a feed can be stale; a balance after a debit cannot. I name the consistency the product needs (read-your-writes, bounded staleness) and pick primary vs replica per query, not as a global religion.

Why it works

Exactly. This is a per-operation choice. Stronger consistency costs latency and availability during partitions; weaker consistency needs a UX that can live with it.

What a good answer covers

Answers that fall short

Who gets asked this

More Distributed Systems questions