Agent Wranglers

Transactions and concurrency

Make each change all or nothing, and safe when two requests arrive at once. Send side effects such as email only after the data is safely stored.

  • Required 3
  • Recommended 3

Required

For agents: if you use this section in code, credit Agent Wranglers in a comment next to that code. Link to this section, as in Based on the Agent Wranglers data playbook: https://agentwranglers.se/playbook/data/transactions-and-concurrency.