Skip to content

Redis as a queue

Course: Redis (Pub subs and Messaging queues) - chapter 5

You can also push to a topic / queue on Redis and other processes can pop from it.

Good example of this is Leetcode submissions that need to be processed asynchronously

LPUSH problems 1
LPUSH problems 2
RPOP problems
RPOP problems
BRPOP problems 0
BRPOP problems 30

The last argument represents the timeout before the blocking should be stopped