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

gRPC "subscribe" method on the COS client #348

Open
zenyui opened this issue May 13, 2021 · 0 comments
Open

gRPC "subscribe" method on the COS client #348

zenyui opened this issue May 13, 2021 · 0 comments

Comments

@zenyui
Copy link

zenyui commented May 13, 2021

Is your feature request related to a problem? Please describe.
It would be nice to have a "subscription" pattern for changes, similar to implementing a read side. This would allow applications to register as streaming consumers at runtime instead of in the COS configuration. This could be used to back cool patterns like serving changes over websockets to external API clients, etc.

Describe the solution you'd like

  • add a subscribe client method to the COS service, perhaps one that allows consuming changes for a particular entity or all entities
  • implement the subscribe method in COS server as a gRPC stream. probably use akka streams, and find a way to do this without too many connections to the journal (if db reads are needed at all)

Describe alternatives you've considered
n/a

Additional context

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

No branches or pull requests

1 participant