Improve Cluster Role API usability

XMLWordPrintableJSON

    • Type: Task
    • Resolution: Duplicate
    • Priority: Minor - P4
    • None
    • Affects Version/s: None
    • Component/s: None
    • Catalog and Routing
    • CAR Team 2024-02-19
    • None
    • 3
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      The current ClusterRole API exposes a set of very open and generic functions that don't auto-describe the real use causes that the callers want to achieve.

      In order to improve the readability of the code, the idea is to expose an API with clear function names that better descrive what they do.

      The instances of this class model the role (or roles) of the current process (node) that is actually a member of a sharded cluster. If the process is a standalone or a replica set member, then there is no cluster role.

      An draft idea is to have an API that looks as follows:

      • isRouterOnly
      • isRouter
      • isShardOnly
      • isShard

              Assignee:
              [DO NOT USE] Backlog - Catalog and Routing
              Reporter:
              Antonio Fuschetto
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Created:
                Updated:
                Resolved: