Close Menu
CrypThing
  • Directory
  • News
    • AI
    • Press Release
    • Altcoins
    • Memecoins
  • Analysis
  • Price Watch
  • Price Prediction
Facebook X (Twitter) Instagram Threads
CrypThingCrypThing
  • Directory
  • News
    • AI
    • Press Release
    • Altcoins
    • Memecoins
  • Analysis
  • Price Watch
  • Price Prediction
CrypThing
Home»Altcoins»Paxos Engineers 371ms Cutover for 21TB Postgres Ledger Migration
Altcoins

Paxos Engineers 371ms Cutover for 21TB Postgres Ledger Migration

adminBy adminMarch 23, 20263 Mins Read
Share Facebook Twitter Pinterest LinkedIn Tumblr Email Copy Link Bluesky Reddit Telegram WhatsApp Threads
Paxos Engineers 371ms Cutover for 21TB Postgres Ledger Migration
Share
Facebook Twitter Email Copy Link Bluesky Reddit Telegram WhatsApp

Iris Coleman
Mar 23, 2026 14:21

Paxos reveals how it partitioned a 21TB crypto ledger table with zero downtime, achieving a 371ms cutover while crypto markets ran 24/7.

Paxos, the stablecoin infrastructure company behind PYUSD and USDP, has published technical details on how its engineering team partitioned a 21-terabyte ledger database table without taking systems offline—a feat that required just 371 milliseconds for the final cutover while crypto markets continued trading around the clock.

The company’s ledger table had grown to roughly two-thirds of Aurora’s per-table size limit, giving engineers about a year before writes would start failing. For a firm processing stablecoin transactions that can’t tolerate data loss or delays, traditional migration approaches involving extended maintenance windows weren’t viable.

The Technical Approach

Rather than copying billions of rows into a new structure—the standard partitioning playbook—Paxos built the partitioned architecture around the existing table. The original table became a “history” partition while new time-range partitions caught incoming data. To external systems, nothing changed; Postgres handled routing internally.

The catch? Postgres needs to verify every row satisfies partition constraints before attaching a table, which means a full table scan. On a 21TB table, that’s not quick.

Paxos split this into two phases. First, they added the constraint as NOT VALID—a fast operation that skips verification. Then they ran VALIDATE CONSTRAINT separately, allowing reads and writes to continue during the scan.

Nine Hours of Pain

The validation scan took just over nine hours. During that time, the lock prevented autovacuum from cleaning up dead tuples, causing tail latency to climb steadily. The first attempt failed when write spikes exceeded timeout thresholds.

On the second attempt, Paxos coordinated with market makers to pause trading activity temporarily and relaxed timeout thresholds. P50 latency stayed relatively flat, but P95/P99 degraded significantly as dead tuples accumulated.

“In hindsight, this was the most operationally demanding part of the migration—not the cutover, but the scan that made the cutover possible,” the engineering team wrote.

Why This Matters for Crypto Infrastructure

The migration highlights a growing challenge for crypto infrastructure providers. Unlike traditional finance with scheduled maintenance windows, crypto markets run continuously. Database tables backing ledger systems can’t simply go offline for rebuilding.

Paxos also tackled a subtle partitioning gotcha: uniqueness constraints across partitions. In Postgres, unique constraints on partitioned tables only work globally if they include the partition key. Otherwise, two inserts with identical idempotency keys could land in different partitions and both succeed—a disaster for a financial ledger that could apply the same transaction twice.

The solution involved idempotency checks outside the balance-update lock, adding less than 5 milliseconds of latency in internal testing.

Testing at Production Scale

Staging environments couldn’t replicate the problem. Paxos used Aurora production cloning to create a full-sized test database, then built a “reverse history” SQL generator that replayed real transaction patterns backward to avoid triggering overdraft failures.

The approach reflects broader industry movement toward zero-downtime database migrations. Similar techniques have been documented for tables ranging from 1.5TB to multi-terabyte scale, often using views to abstract transitions from applications.

For Paxos, the partitioned structure now enables one-liner archiving through DETACH PARTITION and removes the looming size ceiling as a constraint. The company says it’s beginning a series of posts on engineering challenges behind its infrastructure—a signal that stablecoin operators are increasingly competing on technical credibility alongside regulatory compliance.

Image source: Shutterstock

21TB 371ms Cutover engineers Ledger Migration Paxos Postgres
Share. Facebook Twitter Pinterest LinkedIn Tumblr Telegram Email Copy Link Bluesky WhatsApp Threads
Previous ArticleBitmine Immersion Technologies (BMNR) Announces ETH Holdings Reach 4.661 Million Tokens, And Total Crypto And Total Cash Holdings Of $11.0 Billion
Next Article Startup Gimlet Labs is solving the AI inference bottleneck in a surprisingly elegant way
admin

Related Posts

AAVE Price Prediction: Targets $114-120 Recovery by April 2026

March 22, 2026

NEAR Price Prediction: Protocol Tests $1.38 Resistance as Bulls Eye March Breakout

March 21, 2026

Circle Skills Gives AI Agents Blueprint for Building USDC Cross-Chain Apps

March 20, 2026
Trending News

Anthropic’s Claude Opus 4.5 Launch Signals AI Arms Race Intensifying

January 31, 2026

MEXC Maintains Strong Financial Stability With Over 100% Proof Of Reserve Across Major Assets

October 29, 2025

EigenLayer (EIGEN) Surges 12% as Technical Indicators Flash Bullish Signals

September 13, 2025

Nasdaq-listed Arrive AI to pay staff and vendors in Bitcoin, eyes token launch

August 25, 2025
About Us

At crypthing, we’re passionate about making the crypto world easier to (under)stand- and we believe everyone should feel welcome while doing it. Whether you're an experienced trader, a blockchain developer, or just getting started, we're here to share clear, reliable, and up-to-date information to help you grow.

Don't Miss

Reporters found that Zerebro founder was alive and inhaling his mother and father’ home, confirming that the suicide was staged

May 9, 2025

Openai launches initiatives to spread democratic AI through global partnerships

May 9, 2025

Stripe announces AI Foundation model for payments and introduces deeper Stablecoin integration

May 9, 2025
Top Posts

Anthropic’s Claude Opus 4.5 Launch Signals AI Arms Race Intensifying

January 31, 2026

MEXC Maintains Strong Financial Stability With Over 100% Proof Of Reserve Across Major Assets

October 29, 2025

EigenLayer (EIGEN) Surges 12% as Technical Indicators Flash Bullish Signals

September 13, 2025
  • About Us
  • Privacy Policy
  • Terms and Conditions
  • Disclaimer
© 2026 crypthing. All Rights Reserved.

Type above and press Enter to search. Press Esc to cancel.