SpinTheMic
Pro

Interview practice question

Stale reads from MongoDB secondaries

Backend Engineering · NoSQL and Redis · Intermediate

Your app reads from MongoDB secondaries to spread load, and users sometimes see outdated data right after saving. How do you fix it?

What a strong answer covers

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

  • Secondaries replicate asynchronously.
  • Read from primary for read-after-write.
  • Causal consistency sessions.
  • Write concern majority.
  • Use secondaries for tolerant reads only.
Practise this topic

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

See all topics