Engine

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)