In a regular replica set, we can implement Java code connect to the replica set in case on server is down, the client still works without modifying code. In a sharding cluster, the cluster can only connect to one routing server, if I have three routing servers in the sharding cluster, how can I have the same client as in the replica set case? I don't want to modify the client too much.
Thanks a lot.
Got the answer from mongo doc, it is the same as replica set. http://api.mongodb.org/java/2.10.0/com/mongodb/MongoClient.html
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.