Hands-on task
A consumer group for the orders stream
Redis has a stream orders with orders nobody has processed yet. Hook billing up to it:
- create a consumer group
billingso that it receives all entries of the stream — from the very beginning, not only new ones; - read the entries from the group as consumer
worker-1; - "process" them and acknowledge every entry you received, so the group has no pending messages left.
Don't change the stream itself: don't add or delete anything.
- redis
- streams
- XGROUP
- XREADGROUP
- XACK
- XPENDING