SpinTheMic
Pro

Interview practice question

Cache and database disagree

System Design · Databases · Experienced

Under load, your cache sometimes holds an older value than the database permanently, even with invalidation on updates. How could this happen?

What a strong answer covers

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

  • Race between read-fill and invalidation.
  • Stale read populates cache after delete.
  • Use versioned writes or leases.
  • Short TTL as safety net.
  • Delayed double delete.
Practise this topic

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

See all topics