Distributed Timers With Node.js and Skyring
W
orking with timers a distributed system is a really nasty problem that pops up more often than most people would like. Something as simple an useful as setTimeout
/ clearTimeout
becomes brittle, unreliable and a bottle neck in today's stateless, scalable server mindset. Basically, I need to be able to set a timer somewhere in a cluster with out knowing or caring about what server. And reversely, I need to be able to cancel that timer **without** having to know where in the cluster that timer lives. But before we can start to understand possible solutions, let's dive into a use case to understand the problem and why existing solutions aren't suitable replacements.
Scenarios
Un-send an email - A simple
Read More