Transactions and Consistency Ensure multi-step changes are atomic; make retries safe. Commands Patterns - Use to wrap write sequences and related side-effects - Prefer or for events / jobs - Make jobs idempotent (check existing state, use unique constraints) - Use for row-level coordination when needed - Validate invariants at the boundary before starting the transaction ---