Laravel 2 min read
Retry a deadlocked transaction without repeating remote effects
Two transactions acquire rows in different orders and one is selected as a deadlock victim. A bounded retry can be appropriate, but the transaction callback may run again. Anything...