Concept Flow - Priority queue pattern
Add item with score
Store in sorted set
Retrieve item with lowest score
Process item
Remove item from sorted set
Repeat or exit if empty
Items are added with a priority score to a sorted set. The lowest score item is retrieved and removed for processing, repeating until empty.