-
Type: Improvement
-
Resolution: Duplicate
-
Priority: 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.
- duplicates
-
SERVER-80355 introduce Service under ServiceContext. remove calls to globalCommandRegistry
- Closed
- is depended on by
-
SERVER-77921 (SA) Support for different ServiceEntryPoints based on role
- Closed
-
SERVER-78976 (SA) Adapt command registry to support both router and shard commands
- Closed