简体   繁体   中英

Elasticsearch and MongoDB with nodejs

While implementing elasticsearch with mongodb and nodejs, I am using mongoosastic and elmongo module. These are working very well. But I just want to find out what is the advantage of using mongo-river plugin over node modules. And Is it necessary to use replica set when using river?

Thanks in advance

Use mongo-connector instead. you can learn more about mongo-connector in my blog. here is the link

River doesn't update in realtime, it reads oplogs from mongodb, and this can delay updates. The oplog has a finite capacity as a capped collection and when its full it works like a circular queue, replacing the oldest entries with new entries.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM