ZooKeeper Recipes and Solutions - Apache ZooKeeper - Home
Priority Queues To implement a priority queue, you need only make two simple changes to the generic queue recipe. First, to add to a queue, the pathname ends with "queue-YY" where YY is the priority of the element with lower numbers representing ......