From 204cddc952494300f474ccedfe98a10813a44543 Mon Sep 17 00:00:00 2001 From: Kailie Yuan Date: Wed, 27 Sep 2023 14:58:25 -0700 Subject: [PATCH 1/4] revamped connection page --- source/fundamentals/connection/connect.txt | 37 ++++++++++++------ .../includes/figures/connection_uri_parts.png | Bin 6062 -> 0 bytes .../dns_seedlist_connection_string_parts.png | Bin 0 -> 9609 bytes 3 files changed, 24 insertions(+), 13 deletions(-) delete mode 100644 source/includes/figures/connection_uri_parts.png create mode 100644 source/includes/figures/dns_seedlist_connection_string_parts.png diff --git a/source/fundamentals/connection/connect.txt b/source/fundamentals/connection/connect.txt index 8c93ec2f6..77193b6d0 100644 --- a/source/fundamentals/connection/connect.txt +++ b/source/fundamentals/connection/connect.txt @@ -4,8 +4,9 @@ Connect to MongoDB ================== -In this guide, you can learn how to connect to a MongoDB instance or -replica set using the Java driver. +This guide shows you how to connect to a +`MongoDB Atlas deployment `__, +a MongoDB instance, or a replica set using the {+driver-short+}. You can view sample code to :ref:`connect to an Atlas cluster ` or continue reading to learn more about the ``MongoClient`` class and @@ -50,13 +51,18 @@ connect to a MongoDB deployment. It instructs the driver on how it should connect to MongoDB and how it should behave while connected. The following figure explains each part of a sample connection URI: -.. figure:: /includes/figures/connection_uri_parts.png - :alt: Connection String parts figure +.. figure:: /includes/figures/dns_seedlist_connection_string_parts.png + :alt: Each part of the connection string -This figure uses the :manual:`Standard Connection String Format `, -``mongodb`` for the protocol. You can also use the :manual:`DNS Seed List Connection Format `, -``mongodb+srv``, if you want more flexibility of deployment and the ability -to change the servers in rotation without reconfiguring clients. +In this example, we connect to an Atlas MongoDB deployment that has a +DNS SRV record. For more details, see the :manual:`DNS Seed List +Connection Format +` +documentation. This format offers flexibility in deployment and the +ability to change the servers in rotation without reconfiguring clients. + +This format offers flexibility in deployment and the ability to change +the servers in rotation without reconfiguring clients. .. note:: @@ -65,11 +71,16 @@ to change the servers in rotation without reconfiguring clients. and select Java from the language dropdown to retrieve your connection string. -The next part of the connection URI contains your credentials if you are -using a password-based authentication mechanism. Replace the value of ``user`` -with your username and ``pass`` with your password. If your -authentication mechanism does not require credentials, omit this part of -the connection URI. +If you are connecting to an instance or replica set that does not have a +DNS SRV address, you must use ``mongodb`` for the protocol, which specifies +the :manual:`Standard Connection String Format +`. + +After the protocol, the next part of the connection string contains +credentials if you are using a password-based authentication mechanism. +Replace the value of ``user`` with your username and ``pass`` with your +password. If your authentication mechanism does not require credentials, +omit this part of the connection URI. The next part of the connection URI specifies the hostname or IP address, followed by the port of your MongoDB instance. In the example, diff --git a/source/includes/figures/connection_uri_parts.png b/source/includes/figures/connection_uri_parts.png deleted file mode 100644 index 0d10bcfc4ee2c15ca2c6727fa3b9adf1e0df3e56..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 6062 zcma)gcQ71Y^e>ShqC~W1u@NN^ZC6=>L@iXg~Aj{rBFRd2?p&xt}xVe(q=P+%sq9#OP?L&`_~ak&uwksHrOHk&uv~ zZuZf)$!=E5?6+(;?)Ga1O$8E?+Jt)-Hg|3?sh6ILB1zQ<`_>Hr=x7)yul-&lB_+MS zzDDPu6=8~#^OLWgUN^Njy}kzdk&v*6t0^fMyq(`gj~cJ`G50cX)fGx}xxRAUM5=}3 zG#g5OC|NHgj~^nth=-TwUhT`Tm~PqTJX>r-{~38FHYu-Kw%?j_UQZ3XepNl%v3xDf zcDdXhmIGc;$+*tJpK0%&zoTLYbN+wY6$?c8lLA%{T4c2pH}at!h`=t;ZxutNQ-g_2 z4V>|5Ah@GnYb)-G1m+Sph5}CJptUhR|L6gupLd7Xt;~zXh00a zey=JmNw*j=V77M5Qhpy)Ol4{a|M|6l^wao72Kqpa{`PP9rSx^ITYceHAnr;QAA(+n z8D5YAMyV~k61t>}xq50~YYpa{tC{c2%~#Ngv!2$nDU$v^4?E9)_F;-%KXY*(Wke9j^?QrDtxGZs#p^dX7s`dO zVAM`+rgHEdL3P)<7i<*ITl%$H55B^Gus;3);9U!J=eh7lwWrJRa9zs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7!O7i hjPL{yhfks;0aUQY*Ty`A+|1ZX)ReW9suZom{s(0$xbXl0 diff --git a/source/includes/figures/dns_seedlist_connection_string_parts.png b/source/includes/figures/dns_seedlist_connection_string_parts.png new file mode 100644 index 0000000000000000000000000000000000000000..d57165511438d2730a511d8d24f44a7bafda3dab GIT binary patch literal 9609 zcmd6NXEYp6xVI$#kcQ+h2o}*xl;~Cs!Rn%S646#!tg_J)BKop=7gmcX(XAT2tP;Hw z?6S>Jmw^PxqYn%X{8)?z!)Ln3*%}`OPzPo_U_%neca-Aks&)kBEqfNL7>-bcl%l zf#25G9^AXlznaU$+!ilCD(h$v5&5ta5q$Db2A0TQ&AJ21f-;$w^UCQF8HcjgF4i)YN?W@Bm1X4aW`)jF2O zWe$Fl@4WmO;5mF*HbXdws&nqS7_D`E18=YknA-OC?w+e%^#_}ZzXUA^wK^U*N&UaW zShY+<%EhsE1O(dO(D~^;j2iXex$zh1DnB6XWU%&ORziT#TX#yy((rbmWr_46Za(G5)o{V70_uvjEe6RvJjj!6w^Z^pUjW-9 zn>x%P)yK2l@`3987KuudevbT{R_e`Lu5Kp3HM16`<$iWTpRK&QvD6F{Y`w3zj^;5X zb!iQV>%0gWGqH{oFJq6~^fi?x+)Br02O9jRiV-N&oX5CA#t=$?`NakdJp_0{UvPSg(+FaFQ7IO}(bue`xW^#v|o+VRW|4{X1i zzGK}`X&!PeDXF}~3i_E&D*>BWG-#v)7B`iRehDAfm)W=ntjuomP*-2wZeiL^ zIL_8&DpPN{M0}6(8)2LrAwmBJPuNuw?o769lFJ&NyI=K0*75>cwcwSl+j^4erDXK@ zzz~7ZY_Xe%kz@wcSAW@NQt)EO_*NA-gjnxwF^UGp%`IzWN+^`^M}0ui5<9O{&A)dB zw>}6KF>R^QO5rBhBAm0d<4N9?IH^5`#byE1pfV~?I|UDje|plCWEgc&wb2ov%?HqqwY*8P^T33x-pt@xp4IxC@pdlE zoo2E*CyIg2RWt@6VgYA2UhVf!WHGh+U_?PpY2$-Ra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NYNb{QIE) E06j{~lK=n! literal 0 HcmV?d00001 From 9bf69b8d31415b90d34e7f35c266ac0ee322ccaa Mon Sep 17 00:00:00 2001 From: Kailie Yuan Date: Thu, 28 Sep 2023 08:27:06 -0700 Subject: [PATCH 2/4] JS suggestions --- source/fundamentals/connection/connect.txt | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/source/fundamentals/connection/connect.txt b/source/fundamentals/connection/connect.txt index 77193b6d0..6adeae93d 100644 --- a/source/fundamentals/connection/connect.txt +++ b/source/fundamentals/connection/connect.txt @@ -4,7 +4,7 @@ Connect to MongoDB ================== -This guide shows you how to connect to a +In this guide, you can learn how to connect to a `MongoDB Atlas deployment `__, a MongoDB instance, or a replica set using the {+driver-short+}. @@ -61,9 +61,6 @@ Connection Format documentation. This format offers flexibility in deployment and the ability to change the servers in rotation without reconfiguring clients. -This format offers flexibility in deployment and the ability to change -the servers in rotation without reconfiguring clients. - .. note:: If your deployment is on MongoDB Atlas, see the @@ -76,7 +73,7 @@ DNS SRV address, you must use ``mongodb`` for the protocol, which specifies the :manual:`Standard Connection String Format `. -After the protocol, the next part of the connection string contains +After the protocol, the connection string contains your credentials if you are using a password-based authentication mechanism. Replace the value of ``user`` with your username and ``pass`` with your password. If your authentication mechanism does not require credentials, From 8a9e10f7b7b46fe7905c400840a5b69a812c0c0a Mon Sep 17 00:00:00 2001 From: Kailie Yuan Date: Thu, 28 Sep 2023 08:34:36 -0700 Subject: [PATCH 3/4] added Atlas compatibility to compat page --- source/compatibility.txt | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/source/compatibility.txt b/source/compatibility.txt index 3b7eb43f5..cab37b2f9 100644 --- a/source/compatibility.txt +++ b/source/compatibility.txt @@ -22,6 +22,11 @@ Compatibility :class: singlecol +You can use the {+driver-short+} to connect to deployments hosted in the +following environments: + +.. include:: /includes/fact-environments.rst + MongoDB Compatibility --------------------- From b71d96c861d7211920d7943eaab6dd27ed58ea96 Mon Sep 17 00:00:00 2001 From: Kailie Yuan Date: Thu, 28 Sep 2023 14:41:48 -0700 Subject: [PATCH 4/4] MM suggestions --- source/fundamentals/connection/connect.txt | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/source/fundamentals/connection/connect.txt b/source/fundamentals/connection/connect.txt index 6adeae93d..b7119b5b0 100644 --- a/source/fundamentals/connection/connect.txt +++ b/source/fundamentals/connection/connect.txt @@ -52,9 +52,9 @@ connect to MongoDB and how it should behave while connected. The following figure explains each part of a sample connection URI: .. figure:: /includes/figures/dns_seedlist_connection_string_parts.png - :alt: Each part of the connection string + :alt: An example of a connection string that demonstrates the protocol, credentials, hostname or IP, port, and connection options -In this example, we connect to an Atlas MongoDB deployment that has a +In this example, you connect to an Atlas MongoDB deployment that has a DNS SRV record. For more details, see the :manual:`DNS Seed List Connection Format ` @@ -85,7 +85,7 @@ address, followed by the port of your MongoDB instance. In the example, Replace these values to refer to your MongoDB instance. The last part of the connection URI contains connection options as parameters. -In the example, we set two connection options: ``maxPoolSize=20`` and +In the example, you set two connection options: ``maxPoolSize=20`` and ``w=majority``. For more information on connection options, skip to the :ref:`connection-options` section of this guide.