Preparing your design workspace

Loading the problem and your latest saved attempt…

Design a Real-Time Multi-Chain Blockchain Data Pipeline

Design a pipeline that reads blockchain nodes in real time, transforms blocks and transactions, handles reorgs, and runs isolated historical backfills across many chains.

Problem statement

For this exercise, assume a data platform connects to nodes for many blockchains, ingests blocks and transactions close to chain-head time, transforms them into normalized and chain-specific datasets, and serves downstream analytics.

Operators must add chains, replay historical height ranges, diagnose failures, and reduce end-to-end latency. Chains can reorg, nodes can disagree or lag, schemas evolve, and a backfill must not corrupt or starve live ingestion.

Design source checkpoints, canonicality, storage, transformation, publication, backfill, error handling, observability, and recovery.

What to build

  1. The platform continuously reads blocks and transactions from redundant nodes for each configured chain and records source and chain-head progress.
  2. Consumers can read versioned normalized block and transaction datasets whose confirmation and canonicality state is explicit.
  3. Operators can replay a bounded chain and height range with a chosen transformer version without overwriting a healthy live dataset.
  4. The platform detects node disagreement, gaps, malformed data, and reorganizations, then retracts or supersedes affected derived output with complete lineage.

At scale

  • For this exercise, assume 50 chains, aggregate peaks of 100,000 transactions per second, and individual blocks up to 100 MB before normalization.
  • New unconfirmed data should be queryable within five seconds at p95 after a healthy node exposes it; confirmed projections should advance according to each chain's configured finality policy.
  • Retain raw node responses and immutable normalized versions for 90 days and curated confirmed datasets for seven years.
  • Live ingestion must keep its latency target while a backfill reprocesses up to one billion historical transactions, and no published snapshot may mix transformer versions unintentionally.