Case Study Deskcasestudydesk.com
Cloud Security / SaaSSourced

Case Study: Cloudflare scaled Zero Trust analytics with TimescaleDB, gaining up to 35× faster queries

Cloudflare Case StudySourced & dated by Case Study Desk
Key facts · TL;DR
Company
Cloudflare
Industry
Cloud Security / SaaS
Challenge
Needed analytics/reporting for Zero Trust products without ClickHouse's heavy infrastructure
Headline result
TimescaleDB let a 3-person team ship a Digital Experience Monitoring MVP in under four months with 32.83× compression

Key results

35×
Faster queries (up to)
by query type and time window
32.83×
Compression ratio
1,616 GB → 49 GB
33×
More data retention
same infrastructure cost
<4 mo
DEX MVP delivered
3-person engineering team

The challenge

Cloudflare needed analytics and reporting for its Zero Trust product suite. It evaluated ClickHouse but found it required 5+ infrastructure components optimized for high-throughput batch writes, which was overkill for an initial MVP. Native PostgreSQL partitioning lacked automatic management and required manual aggregation maintenance.

The solution

Cloudflare adopted TimescaleDB, using automatic partition and retention management, continuous aggregates, columnstore compression with sparse minmax indexes, and real-time aggregates to power its Digital Experience Monitoring (DEX) reporting.

The results, in context

Cloudflare reported query performance improvements of 5× to 35× depending on query type and time window, with pre-computed aggregates contributing up to 1,000× gains for some queries. Columnstore compression reached a 32.83× ratio (1,616 GB down to 49 GB), enabling roughly 33× more data retention at the same cost. A 3-person engineering team delivered the DEX MVP in under four months.

Products used

Timescale TimescaleDB