Skip to content

Commit 10f511f

Browse files
committed
A use-case for read preference mode primaryPreferred
1 parent 6a7d19c commit 10f511f

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

source/applications/replication.txt

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -639,6 +639,13 @@ using non-:readmode:`primary` read preference modes:
639639
read preference or the :readmode:`nearest` to avoid network
640640
latency.
641641

642+
- Maintaining availability during a failover.
643+
644+
Use :readmode:`primaryPreferred` if you want your application to do
645+
consistent reads from the primary under normal circumstances, but to allow
646+
stale reads from secondaries in an emergency. This provides a "read-only mode"
647+
for your application during a failover.
648+
642649
Using read modes other than :readmode:`primary` and
643650
:readmode:`primaryPreferred` to provide extra capacity is not in and
644651
of itself justification for non-:readmode:`primary` in many

0 commit comments

Comments
 (0)