Giter Club home page Giter Club logo

Comments (6)

onmyway133 avatar onmyway133 commented on May 20, 2024

@vadymmarkov What does Command do in this flow?

from aftermath.

vadymmarkov avatar vadymmarkov commented on May 20, 2024

@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.

zenangst avatar zenangst commented on May 20, 2024

We could go with Action to avoid confusion.

from aftermath.

zenangst avatar zenangst commented on May 20, 2024

Ops, I totally closed by mistake, stupid jumpy subway ride.

from aftermath.

vadymmarkov avatar vadymmarkov commented on May 20, 2024

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.

zenangst avatar zenangst commented on May 20, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.