Concept Flow - BLPOP and BRPOP for blocking pop
Client sends BLPOP/BRPOP command
Check if list has elements?
No→Block client, wait for element
|Yes
Pop element from list (left for BLPOP, right for BRPOP)
Return popped element to client
Client receives element, command ends
The client sends a blocking pop command. If the list is empty, the client waits until an element is available. When an element appears, it is popped and returned.