Introduction to MongoDb with .NET part 43: the read and write preference in the .NET driver
June 24, 2016 Leave a comment
Introduction
In the previous post we discussed the ideas of read preference and read concern in MongoDb. Both play a role in multi-server scenarios where we can give hints to MongoDb where we want to read the data from: the primary server, one of the secondaries, the one with the shortest response time etc.
In this post we’ll see how to set the read and write concern options in the MongoDb .NET driver.