ReactiveMongo automatically writing to Primary node

13 views
Skip to first unread message

Sid Feiner

unread,
Feb 21, 2018, 11:31:15 AM2/21/18
to ReactiveMongo - http://reactivemongo.org
Hey,

In my application, I connect only to a replica node but I've noticed that when i use insert/update commands, they work as well. Does ReactiveMongo automatically finds the primary node and sends the inserts/updates to that node?
I'm used to working with Mongo from python scripts and with PyMongo, it doesn't do that by default and I get an error saying that I can't insert/update on a secondary node.

 

Cédric Chantepie

unread,
Feb 21, 2018, 1:00:08 PM2/21/18
to ReactiveMongo - http://reactivemongo.org
As any MongoDB driver, it uses ReadPreference and WriteConcern: http://reactivemongo.org/releases/0.1x/documentation/tutorial/connect-database.html
Reply all
Reply to author
Forward
0 new messages