Command Sourcing

Command Sourcing

Command Sourcing #

Similar to Event Sourcing (ES) but persists commands as opposed to events so:

  1. Issue command

  2. Persist command

  3. Run asyncronous the command

  4. They should be idempotent as they run multiple times (e.g., failures).

  5. Must be validated so that they do not become stuck in the queue forever.

  6. Bad: The sender might not be notified if the command fails due to the decouple nature.