XINFO-CONSUMERS(3valkey)
π XINFO-CONSUMERS π
okay bestie, this is the xinfo-consumers page from the Valkey Command Manual, and it's lowkey one of the most useful little stream commands ever. let's get into it π«Ά
β¨ SYNOPSIS β¨
XINFO CONSUMERS key group
πΈ DESCRIPTION πΈ
so basically, this command hands you back the list of all the consumers chillin' inside the <groupname> consumer group, on the stream that lives at <key>. the way that it justβ¦ tells you who's in the group?? iconic. π
here's everything it spills for each consumer in the group:
nameβ the consumer's name, obvs πpendingβ how many entries are sitting in the PEL, aka the pending messages for this consumer. these are messages that got delivered but have not been acknowledged yet. not them being left on read πidleβ the number of milliseconds since the consumer's last attempted interaction. examples of that:XREADGROUP,XCLAIM,XAUTOCLAIM. so like, even if they tried and got nothing, it still counts β¨inactiveβ the number of milliseconds since the consumer's last successful interaction. examples: anXREADGROUPthat actually read some entries into the PEL, or anXCLAIM/XAUTOCLAIMthat actually claimed some entries. so this one is the "they actually did the thing" timer πΈ
ngl theidlevsinactiveglow-up is real β see HISTORY below, it got a whole meaning change. π
π REPLY π
valkey-protocol(7) Array reply: a list of consumers and their attributes. simple as that, bestie π¦
β COMPLEXITY β
yes. constant. she's fast. periodt. π
π ACL CATEGORIES π
@read @slow @stream
π HISTORY π
- Available since:
5.0.0 - Changed in
7.2.0: Added theinactivefield, and changed the meaning ofidle. (yes the glow-up was real, they redefined the whole vibe ofidleπ)
π₯ EXAMPLES π₯
> XINFO CONSUMERS mystream mygroup
1) 1) name
2) "Alice"
3) pending
4) (integer) 1
5) idle
6) (integer) 9104628
7) inactive
8) (integer) 18104698
2) 1) name
2) "Bob"
3) pending
4) (integer) 1
5) idle
6) (integer) 83841983
7) inactive
8) (integer) 993841998
look at Alice and Bob, both with 1 pending, both absolutely not acknowledging their messages. relatable tbh π
π§ SEE ALSO π§
xack(3valkey)xadd(3valkey)xautoclaim(3valkey)xclaim(3valkey)xdel(3valkey)xgroup(3valkey)xgroup-create(3valkey)xgroup-createconsumer(3valkey)xgroup-delconsumer(3valkey)xgroup-destroy(3valkey)xgroup-help(3valkey)xgroup-setid(3valkey)xinfo(3valkey)xinfo-groups(3valkey)xinfo-help(3valkey)xinfo-stream(3valkey)xlen(3valkey)xpending(3valkey)xrange(3valkey)xread(3valkey)xreadgroup(3valkey)xrevrange(3valkey)xsetid(3valkey)xtrim(3valkey)
okay that's the whole page, you ate that fr fr ππ this was XINFO-CONSUMERS(3valkey) from the Valkey Command Manual, version 9.0.0, dated 2025-10-21. go check on your consumers, bestie, somebody's PEL is probably a mess πΈβ¨π¦
π¦ where this page comes from
- fedora 44: valkey-doc 9.0.3-2.fc44 Β· CC-BY-SA-4.0
- fedora 44: valkey-doc 9.0.6-1.fc44 Β· CC-BY-SA-4.0
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms