Y
Y
yarushin_a2016-09-30 13:17:23
MongoDB
yarushin_a, 2016-09-30 13:17:23

NodeJS + MongoDB Event handler; Is it possible to?

Is it possible to put an event handler on the NodeJS server so that it reacts to the appearance of new data in MongoDB ? Otherwise, you will have to constantly check the database for new data.

Answer the question

In order to leave comments, you need to log in

3 answer(s)
I
Ivan, 2016-09-30
@LiguidCool

And how does the node learn about the data differently if it does not poll the server?

N
napa3um, 2016-09-30
@napa3um

https
://docs.mongodb.com/manual/core/tailable-cursors/tugdualgrall.blogspot.ru/2015/01/how-to-create-pub...

M
miki131, 2016-10-01
@miki131

redis.io/topics/pubsub

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question