Using single document for each queue, and atomic operations.