Command

A command is an operation performed within an application that emits one or more events as the result of a successful or failed execution. We can think about these as operations that are intended to modify the state of a system.

Commands are called actions. This makes a lot of sense if we take their intended use into consideration. The following list shows some examples of such commands:

  • Transfer money
  • Update user information
  • Create an account

It's highly recommended that you use present tense verbs for naming commands, as demonstrated with these examples.

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
3.15.226.120