|
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.
|