# How a sports betting platform used CockroachDB for multi-state compliance

DevFeed: [How a sports betting platform used CockroachDB for multi-state compliance](<https://devfeed.tech/articles/a-sports-betting-app-saved-millions-switching-from-postgresql-to-cockroachdb-23805.md>)

Original publisher: [Read original article](<https://cockroachlabs.com/blog/real-money-gaming-cost-savings>)

Author: Michelle Gienow

Published: 2024-02-09T00:00:00Z

Content type: article

Language: en

Sources: [Cockroach Labs](<https://devfeed.tech/sources/cockroach-labs.md>)

Topics: [CockroachDB](<https://devfeed.tech/topics/cockroachdb.md>), [Sports](<https://devfeed.tech/topics/sports.md>), [Databases](<https://devfeed.tech/topics/databases.md>), [real-time](<https://devfeed.tech/topics/real-time.md>), [Amazon Web Services](<https://devfeed.tech/topics/aws.md>), [gateway](<https://devfeed.tech/topics/gateway.md>), [PostgreSQL](<https://devfeed.tech/topics/postgresql.md>)

Tags: [aws-outposts](<https://devfeed.tech/tags/aws-outposts.md>), [cockroachdb](<https://devfeed.tech/tags/cockroachdb.md>), [compliance](<https://devfeed.tech/tags/compliance.md>), [consistency](<https://devfeed.tech/tags/consistency.md>), [database](<https://devfeed.tech/tags/database.md>), [gateway](<https://devfeed.tech/tags/gateway.md>), [postgresql](<https://devfeed.tech/tags/postgresql.md>), [sports](<https://devfeed.tech/tags/sports.md>), [switching](<https://devfeed.tech/tags/switching.md>)

## AI overview

This article describes how a North America-based sports betting platform designed a multi-state architecture to meet performance, consistency, and data-locality requirements. It explains how CockroachDB, AWS Outposts, database gateway nodes, and geo-partitioning supported compliance while reducing the complexity of operating separate databases in each state.

## Source excerpt

The challenges facing sports betting platforms are rigorous: they have to be fast and consistent in a way that's similar to high-frequency trading platforms. At the same time, they have a variety of data-locality requirements to comply with depending on which states or countries they serve. In this blog, we'll look at a real-world example of a North America-based sports betting platform that designed a gaming and sports betting architecture that not only meets the performance, consistency, and compliance requirements of the industry; but also enabled the business to swiftly enter new regional markets without requiring a massive engineering effort.