Skip to main content
InterviewHubPRO
Section Overview
Q25

Question 25 of 50

Part 3: Advanced Internals, Scale & Production Patterns (Senior / Lead)

50%
MongoDB & NoSQL (50 Qs)•Part 3: Advanced Internals, Scale & Production Patterns (Senior / Lead)

What are Change Streams and how do they enable real-time reactive microservices?

senior LevelMicroservices

In Simple Words: Change Streams allow applications to subscribe to real-time data modifications without polling:

  • Built directly on top of the oplog.
  • Notifies applications instantly when documents are inserted, updated, replaced, or deleted.
  • Resumable via Resume Tokens (_id of the change event) if the client connection drops.
  • Used for cache invalidation, search engine sync (syncing to Elasticsearch), and triggering serverless functions.