The Exceeding Cleverness of Laravel’s Atomic Database Locks

I was having a conversation in a Slack today about MySQL’s “advisory locks”, which let you acquire a lock that is not table dependent. You just ask MySQL for a lock with a name and it either gives it to you or doesn’t: Read more