Case Study Deskcasestudydesk.com
Website Building & Commerce SaaSSourced

Case Study: Squarespace migrates to CockroachDB with 80% of apps needing no code changes

Squarespace Case StudySourced & dated by Case Study Desk
Key facts · TL;DR
Company
Squarespace
Industry
Website Building & Commerce SaaS
Challenge
Moving global workloads off single-region PostgreSQL
Headline result
Squarespace reported that 80% of its applications required no app-level changes when moving from PostgreSQL to CockroachDB

Key results

80%
Applications needing no app-level changes
During migration from PostgreSQL
<10ms
Downtime during migration cutovers
50
Clusters migrated
Across two environments

The challenge

Squarespace concluded that PostgreSQL was no longer the right fit for its global workloads and needed a database that could deliver distributed, horizontal scale. A key concern was how much downtime would be acceptable during migration and whether a new system could keep reaching customers reliably.

The solution

Squarespace adopted CockroachDB as a distributed SQL system of record, running clusters across three regions (two GCP regions and one data center) and migrating applications environment by environment.

There's a fluidity to CockroachDB that lets you respond dynamically without having to make changes to your application. This is really powerful to us because the teams managing the application are different from those managing the data systems.

GM
Gavin McQuillan
Sr. Staff Software Engineer, Squarespace

The results, in context

Squarespace reported that 80% of its applications required no app-level changes during the move to CockroachDB, and that migration cutovers ran with under 10 milliseconds of downtime. The team migrated 50 clusters across two environments and described a fluidity that let application teams and data-systems teams operate independently.

Products used

Cockroach Labs CockroachDB