How One Developer Uses Postgres and ClickHouse Together for Uptime Monitoring
A developer built an uptime monitoring platform that splits data across two databases based on a single rule: whether a row will ever be changed after it is written. Mutable data such as monitor configurations, incidents, and team settings live in Postgres, which handles transactions, constraints, and concurrent edits. Immutable check results — generated every 20 seconds per monitor per region — are stored in ClickHouse, an append-only column store suited for billions of rows. ClickHouse performance is further improved through careful choices like Enum8 types, LowCardinality strings, and DoubleDelta compression for predictable timestamp intervals. The author argues the choice is not about which database is faster, but about matching each store to the write pattern of the data it holds.
This is an AI-generated summary. ShortSingh links to the original source for the complete article.
Discussion (0)
Log in to join the discussion and vote.
Log in