June 2014
Intermediate to advanced
696 pages
38h 52m
English
The MongoClient connection utilizes a Server object in the background. This object defines how the MongoDB driver should connect to the server. The Server object contains information such as the host, port, pool size, and socket timeout values used when creating the connection.
You do not need to interact directly with the Server object, but you need to specify the options used to create it for the client connection. Table 13.2 lists the most important options you can set when defining the Server object:
Table 13.2 Options used to create the Server object for a MongoClient connection
Read now
Unlock full access