Skip to content

Commit 037a872

Browse files
authored
Merge pull request #109496 from sivethe/patch-5
Add Primary Preferred to HA recommendation in mongodb-readpreference.md
2 parents 81dd6de + e26d94c commit 037a872

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

articles/cosmos-db/mongodb-readpreference.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ Refer to the detailed [MongoDB Read Preference behavior](https://docs.mongodb.co
8080
Based on common scenarios, we recommend using the following settings:
8181

8282
1. If **low latency reads** are required, use the **NEAREST** read preference mode. This setting directs the read operations to the nearest available region. Note that if the nearest region is the WRITE region, then these operations are directed to that region.
83-
2. If **high availability and geo distribution of reads** are required (latency is not a constraint), then use the **SECONDARY PREFERRED** read preference mode. This setting directs read operations to an available READ region. If no READ region is available, then requests are directed to the WRITE region.
83+
2. If **high availability and geo distribution of reads** are required (latency is not a constraint), then use the **PRIMARY PREFERRED** or **SECONDARY PREFERRED** read preference mode. This setting directs read operations to an available WRITE or READ region respectively. If the region is not available, then requests are directed to the next available region as per the read preference behavior.
8484

8585
The following snippet from the sample application shows how to configure NEAREST Read Preference in NodeJS:
8686

0 commit comments

Comments
 (0)