课程: Advanced MongoDB: Efficient and Secure Data Management
今天就学习课程吧!
今天就开通帐号,24,100 门业界名师课程任您挑!
Change streams - MongoDB教程
课程: Advanced MongoDB: Efficient and Secure Data Management
Change streams
- [Instructor] Change streams allow you or your application to listen to changes that occur in your MongoDB database. This functionality allows you to build applications that can immediately respond to real time data changes. Let me give you an example use case, recently I logged into an account for an online shop. When I went to order something the shop had an old address on file and when I went to change it the website said this change will be processed within 24 hours which meant I had to wait a whole day to place my order, not the end of the world but also not great user experience. What I think happened is the shop I was trying to place an order with had multiple systems that it relied on. When I changed my address, the data was changed in only one of those systems. The other systems were probably waiting for some sort of batch processing that would synchronize these changes across the other systems, propagating data…