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

(SA) Introduce "Service" objects between ServiceContext and Client

    • Type: Icon: Improvement Improvement
    • Resolution: Duplicate
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: None
    • Component/s: None
    • None
    • Service Arch 2023-09-04, Service Arch 2023-09-18

      ServiceContext will become something of a "process context".
      It will own N "services".

      A Service is an OO abstraction of a service entry point + its state. The "makeClient" function will have to migrate from ServiceContext into Service. A Client will have a reference to its Service of origin. In this way, a Client will have access to the Service's CommandRegistry and Service-Specific stats and metrics, or other service-specific state.

      If we put a simple sketch of this infrastructure in place early, other tickets in the PM-635 project should have a framework under which to operate and can be more concretely specified acceptance criteria, etc.

            Assignee:
            billy.donahue@mongodb.com Billy Donahue
            Reporter:
            billy.donahue@mongodb.com Billy Donahue
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:
              Resolved: