Recently I stumbled upon a race condition issue in one of my project. I am using Laravel and there are two approach that I can think of at the time. Using atomic lock at database level or using Laravel cache lock. The Problem The function for my race...