Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Multiple Service objects that wrap a common Session instance #130

Open
ecorm opened this issue Jul 18, 2022 · 0 comments
Open

Multiple Service objects that wrap a common Session instance #130

ecorm opened this issue Jul 18, 2022 · 0 comments

Comments

@ecorm
Copy link
Owner

ecorm commented Jul 18, 2022

Consider adding a Service class which serves as a facade to a common Session instance. Multiple Service objects could target the same Session instance. A Service would take care of maintaining lists of scoped registrations/subscriptions specific to that service. When a Service is destroyed, it would automatically clean up its own RPC registrations and pub/sub subscriptions without affecting other running services. A Service could have its own URI prefix that is automatically prepended to registration/publication URIs.

Something like this has already been implemented in the closed-source parent project that uses this library.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant