Uploaded image for project: 'Core Server'
  1. Core Server
  2. SERVER-70894

Add an overload for async_rpc::sendCommand that doesn't require a targeter

    XMLWordPrintableJSON

Details

    • Icon: Improvement Improvement
    • Resolution: Fixed
    • Icon: Major - P3 Major - P3
    • 7.0.0-rc0
    • None
    • 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

    Description

      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. 

      Attachments

        Activity

          People

            alex.li@mongodb.com Alex Li
            george.wangensteen@mongodb.com George Wangensteen
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: