Comments (6)
@vadymmarkov What does Command
do in this flow?
from aftermath.
@onmyway133 Command
is any kind of request from the view, could be "Load posts" or "Update post". It's handled by CommandHandler
where all the business logic is, such as networking or database queries. When CommandHandler
is done, it produces some response, either success or error, and publishes it to single/multiple event subscribers.
from aftermath.
We could go with Action to avoid confusion.
from aftermath.
Ops, I totally closed by mistake, stupid jumpy subway ride.
from aftermath.
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.
from aftermath.
I do agree with you here, but if you think about the flow that you referred to before;
Command -> Handler -> Event -> Reaction
The end result of an action is a reaction right? 😁
from aftermath.
Related Issues (2)
- Name HOT 8
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from aftermath.