Cloudflare

How TimescaleDB helped us scale analytics and reporting

Jul 8, 2025Robert Cepa
How TimescaleDB helped us scale analytics and reporting
SummaryAI, from the source post

This post details the decision to use TimescaleDB, a PostgreSQL extension, over ClickHouse for the analytics plane of Cloudflare's Digital Experience Monitoring (DEX) product. The author emphasizes simplicity and avoiding unnecessary complexity, advocating for starting with fewer components. The initial DEX architecture used PostgreSQL for configuration and a simple table for logs. When scaling the analytics plane, ClickHouse was considered but deemed overly complex for the MVP's needs (millions of small inserts every 2 minutes). TimescaleDB was chosen as a simpler, more familiar solution that could handle the time-series data effectively within the existing PostgreSQL ecosystem. The post also discusses the importance of multicolumn index order in PostgreSQL for time-series workloads and provides an example of a typical query and the corresponding index design.

More from the Data Infrastructure & Analytics trail