Architecture Graveyard: The Broker That Did Nothing Wrong

kubectl get statefulset -n rabbit
NAME       READY   AGE
rabbitmq   1/1     3y15d

Would you remove a core piece of infrastructure that barely ever caused trouble? One that ran for years, rarely needed attention and handled everything you threw at it?

No major outages, no performance disasters, no fundamental architectural issues. So why even bother spending time replacing it?

1. Why RabbitMQ existed

To answer the question, we have to travel back in time 3.5-4 years ago, the time where we were setting up the core architecture of our platform.

I'm not going to repeat myself here how our architecture stands and what it is in full detail. I have a KubeCon talk about that, feel free to look at it on YouTube or the deck here.

But in short, like any other platform we need to configure our services and applications to provide functionalities for internal and external users. In our case these configurations mainly cover campaign management, segmentation and targeting, feature flags, and other control plane settings such as analytics paths, routes, and filters.

While we manage these configurations internally through our admin system (I know, very creative naming), they need to be distributed across all the other clusters and services for games in various environments. Slowly this is turning into a shared cache problem right?

Well, there were plenty of ways we could approach this but following our usual mentality of "do we need the You-Know-Which cache?", we decided not to introduce another system. Instead we duplicated the caches across pods and kept them in memory.

To keep the caches synchronized we distributed a fresh snapshot whenever a configuration changed or a pod started and needed its cache before the readiness check passed.

Initially these messages were only tens or hundreds of kilobytes at most, so distributing the entire configuration was an easy choice. Over the years as the platform grew in complexity some of these messages reached 40 MB. We stuck with full snapshots because updates were relatively infrequent and it saved us from introducing more complicated cache invalidation and synchronization strategies.

pods · in-memory cache admin RabbitMQ pod 1v42 pod 2v42 pod 3v42 pod 4v42

config change → full snapshot to every pod

Every config change and every pod start ships the full snapshot from the admin system through RabbitMQ into each pod's in-memory cache.

2. Unexpected news and alternatives

One question I would usually get, "why have Kafka and Rabbit at the same time?". Fair point.

Kafka came to the picture much much later, like a good year later when we added more features that required external connectivity and data lake sinks. We considered replacing RabbitMQ with Kafka but our configuration snapshots exceeded the message size limits of our managed Confluent deployment. We could have split the snapshots into smaller chunks or switched to distributing incremental changes (deltas) instead of replacing the entire cache. But that would've taken a considerable amount of time to rebuild the cache reading system and it's downstream per service as this system was covering many different use cases and functionalities.

Thus we simply left RabbitMQ alone, in it's corner, without a friend, just to do the same thing day in day out, for years. It never made us unhappy and for that we shall be forever grateful.

Until August 2025:

As of August 28th, 2025, the Bitnami public catalog will undergo the following changes:

  • Disable images generation for Debian-based images and gradually move existing ones to a Bitnami Legacy repository.
  • A focused set of more hardened, more secure images. These free images are intended for development and are only available on the “latest” tag.

Yes we were using the Bitnami Helm chart, nothing wrong with that eh? Small team less resources, let's use something that existed for years.

We could've found a way to carry RabbitMQ over, in essence it's just the Helm chart not the application. But the announcement made us reconsider something, was this the time to revisit that part of our architecture? Should we take on the responsibility of maintaining our own RabbitMQ deployment and upgrade cycle, or simply pack our bags and go somewhere else?

3. The switch

First think about what are our alternatives:

This is not the right blog post to learn about differences in these, but I will mention what was our reasoning to shortlist or not.

First, vendors and open source. Even though our infrastructure runs on GCP we want to preserve the option of running every piece of our workloads like the containers elsewhere. Introducing GCP Pub/Sub would create another dependency on GCP specific services, which didn't align well with that principle.

Redis was another serious option. We had the team experience operating it and it was a mature solution everyone in the industry knew and supported. But the licensing changes brought uncertainty about its future and where would it end up. Would things change for the better or worse? Things are looking brighter now but at the time that uncertainty was enough to take it off our list.

Kafka would've been the obvious choice since we were already running it. But given our snapshot sizes and the message limits of our managed Confluent deployment it wasn't a viable option without reworking the distribution system.

Which leaves us with Valkey. It offered the Pub/Sub functionality we needed without requiring us to change how our distribution worked. At the time there wasn't a suitable Helm chart with the high availability setup we wanted, an equivalent to Redis Sentinel. But still it was a great option that was up and coming with a lot of support from the community as well. Plus we would have the option to use it as centralized cache at some point as well if we needed to ditch our in house cache service (story for a different time)

New piece of infra chosen and decision journal entry written, Valkey was deployed and gotten itself a brand new shared library that'd utilize pub and sub mechanisms in a clean way across all the services.

On a scale from not even a blip to we were down for two days and two nights the migration was pretty uneventful. We ran both the old Rabbit caches and Valkey caches next to each other in different environments and compared the results. Since our experimentation and segmentation logic is deterministic we could eval the same inputs against both implementations and check whether their outputs matched. Any discrepancy would indicate something was wrong before proceeding with the full migration.

Once we were happy we simply made the switch over to Valkey. Kept the old Rabbit deployment for two more weeks as extra safety net to fallback to, then that was sunsetted from the infra.

admin RabbitMQ Valkey pod 1 rabbit valkey pod 2 rabbit valkey pod 3 rabbit valkey

same inputs against both caches, outputs must match

Both brokers ran side by side. The same inputs were evaluated against both caches and once the outputs matched the pods switched to Valkey. Hollow packets are RabbitMQ, solid ones Valkey.

4. Looking back

RabbitMQ served its purpose exceptionally well. Especially for a piece of infrastructure we'd practically neglected in terms of configuration and maintenance.

We kept the caching architecture unchanged. There are plenty of ways to handle caching in distributed systems each with its own trade-offs. For now this approach still works well for us and we'll revisit it when there's a reason to.

We also stayed consistent with our preference for keeping the number of different technologies we operate manageable. RabbitMQ wasn't a bad decision when we introduced it and it wasn't a bad decision when we retired it. A good architectural decision doesn't have to remain the right one forever.

Berkay