Skip to main content

3 posts tagged with "redis"

View All Tags

300 Redis Nodes, 3 Kahuna Nodes: Does the Math Work?

· 8 min read
Andres Gutierrez
Creator of Kahuna

This week I read a post from EloqData about replacing 300 Redis nodes with 3 Lavik nodes. The fleet in that post was large for one reason: Redis keeps every value in RAM. The memory was full and the CPUs were mostly idle. Every new slice of data meant another primary, another replica, and two more VMs.

Their answer is to keep values on local NVMe and keep only the hot part in memory. Kahuna already stores persistent keys that way. So I asked the same question for Kahuna: can three nodes hold what 300 Redis nodes held?

On paper, yes, with two big differences. Kahuna does not speak the Redis protocol, so your application changes clients. And every persistent write is replicated through a quorum before it succeeds, which is safer than Redis replication and slower per write. I have not run this benchmark yet. This post is the sizing math and the list of things that can go wrong.

290k Requests per Second on One Node, and Faster Than Valkey

· 11 min read
Andres Gutierrez
Creator of Kahuna

This week Kahuna crossed a line I did not expect to cross this year. A single node served 290k get requests per second for ephemeral keys. On the same machine, with the same number of clients, Valkey 9.1 served 247k plain GET requests per second.

The rate limiter is the number I care about more. Kahuna ran the fixed-window counter script from the rate-limiting recipe at about 200k requests per second. Valkey ran the same counter as a Lua script at 161k with EVAL and 175k with EVALSHA.

Before this work the same rate limiter ran at 84k. Nothing about the storage engine changed. What changed is how requests travel over the wire, and how a script that touches one key runs inside the node.

Couldn't You Just Use Redis and Postgres?

· 10 min read
Andres Gutierrez
Creator of Kahuna

Last Sunday, I was having lunch with a friend and talking about Kahuna, CamusDB, and all the time I've been putting into these projects lately. He didn't really understand why I would build Kahuna when most of what it does could probably be achieved with some combination of Redis and Postgres.

My explanation may not have been very convincing, and I understand why. Every business has a different tolerance for durability, availability, and consistency. Not every business operates 24/7, and not every business suffers significantly if its systems are down for a few minutes or even a few hours. In many operations, problems and mistakes can be fixed manually by people, or sometimes with an apology to the customer. Unfortunately, it's hard to explain to someone why you spent so much time solving edge cases they haven't encountered yet.

My story is very different. For some reason, I've spent almost my entire career working in industries that operate 24/7: airline reservations, hospitality, and video games. There is always a customer or user somewhere interacting with the system, whether it's just a few people or hundreds of thousands at the same time. That changed the way my brain works and the kinds of failure modes I instinctively try to avoid.

Building systems where performance is high and consistency is non-negotiable gradually became part of my DNA. I've learned that downtime and inconsistent systems mean lost revenue, damaged customer trust, and personal time and energy spent solving the wrong problems.