@@ -7,7 +7,7 @@ Connection Pools
77.. contents:: On this page
88 :local:
99 :backlinks: none
10- :depth: 1
10+ :depth: 2
1111 :class: singlecol
1212
1313.. facet::
@@ -17,8 +17,17 @@ Connection Pools
1717Overview
1818--------
1919
20- This guide shows you how to create and configure a connection pool associated
21- with a ``MongoClient``.
20+ In this guide, you can learn about how {+driver-short+} uses connection pools to manage
21+ connections to a MongoDB deployment and how you can configure connection pool settings
22+ in your application.
23+
24+ A connection pool is a cache of open database connections maintained by {+driver-short+}.
25+ When your application requests a connection to MongoDB, {+driver-short+} seamlessly
26+ gets a connection from the pool, performs operations, and returns the connection
27+ to the pool for reuse.
28+
29+ Connection pools help reduce application latency and the number of times new connections
30+ are created by {+driver-short+}.
2231
2332Create and Use a Connection Pool
2433--------------------------------
@@ -54,7 +63,7 @@ by using either a connection string or ``MongoClientSettings`` object:
5463
5564 MongoClient mongoClient = MongoClients.create("mongodb://<host>:<port>/?maxPoolSize=50")
5665
57- .. tab:: `` MongoClientSettings``
66+ .. tab:: MongoClientSettings
5867 :tabid: MongoClient
5968
6069 .. literalinclude:: /includes/fundamentals/code-snippets/ConnectionPool.java
@@ -63,14 +72,6 @@ by using either a connection string or ``MongoClientSettings`` object:
6372 :language: java
6473 :dedent:
6574
66- For more information on these connection string options, see the
67- :ref:`Connection Options <connection-options>`
68- guide.
69-
70- For more information on configuring you connection pool by using a
71- ``MongoClientSettings`` object see the Connection Pool Settings section
72- of the :ref:`<specify-mongoclient-settings>` guide.
73-
7475Connection Pool Settings
7576~~~~~~~~~~~~~~~~~~~~~~~~
7677
@@ -146,6 +147,14 @@ connection pool:
146147
147148 *Default*: ``120000`` (120 seconds)
148149
150+ For more information on these connection string options, see the
151+ :ref:`Connection Options <connection-options>`
152+ guide.
153+
154+ For more information on configuring you connection pool by using a
155+ ``MongoClientSettings`` object see the Connection Pool Settings section
156+ of the :ref:`<specify-mongoclient-settings>` guide.
157+
149158Additional Information
150159----------------------
151160
0 commit comments