Payments

What is ledger sharding?

Ledger sharding is the practice of dividing a financial ledger database into horizontal partitions called shards, where each shard stores a subset of the total ledger data and can be processed independently. Rather than a single database handling all transactions and balances, the ledger is split across multiple smaller databases that work in parallel.

Sharding originates from general database engineering and is applied to ledgers specifically to address the performance and storage constraints that emerge as transaction volumes scale. It is different from blockchain sharding, which distributes a decentralized network across nodes. Ledger sharding applies to centralized financial databases in fintech and banking infrastructure.

What are the types of ledger sharding?

The two most common approaches to sharding a financial ledger differ in how they decide which shard a given record belongs to.

Geographic sharding partitions data based on geographic markers. A platform operating across multiple regions might shard by APAC, EMEA, and Americas, or by time zone clusters within a single country. This keeps latency low for regional operations and allows each shard to comply with local data residency requirements where relevant.

Account ID-based sharding uses a key derived from the account identifier to determine which shard receives each record. A common approach is to use a prefix or hash of the account ID to route records consistently to the same shard. This distributes load evenly across shards without geographic logic.

Both approaches can be combined. A platform might shard first by geography, then by account ID within each regional shard.

Why do fintechs shard their ledgers?

There are three main reasons a team chooses to shard a ledger:

  • Performance scaling: Distributing transactions across shards allows the ledger to process more operations simultaneously, increasing overall throughput beyond what a single database can handle
  • Storage management: Each shard holds less data than a monolithic ledger would, reducing pressure on any single database and making it easier to manage storage growth over time
  • Fault isolation: If one shard experiences a failure, it does not necessarily take down the entire ledger. Faults are contained to the affected shard while others continue operating

What are the challenges of ledger sharding?

Sharding a ledger introduces complexity that a single-database architecture avoids. There are four core challenges:

  • Atomicity: Double-entry bookkeeping requires every debit to have a matching credit. When those two sides of a transaction land on different shards, maintaining the all-or-nothing guarantee becomes harder. A partial failure mid-transaction can leave one shard debited and the other uncredited, breaking the fundamental accounting invariant. Cross-shard transactions require distributed transaction protocols to handle this safely.
  • Balance aggregation: Querying a customer's total balance across shards requires collecting data from multiple databases and summing it. In an asynchronous system, the results may not reflect the same instant in time, making accurate real-time balance checks difficult. This creates problems for compliance checks and financial reporting that require precise balance figures.
  • Balance drift detection: Standard monitoring tools that check for balance mismatches work well on a single database. Across shards, detecting subtle drifts requires coordinating checks across partitions, which is harder to implement and slower to surface issues.
  • Operational complexity: Schema migrations, debugging, and incident response all become more complex across a distributed ledger. A bug that manifests across shard boundaries is harder to diagnose than one contained within a single database.

When should a ledger be sharded?

Not all ledgers need sharding. The decision depends on where the platform sits on the volume curve.

Shard when:

  • A single ledger database is hitting performance ceilings, such as latency degrading or write throughput maxing out
  • The ledger's accounts are naturally partitionable by region, business unit, or another clean boundary
  • The platform has the engineering capacity to manage distributed database complexity

Do not shard when:

  • Transaction volume is still manageable on a single node or cluster
  • Cross-account atomicity is a core product requirement and the team cannot tolerate the complexity of distributed transactions
  • The operational overhead of managing multiple shards outweighs the performance benefit at current scale

Most platforms start with a single ledger database and introduce sharding as volume grows rather than building a sharded architecture from day one. The added complexity of sharding is only worth absorbing when the performance constraints of a single database become genuinely limiting. Payment reconciliation and balance aggregation across shards also require additional tooling, which should factor into the build vs. buy decision when evaluating ledger infrastructure options.

Continue learning

Ledger sharding

Category
Read more

Reconciliation API

Category
Read more

ACH debit

Category
Read more

Ledger database

Category
Read more

Stablecoin reserves

Category
Read more

Transaction reconciliation

Category
Read more

Closed loop payments

Category
Read more

Open loop payments

Category
Read more

Stablecoin sandwich

Category
Read more

ACH reversal

Category
Read more

Layer 2 blockchain

Category
Read more

Layer 1 blockchain

Category
Read more

FedNow API

Category
Read more

eCheck

Category
Read more

Payment controls

Category
Read more

Faster Payment System (FPS)

Category
Read more

Request for payment (RfP)

Category
Read more

Stablecoin orchestration

Category
Read more

ACH API

Category
Read more

BACS

Category
Read more

ACH payment returns

Category
Read more

Stablecoin yield

Category
Read more

Cash float

Category
Read more

BAI2

Category
Read more

Compliance risk management

Category
Read more

ACH transfer limit

Category
Read more

Deposit Account Control Agreement (DACA)

Category
Read more

Currency Transaction Report (CTR)

Category
Read more

Crypto faucet

Category
Read more

FBO account

Category
Read more

OTC trading

Category
Read more

Virtual IBAN

Category
Read more

Third-party payment

Category
Read more

Ledger balance

Category
Read more

Issuer Identification Number (IIN)

Category
Read more

CASPs (Crypto-Assets Service Providers)

Category
Read more

Section 314(b)

Category
Read more

OFAC (Office of Foreign Assets Control)

Category
Read more

Penny test

Category
Read more

Cash pooling

Category
Read more

Money transmission

Category
Read more

Core banking

Category
Read more

Sweep account

Category
Read more

Flow of funds

Category
Read more

Cash application

Category
Read more

Bank Reconciliation

Category
Read more

Clearing account

Category
Read more

Cash reconciliation

Category
Read more

Take rate

Category
Read more

CHAPS (Clearing House Automated Payment System)

Category
Read more

The Clearing House (TCH)

Category
Read more

A2A payments

Category
Read more

Bulk Electronic Clearing System (BECS)

Category
Read more

Real-time gross settlement (RTGS)

Category
Read more

Same-day ACH

Category
Read more

ACH return codes

Category
Read more

PYUSD (PayPal USD)

Category
Read more

Sort Code

Category
Read more

Atomic settlement

Category
Read more

Payment orchestration

Category
Read more

T2

Category
Read more

Financial Crimes Enforcement Network (FinCEN)

Category
Read more

Unified Payments Interface (UPI)

Category
Read more

Programmable money

Category
Read more

QR code payments

Category
Read more

CHIPS (Clearing House Interbank Payments System)

Category
Read more

Nacha

Category
Read more

FedACH

Category
Read more

XRP (Ripple)

Category
Read more

EURC (Euro Coin)

Category
Read more

USDC (USD Coin)

Category
Read more

USDT (Tether)

Category
Read more

Fedwire

Category
Read more

On-Demand Liquidity (ODL)

Category
Read more

Payment ledger

Category
Read more

Treasury management

Category
Read more

Blockchain

Category
Read more

Liquidity management

Category
Read more

Virtual Asset Service Provider (VASP)

Category
Read more

Fiat money

Category
Read more

Custodial vs Non-Custodial Wallets

Category
Read more

On/Off Ramps

Category
Read more

Payment reconciliation

Category
Read more

Payment Service Provider (PSP)

Category
Read more

Payment API

Category
Read more

Ethereum Virtual Machine (EVM)

Category
Read more

Stablecoin

Category
Read more

KYC (Know Your Customer)

Category
Read more

DEX (Decentralized Exchange)

Category
Read more

CEX (Centralized Exchange)

Category
Read more

Virtual account

Category
Read more

SPEI (Sistema de Pagos Electrónicos Interbancarios)

Category
Read more

Pix (Brazilian Instant Payment)

Category
Read more

RTP (Real-Time Payments)

Category
Read more

SWIFT

Category
Read more

ACH (Automated Clearing House)

Category
Read more

Electronic Funds Transfer (EFT)

Category
Read more

Wire transfer

Category
Read more

SEPA (Single Euro Payments Area)

Category
Read more

FedNow

Category
Read more
Download Due & Move Money Without Borders