-
Notifications
You must be signed in to change notification settings - Fork 1
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
Aftermath and CQRS #4
Comments
@vadymmarkov What does |
@onmyway133 |
We could go with Action to avoid confusion. |
Ops, I totally closed by mistake, stupid jumpy subway ride. |
I was thinking about it and for me "Load post!" or "Update post!" are more commands than actions. So let's not make a problem from it, leave Command as a name and see how it goes. |
I do agree with you here, but if you think about the flow that you referred to before;
The end result of an action is a reaction right? 😁 |
@zenangst @RamonGilabert @onmyway133
Some ideas were taken from CQRS https://en.wikipedia.org/wiki/Command–query_separation principle, but in general there is at least one fundamental difference - we don't separate a query layer that only returns data to the caller and a command layer that only updates the state. Aftermath is for front-end apps where both read and update actions go through the same flow:
Command -> Handler -> Event -> Reaction
With that being said, should we care about terms that could potentially lead people into confusion? For example, Command could be renamed to Intent or even Action.
The text was updated successfully, but these errors were encountered: