Command Sourcing
Command Sourcing #
Similar to Event Sourcing (ES) but persists commands as opposed to events so:
-
Issue command
-
Persist command
-
Run asyncronous the command
-
They should be idempotent as they run multiple times (e.g., failures).
-
Must be validated so that they do not become stuck in the queue forever.
-
Bad: The sender might not be notified if the command fails due to the decouple nature.