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

Add subscriptions #4

Open
aimed opened this issue Aug 18, 2018 · 0 comments
Open

Add subscriptions #4

aimed opened this issue Aug 18, 2018 · 0 comments
Labels
enhancement New feature or request

Comments

@aimed
Copy link
Owner

aimed commented Aug 18, 2018

Implementing subscriptions is a necessary step to properly implement CQRS.

If we adhere to all CQRS best practices, executing a mutation (command) should not return a value (see e.g. https://en.wikipedia.org/wiki/Command%E2%80%93query_separation). Instead the view (query) should be updated after receiving an event.

The flow we try to achieve is something like:
mutation -> create event -> update stores -> inform subscribers

@aimed aimed added the enhancement New feature or request label Aug 18, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant