Introduction
XREADGROUP helps multiple consumers share the work of reading messages from a Redis stream without missing or repeating messages.
XREADGROUP GROUP <groupname> <consumername> [COUNT <count>] [BLOCK <milliseconds>] STREAMS <key> <id>
XREADGROUP GROUP mygroup Alice STREAMS mystream >
XREADGROUP GROUP mygroup Bob COUNT 5 STREAMS mystream >XREADGROUP GROUP mygroup Alice BLOCK 1000 STREAMS mystream >XGROUP CREATE mystream mygroup 0
XADD mystream * name Alice
XREADGROUP GROUP mygroup Alice STREAMS mystream >XREADGROUP in Redis streams?XREADGROUP?mystream with messages and a consumer group group1, what will be the output of this command?XREADGROUP GROUP group1 consumer1 STREAMS mystream 0
XREADGROUP GROUP group1 consumer1 STREAMS mystream >
orders using a consumer group ordergroup. You want each consumer to only get new messages and not pending ones. Which XREADGROUP ID should you use?Pass the test and this pattern moves unknown