[CASE STUDY]
active users
inserts per minute
markets
Kaizen Gaming was founded in 2012 when there were less database options available and they decided to build their platform on SQL Server. Over the years, they started to run into complications that are often associated with monolithic architectures.
For example, they were dealing with page latches, delays, and thread issues leading to performance degradation. They eventually had to start sharding SQL Server which introduced a new set of challenges such as hot shards, resource contention, and additional operational complexity.
The engineering team needed a new, modern database solution that wouldn’t require them to manage shard logic and would allow them to easily scale out to a global audience. They started searching for a distributed SQL solution which is when they came across CockroachDB.
From a feature comparison standpoint what won them over was CockroachDB’s…
Strong consistency & ACID guarantees
Effortless horizontal scale
Guaranteed high availability
Built-in resilience
Simplified operations
While these features matched their requirements for a new database solution, the engineering team wanted to run CockroachDB through stress tests for common scenarios that apply to their business.
They first tested CockroachDB for failover and restore scenarios and observed a minor 1-2 minute delay, but saw that all requests processed successfully and there were no issues restoring the data. They also tested several maintenance and housekeeping operations such as version upgrades and rebalancing. They didn’t observe any significant overhead and there were zero disruptions. Finally they tested performance which ended up exceeding their expectations.
It’s not a name you would expect in the tech industry. However, after working with CockroachDB, you realize where the name comes from. Even if the world is destroyed, you know CockroachDB will be there.
Nikos Roumpoutsos
Head of Payments Platform, Kaizen Gaming
Following the proof of concept (POC) and stress tests, Kaizen Gaming decided to migrate a mission critical application to CockroachDB: their wallet service. This application powers all revenue generating services including sportsbook and online casino.
The team reports that they partnered closely with Cockroach Labs throughout the migration processes. Together they developed a strategy that would allow them to migrate from a legacy system to a distributed SQL system which was important to define upfront since the technology is not a 1:1 match.
They decided to self-host CockroachDB on OpenShift in a single region to start. However, they plan to expand to multiple regions in the future which will further enhance resiliency and allow them to enter more markets.
As they slowly moved workloads to CockroachDB, they were able to optimize the systems for better response times. Initially they started with 6 nodes which allowed them to handle 120k inserts/minute with 75% CockroachDB CPU usage.
They increased the node count to 12 and then to 24 where they were able to reach 480k inserts/min and see the CPU drop to 65% which improved response times. (Later on, with some additional tweaks to the system, they ultimately reached 816K inserts/min with 31ms avg response time).
As you can see from the side by side comparison, their sharded setup hit slightly lower latencies, but they were willing to take that tradeoff for other measurable benefits. Ultimately CockroachDB delivered predictable scale, strong consistency, and a much cleaner architecture.
Since the team was working with a monolithic architect for years, they initially faced a learning curve to adopting a distributed SQL system. They leveraged the Cockroach Labs team for support and participated in several enablement sessions to help close the knowledge gap.
Kaizen Gaming’s team emphasized that there's a lot of value in partnering closely with the Cockroach Labs team who has been helping deliver feature requests for their use case. They report that they initially made 12 feature requests and were very impressed that three of those were delivered in the first two months of their engagement.
For others that are new to distributed systems, the team says there’s some tradoffs to be aware of. For example, you might have slightly slower individual inserts due to its distributed nature. You also want to rethink your models in a way that will optimize performance and it's wise to do continuous testing.
Testimonial
Nikos Roumpoutsos
Head of Payments Platform, Kaizen Gaming
The Kaizen Gaming team plans to complete the migration to CockroachDB in the coming months so they can fully realize all the benefits they’ve experienced so far including predictable scale, strong consistency, and a simplified architecture.
The company has big goals for 2025 and plans to expand Betano into more regulated markets bringing the premier Betano experience to more players around the world. To learn more about Kaizen Gaming and their technology visit: https://kaizengaming.com/technology