The Architecture of Facebook's Distributed Message Queue
Facebook Ordered Queue Service (FOQS) is an internal Facebook tool that fills that role. FOQS provides an API that consists of the following operations - Enqueue - Add an item Dequeue The dequeue API accepts a collection of (topic, count) pairs where count represents the number of items to return from the topic.