HTTP Analytics for 6M requests per second using ClickHouse
Mar 6, 2018Alex Bocharov

Summary
This post details the migration of Cloudflare's HTTP traffic analytics pipeline from a legacy PostgreSQL/Citus-based system to ClickHouse. The new pipeline addresses limitations of the old system, including single points of failure, complex codebase, and high maintenance costs. It leverages ClickHouse for its columnar storage, real-time analytical capabilities, horizontal scalability, and fault tolerance. The post discusses schema design for aggregated data, performance tuning of ClickHouse, and the integration of the Kafka table engine for direct ingestion.
More from the Data Infrastructure & Analytics trail
- Introducing Cloudflare Basin: an open, serverless data platform, now generally available
- Introducing the Billable Usage API: programmatic cost visibility for Cloudflare
- Announcing the Monetization Gateway: charge for any resource behind Cloudflare via x402
- How we built Cloudflare's data platform and an AI agent on top of it
- Iran's Internet is partially restored, Cloudflare Radar data shows