London Meetup Report: How Cloudflare Processes Hundreds of Millions of Rows per Second with ClickHouse
Cloudflare runs more than a thousand active ClickHouse replicas ingesting hundreds of millions of sampled rows per second. The deployment powers HTTP/DNS analytics, bot management, Workers runtime analytics, customer dashboards and Radar. Its 184 dictionaries consumed over 15 TiB of memory, with the largest above 20 GiB. Switching from the 'hashed' to the 'hashed array' layout cut that footprint by over 4x. A ClickHouse Dictionary Dumper builds dictionary bundles in Kubernetes cronjobs and ships them via object storage, decoupling replicas from load on upstream systems.
Related posts
- How Exabeam uses ClickHouse for scalable, searchable security analytics
ClickHouse mediumAdept
Exabeam runs its security analytics platform on ClickHouse Cloud across 10 regions, ingesting up to 1.2M events/sec per region (80B+ daily, 3.5 PB raw compressed to 200 TiB), with compute-compute separation that isolates write, merge and read nodes. Key optimizations: consolidating commonly queried fields into one wide column cut query latency from 8s to under 1s, folding sparse fields into a key-value column shrank the schema from 1,150 to 250 columns and raised throughput from 100K to 250K events/sec on three nodes, and ingestor tuning (Jackson over Gson, larger Gzip buffers, better serialization) cut memory 45%. Splitting backdated events into a separate backlog pipeline reduced part-file explosion and aborted merges, and replacing N-gram indexes with token-based indexes lowered hardware cost since regex queries were under 1% of workload.
- Singapore Meetup Report: How ClickHouse Powers Ahrefs, the World's Most Active Web Crawler
ClickHouse easyNovice
Ahrefs moved its web-crawler and analytics storage from a custom system built on Quantcast File System plus Elasticsearch to ClickHouse in 2019. It now runs hundreds of self-hosted ClickHouse hosts with a geo-replicated main cluster, where replicas are dedicated to read-heavy or write-heavy work and tables hold trillions of rows. The team buffers inserts to cut merge work and uses FETCH/ATTACH to move parts between servers. Ahrefs also upstreamed mark compression, which splits marks into blocks with a custom compression scheme and removes mutexes, cutting mark-cache memory by 3-6x.
- Join me if you can: ClickHouse vs. Databricks vs. Snowflake - Part 2
ClickHouse mediumAdept
Replacing fact-to-dimension joins with in-memory dictionaries in ClickHouse Cloud sped up a 17-query join benchmark over 1.4 billion rows by 1.9–3.5× in total runtime, up to 6.6× on individual queries, and cut cost by up to 60%. The Locations table becomes a complex_key_hashed dictionary for String-key lookups. The Products table becomes a range_hashed dictionary that resolves time-versioned rows with a hash map plus binary search over date ranges, provided the source has no overlapping ranges per key. Queries change only by swapping JOINs for dictGet calls, and the gains grew as the cluster scaled from 2 to 8 nodes.
- Fast, Feature Rich and Mutable : ClickHouse Powers Darwinium's Security and Fraud Analytics Use Cases
ClickHouse easyNovice
Darwinium, a digital risk and fraud platform, chose ClickHouse to back interactive security and fraud analytics over large, wide, long-retention event data. Its reasons were simpler ingestion than immutable HDFS-style pipelines, AggregatingMergeTree tables that maintain rollups without a separate pipeline, and a single server absorbing thousands of writes per second on ~3k-column rows at under 5% CPU. Map, Array and JSON types absorb fast-changing model signals without schema churn, and tiered SSD-to-S3 retention, sharding and replication handle cost and availability. Group-by queries on a 40M-row, ~3k-column table under varying analyst concurrency are charted as evidence of sub-second interactive performance.
- Appcues delivers personalized customer engagement with ClickHouse Cloud
ClickHouse mediumAdept
Appcues moved its customer-facing product analytics and segmentation from Snowflake plus Airflow rollups to ClickHouse Cloud, covering 1.31 PB of data and over 1 billion user profiles. Events flow through Kafka into a deduplicating consumer. Materialized views replaced the Airflow pre-aggregation jobs, and SharedReplacingMergeTree with argMax instead of FINAL resolves the latest profile state. Lightweight deletes in ClickHouse 25.6 cleared a GDPR deletion backlog. P95 query latency fell from 20+ seconds to under 2, ingestion-to-query latency dropped from 10+ minutes to about 5 seconds, and analytics spend fell 23%.