SpinTheMic
Pro

Interview practice question

Reacting to changes with MongoDB change streams

Backend Engineering · NoSQL and Redis · Experienced

You want to update a search index whenever documents change in MongoDB. How would you use change streams reliably?

What a strong answer covers

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

  • Watch collection change stream.
  • Store resume token after processing.
  • Resume from token on restart.
  • Idempotent index updates.
  • Oplog window limits resume time.
Practise this topic

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

See all topics