Yuppiechef / cqrs-server

An opinionated Clojure CQRS/ES implementation using Onyx, Datomic, DynamoDB, Kafka and Zookeeper.
MIT License
211 stars 13 forks source link

Exception and response flow #1

Open CmdrDats opened 9 years ago

CmdrDats commented 9 years ago

if there are exceptions in any command-coerce, process-command, aggregate-event or prepare-store, it kills the running job (rightly so).

Need to implement a flow where everything goes to a Dead Letter Queue (DLQ) box when there are problems by default. This means that we also need some way of handling the DLQ. I can think of a few scenario's:

On top of this, the message could be time-sensitive. Introduce an expiry time on the command so that the DLQ can get cleared of expired messages.