data pipelines

2m read · 483 words

data pipelines

Design

Streaming ingestion

Transactional outbox delivers to CDC

  1. CDC
  2. Idempotent sink
  3. Checkpoint
  4. Dedup in window
  5. Apply watermark (allow late events before closing a window)
  6. DLQ - quarantine records that can't be parsed
  7. Replay and backfill wrong output from retained input

Batch ingestion

Handle

Change merge heavy workloads to append only workloads. It will avoid file rewrites.
Then, create materialized views on the data for read snapshots.

Questions

How to ingest and process over 1 million events per day efficiently?

Roughly: 1m per day = 10events per sec (trivial scale)

Design around durability, replayability, batching, cheap storage

Layers

Colophon 483 words · 2m read
Written as a markdown note in Obsidian. Built into this page by a Python script on 2026-10-02.

Pages