2.5. Retries
A client that is not sure its request arrived sends it again. To make that harmless, give the event a domain id and a rule that allows it once:
entities:
account:
key: account_id
events:
MoneyDeposited: { deposit_id: text, amount: number }
rules:
- on: MoneyDeposited
requires: never MoneyDeposited(deposit_id)
depositText · checked against the spec · A deposit with a new id is accepted. A deposit sent again with the same id is rejected.