We all know about techniques to prevent db deadlocks – acquire locks in the same order, etc. But at some point, systems under pressure may simply suffer from deadlocks here and there. Should we simply accept that and always be prepared to retry when a deadlock occurs or should deadlocks be considered absolutely verboten and should we do everything in our power to prevent them?
Share
The answer is yes.
You should do everything in your power to prevent them, but are you ever going to be satisfied that you’ve made them impossible?