MongoDB Tricks Sample code demonstrating using MongoDB as a Queue Broker with restartable cursors and acting as a coordination service. For more information on the MongoDB Asynchronous Driver used in this code see http://www.allanbank.com/mongodb-async-driver/.