Beginning in 2015, all our official drivers strive to implement the same algorithm to discover and stay connected to your standalone server, replica set, or sharded cluster.

To learn about the Server Discovery And Monitoring Spec: