-
Type:
Improvement
-
Resolution: Fixed
-
Priority:
Major - P3
-
Affects Version/s: None
-
Component/s: None
-
None
-
Service Arch
-
Fully Compatible
-
Service Arch 2022-12-26, Service Arch 2023-01-09, Service Arch 2023-01-23, Service Arch 2023-02-06, Service Arch 2023-02-20
-
None
-
3
-
None
-
None
-
None
-
None
-
None
-
None
matt.broadstone@mongodb.com points out that the advanced functionality of a Targeter is often not needed when sending an RPC request, because a default of ReadPreference "primary" is almost always what users want. In such cases, a URI (or even shard ID) is sufficient to target the RPC request. Let's add and document an overload that takes a URI and/or shardID instead of a Targeter, so that users don't need to manage additional state/complexity in the "easy" case.