Database backed asynchronous priority queue -- Extracted from Shopify