Industry Insights & Trends

Zero-Downtime at Scale: How Crux Migrated 2 Billion Rows Without Missing a Beat

Operational Alpha:
The Key to Success in 2025

Naveen Gowda
At Crux, we’re constantly evolving our platform to meet the scale and demands of new business. Cassandra gave us strong throughput early on, but as we expanded and introduced new product enhancements, we decided to consolidate our operational datastores into a single system. To simplify operations and keep performance rock-solid without downtime, we chose AlloyDB as our new datastore.

Tackling Our Data Migration Challenge

We approached the migration as an engineering program, not just a database swap. Key goals: zero downtime, no data loss, minimal disruption to our services.

Our Three-Phase Playbook

  1. Dual Writes
    We built our services to write simultaneously to Cassandra and AlloyDB, ensuring AlloyDB stayed in sync from day one.

    We deliberately held off on re-modeling data mid-migration. That choice kept our parity checks simple and let us move quickly. Optimization and normalization can come later - first we wanted a clean cutover.

  2. Data Deprecation
    Instead of shoveling everything over, we scoped carefully - focusing only on active datasets. This not only reduced effort, sped up validation, and cut risk, but also aligned with our broader goal of reducing storage by ensuring only live data is maintained going forward.
  1. Feature-Flagged Reads
    Reads were switched to AlloyDB behind a feature flag. This lets us roll forward - or roll back - instantly, with no impact to customers.

Cleanup: Once we had verified stability, we removed the flags and decommissioned Cassandra entirely.

Crux data migration architecture

Data Validation at Scale

To make sure every one of those 2 billion rows landed correctly, we built two layers of checks:

  • API Request Replays - replaying logged API calls against both systems and comparing responses.

  • Hash-Based Comparisons - snapshotting tables and verifying record integrity at scale.

These safeguards let us confirm accuracy with speed and confidence.

What We Learned

Still, the migration surfaced an important reality of operating at scale: Relational and NoSQL databases behave differently. Cassandra’s eventually consistent model favors availability and hides replication lag behind tunable consistency, while AlloyDB enforces strict transactional guarantees on the primary - making replication lag more visible when reading from read replicas under high load.

Our monitoring flagged the issue immediately when missing fields appeared in records read right after an update. To fix this, we routed critical reads to the primary, validated the solution, and rolled forward without customer impact. Feature-flagged reads were critical - they let us contain risk, recover quickly, and minimize production code changes.

Life at Crux After the Move

The payoff is immediate and ongoing:

  • Cleaner Development - relational integrity means less defensive coding.

  • Sharper Observability - AlloyDB’s tooling gives us better visibility into performance.

  • Unified Data Access - one datastore now powers all of our operational metadata.

The Outcome

  • Migrated 2 billion rows with zero downtime.

  • Maintained 100% data accuracy, zero loss.

  • Consolidated to one operational datastore, cutting cost and complexity.

  • Strengthened overall data quality with relational constraints.

Most importantly, we proved that Crux can execute large-scale migrations without disruption - and deliver the same resilience and precision to our customers’ most critical data pipelines.

Contact us 👉 here or schedule a demo directly to discover how Crux can help you accelerate your external data and onboarding operations.

Conclusion
As we look to the future, Crux remains at the forefront of data innovation. By streamlining integration, expanding access to alternative data, prioritizing governance, and driving sustainability, we’re empowering businesses to make smarter, faster decisions.

2025 is shaping up to be a transformative year, and we’re excited to continue helping organizations unlock the true value of their data. Whether you’re looking to optimize your current processes or explore new opportunities, Crux is here to help you succeed.
Explore Crux’s offerings today and see how we can empower your data-driven decisions.