Skip to content

Commit

Permalink
BRPOPLPUSH mentioned in the BLPOP doc.
Browse files Browse the repository at this point in the history
  • Loading branch information
antirez committed Sep 26, 2012
1 parent 03e801a commit e9a818a
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions commands/blpop.md
Expand Up @@ -103,6 +103,12 @@ redis> BLPOP list1 list2 0
2) "a"
```

## Reliable queues

When `BLPOP` returns an element to the client, it also removes the element from the list. This means that the element only exists in the context of the client: if the client crashes while processing the returned element, it is lost forever.

This can be a problem with some application where we want a more reliable messaging system. When this is the case, please check the `BRPOPLPUSH` command, that is a variant of `BLPOP` that adds the returned element to a traget list before returing it to the client.

## Pattern: Event notification

Using blocking list operations it is possible to mount different blocking
Expand Down

0 comments on commit e9a818a

Please sign in to comment.