What is New in Redis 8.4
Redis 8.4 delivers powerful updates focused on atomic operations, performance optimizations, and advanced search capabilities. It introduces new commands for safer data handling, enhances vector and stream processing, and improves memory efficiency. This release also boosts reliability with better AOF repair and unified module support, making Redis more robust for high-demand applications.
Atomic and Conditional Commands
CLUSTER MIGRATION: Performs atomic slot migrations in clusters for zero-downtime data movement.DELEX: Deletes a key only if its value matches a given condition.DIGEST: Creates cryptographic digests to verify key value integrity.SET: Adds support for compare-and-set or compare-and-delete operations.MSETEX: Sets multiple keys and their expiration times atomically.
Stream and Consumer Group Enhancements
The XREADGROUP command gains a CLAIM min-idle-time option. This lets consumer groups claim idle pending messages and process new ones in one step.
Hybrid Search in RediSearch
A new FT.HYBRID command supports combining multiple ranking methods. It uses Reciprocal Rank Fusion (RRF) or linear combinations for better semantic and text searches.
Performance Optimizations
BITCOUNTand HyperLogLog use SIMD instructions (AVX2/AVX512 on x86, Neon on ARM) for faster execution.- Vector commands like
VADDandVSIMbenefit from optimized dot product calculations. - Lookahead prefetching parses upcoming commands in advance to reduce latency.
- JSON handling in Lua and arrays sees memory improvements through inlining and optimizations.
Configuration and Reliability
- New parameter
aof-load-corrupt-tail-max-size: Automatically repairs small corruptions in AOF files during startup. lookahead: Adjustable depth for command prefetching.- RediSearch additions: Default scorer set to BM25STD, OOM behavior control with
search-on-oom, and multi-threading viasearch-io-threads.
Module and Component Updates
All features come in a single Redis Open Source package. Modules gain better documentation support:
- RedisTimeSeries: HELP and COMMAND DOCS for time series commands.
- RedisBloom: HELP and COMMAND DOCS for probabilistic commands.
- RediSearch: Hybrid queries and improved cluster handling.
Known Limitations
During atomic slot migrations, some search and time series commands may return partial results or duplicates. Certain options in FT.HYBRID are not yet supported, including scoring explanations and post-filtering.
Why Upgrade to Redis 8.4
Redis 8.4 offers stronger atomic guarantees, faster operations through optimizations, and advanced hybrid search tools. It enhances reliability and simplifies management in clustered environments, making it ideal for applications needing high performance and data integrity.