Home / Companies / Redis / Blog / Post Details
Content Deep Dive

Single-shot reliable consumers with XREADGROUP CLAIM in Redis 8.4

Blog post from Redis

Post Details
Company
Date Published
Author
-
Word Count
3,499
Company Posts That Month
27
Language
English
Hacker News Points
-
Post removed?
No
Summary

In Redis 8.4, the introduction of the CLAIM parameter to the XREADGROUP command significantly enhances the efficiency of Redis Streams by allowing for the simultaneous consumption of new entries and reclamation of idle pending ones, streamlining the process into a single command execution. Previously, reliable consumers required multiple commands to manage pending entries, but the new CLAIM option consolidates these operations, delivering up to a 22.5x performance improvement over the previous XAUTOCLAIM command by transforming the task from a scan to a range query. This enhancement is facilitated by a time-ordered index, which is further optimized with a linked list implementation, reducing update operations to O(1) and minimizing memory overhead. The innovation maintains compatibility with existing consumer configurations, allowing for mixed usage of CLAIM and non-CLAIM consumers within the same group, thus simplifying the consumer loop while increasing throughput by 28% and reducing latency.

Trends Found in this Post
Trend Post Mentions Total Month Mentions Posts Companies MoM
Real-time 1 5,735 1,391 247 -9%
Use This Data

Use this post, company, and trend context to find content marketing opportunities, perform competitive analysis, or address product feature gaps via the Plushcap MCP server or the Plushcap API.