A dead simple background job written in pure Ruby, using a double ended queue (deque) based on a doubly linked list (dll). The deque has a blocking version based on primitives such as mutex and condition variable, useful for a background job.
Because we perform operations in the deque at constant time rpoplpush
easily in a performant way, enabling reliability through the use of a processing queue and a dead-letter queue.
Run the unit test:
ruby sidequico_test.rb