Cookie

This site uses tracking cookies used for marketing and statistics. Privacy Policy

  • Home
  • FAQs
  • What are MongoDB change streams?

What are MongoDB change streams?

MongoDB change streams are a real-time event stream of database operations on a collection or database. When any process writes to a watched collection, the change stream emits an event. Node.js receives it and broadcasts via Socket.io to connected clients. This pattern is used when the event source is the database rather than the application layer, for example inventory changes, financial transactions, or order status updates from multiple sources.