SpinTheMic
Pro

Interview practice question

Latency vs freshness trade-off

System Design · Fundamentals · Experienced

A dashboard must load in under 100 ms, but the underlying query takes 5 seconds. Stakeholders also want "real-time" data. How do you solve it?

What a strong answer covers

Your AI report card counts how many of these ideas you cover.

  • Clarify what real-time means (seconds or minutes).
  • Precompute results incrementally.
  • Serve from cache or materialised view.
  • Streaming updates for freshness.
  • Show "last updated" time.
Practise this topic

Start without signing up. Sign in free to get an AI report card on your answer.

See all topics