Redis

Redis 8.6 RC1 Launch and Better Expiration Insights

Big day for Redis with the official 8.6 RC1 release hitting the shelves, complete with detailed release notes covering new features like XADD idempotency and HOTKEYS command. Plus, we got a fantastic observability improvement from sundb that gives us separate counters for active vs lazy key expiration - a game-changer for monitoring Redis performance.

Duration: PT3M56S

https://podlog.io/listen/redis-84394f5e/episode/redis-8-6-rc1-launch-and-better-expiration-insights-bdd355a5

Transcript

Hey there, fellow Redis enthusiasts! Welcome back to another episode of the Redis podcast. I'm your host, and wow, do we have an exciting day to dive into. Grab your favorite beverage because we're talking about some really cool stuff that happened on January 22nd.

So the big headline today is that Redis 8.6 RC1 is officially here! YaacovHazan dropped the release candidate with all the bells and whistles. We're talking about a proper version bump to 8.5.240 and - here's the really exciting part - comprehensive release notes that aren't just placeholder text anymore. You know how sometimes you see those "coming soon" notes? Not this time. We've got the full rundown of what's new.

The release notes are packed with goodies. We're getting XADD idempotency, which is huge for stream reliability. There's a new HOTKEYS command that's going to make debugging so much easier - imagine being able to quickly identify which keys are getting hammered in your Redis instance. Plus, they've added new eviction policies, which gives us more fine-tuned control over memory management. It's like getting a whole toolkit upgrade in one release.

But here's what I'm really geeking out about today - and this ties beautifully into the RC1 release - sundb just merged an absolutely brilliant observability improvement. You know how Redis has always tracked expired keys and expired hash fields? Well, here's the thing: it was lumping together two very different types of expiration, and that was driving ops teams crazy.

Let me paint you a picture. You've got your Redis instance humming along, and you're watching those expiration metrics. But you couldn't tell if keys were expiring because Redis was actively cleaning house during its regular maintenance cycles, or if they were expiring lazily when clients tried to access them. That's like having a speedometer that shows your total distance traveled but not your current speed - technically useful, but missing the story you actually need.

sundb saw this pain point and did something about it. The new implementation adds two dedicated counters: expired_keys_active and expired_subkeys_active. Now you can see exactly how much work your active expiration cycle is doing versus how many keys are getting cleaned up on-demand. This is going to be a game-changer for capacity planning and performance tuning.

What I love about this change is how thoughtfully it's implemented. They didn't just hack in some counters - they properly integrated them into the INFO stats output, added comprehensive tests for both regular keys and hash field expiration scenarios. The code touches are surgical but impactful - just the right modifications to expire.c, server files, and hash handling logic.

And can we talk about the collaboration here? This wasn't a solo effort. Moti Cohen co-authored the work, which shows how these improvements come from real team discussions and shared expertise. That's the kind of collaborative spirit that makes great software.

So today's focus is really about visibility and maturity. Whether you're eyeing that 8.6 RC1 upgrade or just thinking about how to better monitor your current Redis setup, this is your moment to level up your observability game. If you're running production Redis, start thinking about how these new expiration metrics could help you understand your workload patterns better.

For those ready to test drive 8.6 RC1, now's the perfect time to spin up a test environment and explore those new features. And if you're staying on your current version for now, consider what metrics you might be missing in your own monitoring setup - sometimes the most valuable improvements are the ones that help us see what was always happening behind the scenes.

That's a wrap for today! Keep building amazing things with Redis, and remember - every great database deployment starts with understanding what's actually happening under the hood. Until next time, happy coding!