Catalogue / uber-2021-ledgerstore-docstore-migration

Uber moves LedgerStore's 250 billion ledger records from DynamoDB to its in-house Docstore with shadow writes, dual reads and manifest comparison

Uber, 2021. LedgerStore (immutable ledger database) storage backend.

Organisation
Uber
Evidence
Reported from production
Source
How Uber Migrated Financial Data from DynamoDB to Docstore

Uber Blog, published 2021-11-10

Records

Decision#d1

Replace DynamoDB as LedgerStore's backend with the in-house Docstore, records first and metadata and indexes later

Decision#d2

Backfill history window by window from cold storage with checkpoints, not in one Spark job

Decision#d3

Shadow writes to the secondary database asynchronously and repair misses with a timer job

Decision#d4

Serve reads during the migration by reading both databases concurrently and merging

Decision#d5

Promote the new database only after sealed manifests match, then drain reads and writes from the old one in steps

Decision#d6

Compute sealing checksums from the database change stream in Spark batches rather than Flink

Sign in to read what was chosen, what was rejected and what it cost, each with its place in the source. An account is free. The job-queue cards are open without one.