Serializable Transactions

  • Author: Brandur Leach
  • Source:
  • Serializable transactions can catch all sorts of race conditions that normal transactions might not. They allow concurrent transactions to run as if they are running in serial.
  • When transactions interfere, one will fail, so you need to have some retry logic or other handling for this.
  • SQL: Start transaction isolation level serializable

Thanks for reading! If you have any questions or comments, please send me a note on Twitter. And if you enjoyed this, I also have a newsletter where I sometimes write about tech thoughts, interesting things I've read, and project updates.

You can check out a recent issue, or enter your email below to subscribe.