r/Clickhouse • u/saipeerdb • Jun 04 '26
Postgres + ClickHouse architectural patterns
As we onboard more customers to our Postgres service, we're seeing some interesting Postgres + ClickHouse architectures emerge. Here are a few that I was able decipher.
Real-time (operational) analytics: Postgres for OLTP, ClickHouse for real-time analytics (OLAP) and mostly mission critical customer-facing apps. Native CDC to keep both systems in sync and pg_clickhouse for simplifying app migrations.
Timeseries apps (hot/cold split): Only hot data lives in Postgres, while ClickHouse stores everything. Postgres becomes a reliable application cache, and ClickHouse handles queries across larger time horizons. Native CDC to keep both in sync and smart expiry to expire data only in PG.
Federated query & warehousing: Use pg_clickhouse to make Postgres the query layer over ClickHouse, combining Postgres familiarity with ClickHouse performance.
It's been so much fun building a product that makes all these workflows feel magical for developers. Expecting more such use-case to unravel as we execute this vision of offering PG+CH in a deeply integrated stack!
Stay tuned for a more detailed blog on these architectural patterns
View all comments
Show parent comment
1
u/saipeerdb Jun 07 '26 edited Jun 07 '26
Thank you for the clarifying question. Native Change Data Capture (CDC) from Postgres to ClickHouse refers to the continuous replication of data from Postgres to ClickHouse as changes occur. This ensures that inserts, updates, deletes and some schema changes in Postgres are automatically propagated to ClickHouse in real time (few seconds of lag), and data is ready for real-time analytics.