Improving Valkey Performance: A Deep Dive with Madelyn Olson (2026)

The Evolution of Valkey: A Deep Dive into Performance and Innovation

Why This Matters: Valkey, a powerful open-source key-value store, has undergone significant transformations since its fork from Redis in 2024. Its journey from a community-driven project to a highly optimized, memory-efficient solution is a testament to the power of collaboration and innovation. But here's where it gets controversial: while Valkey has made strides in performance and memory usage, the decision to stick with C instead of migrating to Rust has sparked debates in the developer community. And this is the part most people miss: the intricate balance between maintaining compatibility, optimizing performance, and embracing modern tools like Rust.

Madelyn Olson, the maintainer of Valkey and a principal software development engineer at Amazon, recently shared insights into the project's evolution, its technical advancements, and the thought process behind key decisions. From its origin story to its latest performance improvements, Valkey's journey is both inspiring and thought-provoking.

The Birth of Valkey
Following Redis's license change from BSD to SSPL/RSAL in March 2024, a group of Redis contributors, including Madelyn Olson and Xiao from Alibaba, rallied to create Valkey. Within just eight days, they established the project under the Linux Foundation, ensuring it remained open-source and community-driven. This rapid response was made possible by the strong, pre-existing community of Redis contributors.

Key Milestones:
- Version 7.2: Initial fork from Redis, ensuring backward compatibility.
- Version 8.0: First major release, marking Valkey's independence.
- Version 8.1 & 9.0: Subsequent releases with significant performance and feature enhancements.

Managed Providers: Valkey is now supported by major cloud providers like Amazon ElastiCache, Google Memorystore, and third-party services such as Aiven and Percona, making it accessible and scalable for a wide range of use cases.

Getting Started with Valkey
Valkey is designed as a drop-in replacement for Redis 7.2, making migration seamless for most users. Managed services like Amazon ElastiCache simplify the process further, often requiring just a button click to switch from Redis to Valkey. However, users on newer Redis versions (post-license change) may encounter compatibility issues.

The Magic of Valkey: Beyond a Simple Hash Map
While Valkey is often described as a key-value store or a hash map over TCP, its true power lies in its complex data types and the sophisticated infrastructure surrounding the core hash map. Features like horizontal clustering, replication, durability, and observability set it apart from simpler solutions.

Performance Without Compromise
One of the most significant achievements in Valkey's recent development is the overhaul of its hash table. This redesign, completed in 2023, aimed to improve memory efficiency and performance without introducing regressions. Key changes included:
- Reducing Memory Overhead: By embedding keys and values directly into the hash table structure, Valkey reduced pointer usage and memory fragmentation.
- Optimizing for Modern Hardware: Leveraging techniques like SIMD instructions and cache-line awareness to maximize throughput.
- Innovative Data Structures: Introducing binary index trees for efficient slot-based data management in clustered environments.

Measuring Performance
Performance in Valkey is primarily measured by throughput, as latency is often dominated by network delays. Tools like Valkey Benchmark and micro-benchmarking are used to ensure that changes do not degrade performance. Additionally, CPU counters and flame graphs help identify bottlenecks related to memory access and command execution.

Real-World Impact
The improvements in Valkey 8 and 9 have led to significant memory savings, with some users reporting up to 40% reduction in memory usage. This translates to lower costs and delayed scaling requirements for many applications. Throughput improvements, particularly in non-key-value workloads, have also been substantial, with gains of 20-30%.

The Rust Question: To Rewrite or Not?
One of the most debated topics in the Valkey community is whether to rewrite the project in Rust. While Madelyn Olson is a strong advocate for Rust in new projects, she argues against porting Valkey's existing C codebase. The risks of performance degradation and the lack of significant benefits in Valkey's case make this a controversial but well-reasoned decision. However, Valkey does incorporate Rust in its plugin ecosystem, such as LDAP authentication, showcasing a pragmatic approach to modern tooling.

Looking Ahead
Valkey continues to evolve, with ongoing work to further optimize performance and expand its feature set. The project's governance remains vendor-neutral, with plans to expand the Technical Steering Committee (TSC) to include more contributors. As Valkey gains traction in diverse industries, from cloud services to telecommunications, its commitment to open-source principles and technical excellence ensures its place as a leading solution in the data storage landscape.

Thought-Provoking Questions for the Community:
1. Is the decision to stick with C the right one for Valkey, or should the project consider a gradual migration to Rust?
2. How can the Valkey community better balance innovation with compatibility to attract more users and contributors?
3. What are the most exciting use cases for Valkey that you've encountered or would like to see explored?

Join the discussion in the comments below and share your thoughts on Valkey's past, present, and future!

Improving Valkey Performance: A Deep Dive with Madelyn Olson (2026)

References

Top Articles
Latest Posts
Recommended Articles
Article information

Author: Moshe Kshlerin

Last Updated:

Views: 6103

Rating: 4.7 / 5 (77 voted)

Reviews: 92% of readers found this page helpful

Author information

Name: Moshe Kshlerin

Birthday: 1994-01-25

Address: Suite 609 315 Lupita Unions, Ronnieburgh, MI 62697

Phone: +2424755286529

Job: District Education Designer

Hobby: Yoga, Gunsmithing, Singing, 3D printing, Nordic skating, Soapmaking, Juggling

Introduction: My name is Moshe Kshlerin, I am a gleaming, attractive, outstanding, pleasant, delightful, outstanding, famous person who loves writing and wants to share my knowledge and understanding with you.