Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Add subscriptions #4

@aimed

Description

@aimed

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions