News for hackers. Stuff that matters.
Re:How to do distributed locking by bryanh on Monday February 08, 2016 @06:50PM (#11061904)
Good observation! The article also covers that exact scenario - plus a solution called fencing which a proper locking system can help facilitate.
Re:How to do distributed locking by amelius on Monday February 08, 2016 @07:00PM (#11061938)
I like the fencing solution. Couldn't such a scheme be implemented over a database instead?

Why I'm thinking more in terms of a database-oriented solution is because there is still the problem of crashing. What happens if the system crashes just before the email is sent? The system somehow needs to remember to restart that task (sending the email) when it comes back up. And this is probably best done through a database anyway.