Database based asynchronous priority queue system -- Extracted from Shopify