Database based asynchronously priority queue system -- Extracted from Shopify