MongoDB & Node.js: Change Streams & Triggers (Part 4 of 4)

preview_player
Показать описание


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:

Other videos in this tutorial series:

Connect with Lauren:

Connect with MongoDB:
Рекомендации по теме
Комментарии
Автор

Great ! Discussed the whole thing in a very very easy way, brilliant job !

rpiisenh
Автор

I thought maybe this presenter had a whole bunch of videos in the MongoDB YouTube channel but there are actually very few. It's a shame, since all the other content creators are ... pretty terrible. But this gal knows what's up. I hope you're still around and will make more videos for MongoDB in the future. Thanks for all your hard work.

rogadev
Автор

Can we please discuss the scenario where we don't limit the changeStream with time? Basically live data is required because you ALWAYS want to be listening. Not just for 15 seconds :)
Because I'm having a hard time dealing with changeStreams when coupling it with REACT front end with SSE (server side emitter) EventSource(point-to-server endpoint)

_from_wish
Автор

Does mongodb allow query based changeStream? Like in a collection if I keep inserting score of different players, onCollection change get the sum of score for a particular player ?

rpiisenh
Автор

Building a react app with MongoDB new features like transactions would be great. It’s difficult to understand MongoDB concepts without a front end.

jaggyjut
Автор

How about detecting who changes the data for example is an audit trail logs. scenario: user (admin) 1 updated user 2 (app user) bank account details?

Malcolm-i
Автор

Is it good to leave the client open indefinitely after subscribing to change events. ?
If the client is closed the subscription is closed and no other changes will be reported...

krishnaar
Автор

Is there anyway i can restart the changestream after you have stopped it?

vortextraininggroup
Автор

How to use streams, wenn you have multiple containers of your node app?

FyyMyy