✅ Sign-up for a free cluster at: https://mdb.link/free-9LA7_CSyZb8
✅ Get help on our Community Forums: https://mdb.link/community-9LA7_CSyZb8
When you need to react immediately to changes in your MongoDB database, change streams and triggers can help you make that happen. In part four of this quick start tutorial for beginners, Lauren Schaefer explains three ways to monitor change streams in a Node.js script: using EventEmitter's on(), using ChangeStream's hasNext(), and using Node's Stream API. She also explains how to create triggers in MongoDB Atlas.
Chapters:
00:00 Intro
00:57 Change Streams
03:52 Monitoring Change Streams Using EventEmitter's on()
12:21 Monitoring Change Streams Using ChangStream's hasNext()
16:37 Monitoring Change Streams Using the Stream API
19:57 Resuming Change Streams
21:43 Triggers
27:16 Wrapping Up
Links Lauren mentions in the video:
Lauren's blog post: Change Streams & Triggers with Node.js Tutorial https://developer.mongodb.com/quickst...
Lauren's GitHub repo with the code from this video https://github.com/mongodb-developer/...
Node.js & MongoDB Starter Template File https://github.com/mongodb-developer/...
Other videos in this tutorial series:
Part 1: • MongoDB & Node.js: Connecting & CRUD ...
Part 2: • MongoDB & Node.js: Aggregation & Data...
Part 3: • MongoDB & Node.js: Create an ACID Tra...
Connect with Lauren:
Twitter: / lauren_schaefer
TikTok: / lauren_schaefer
Linkedin: / laurenjan...
MongoDB Community: https://developer.mongodb.com/communi...
Subscribe to MongoDB ►►► https://bit.ly/3bpg1Z1
Connect with MongoDB:
Website: https://bit.ly/2LjtNBZ
Twitter: https://bit.ly/3fH87gR
Facebook: https://bit.ly/3fEaIsd
Linkedin: https://bit.ly/2SY9w90
Instagram: https://bit.ly/3bn9bDv
Community Forums: https://bit.ly/2I8VCi5
TikTok: https://bit.ly/3fHoqdJ
Watch video MongoDB & Node.js: Change Streams & Triggers (Part 4 of 4) online without registration, duration hours minute second in high quality. This video was added by user MongoDB 01 January 1970, don't forget to share it with your friends and acquaintances, it has been viewed on our site 36,227 once and liked it 661 people.