WalShadow

Low Latency Replication From Postgres to ClickHouse using WalShadow

WalShadow is a low latency replication mechanism from Postgres to ClickHouse. It reads the physical write ahead log directly rather than relying on logical replication, so changes land in ClickHouse within a second of being committed. This allows companies to blend transactional and analytical workloads: Postgres keeps serving the application, ClickHouse serves the analytics, dashboards and AI agents over the same data, and neither gets in the way of the other.

WalShadow in action

This video shows an end to end capital markets example of WalShadow in action. A market making application writes its order book and trades to Postgres, the data is replicated into ClickHouse Cloud, and from there we build live dashboards over the trade flow and let an AI agent answer questions in natural language, all against data that was written seconds earlier.

Watch on its own page

WalShadow Evaluation and Walkthrough

A three part series from our engineering team. We run the open source WalShadow against a million row PostgreSQL 18 database, compare it with PeerDB and Debezium on throughput, latency, CPU, recovery and 34 schema change and operational cases, and then repeat the tests on ClickHouse Cloud with managed WalShadow and a ClickPipe reading the same Managed Postgres at the same time.

Before WalShadow: PeerDB and ClickPipes

WalShadow did not appear from nowhere. ClickHouse acquired PeerDB in 2024 and it became ClickPipes, the managed Postgres CDC on ClickHouse Cloud and the route most production Postgres to ClickHouse pipelines run on today. It uses logical replication, which is mature, works with every managed Postgres and is the baseline WalShadow is measured against in part two of the series. This earlier series covers PeerDB open source, ClickPipes and a demo, and is still the right starting point if you are on a managed Postgres outside ClickHouse Cloud.

Replicating Postgres into ClickHouse?

Whether you are choosing between WalShadow, ClickPipes and Debezium, or already run a pipeline that drifts on schema changes, get in touch and we will run the comparison on your own workload.

Get in touch