How Buildkite transformed test analytics and cut costs with ClickHouse Cloud
Buildkite Test Engine replaced a Kafka/Flink pipeline that pre-aggregated test metrics into Postgres, DynamoDB and Iceberg with on-demand queries against ClickHouse Cloud, letting customers group and filter billions of test executions by arbitrary JSON tags in real time. ClickHouse's JSON type, which creates a column per tag key, and its high ingest rate (25K events/sec sustained, 12B events/month, 70B rows) were the deciding factors over Druid and Pinot. While ingestion quadrupled, net infrastructure spend fell by five figures per month. The savings came from scaling Flink down more than 60%, retiring DynamoDB and halving Aurora capacity, which works out to roughly $8 saved for every $1 spent on ClickHouse.
Related posts
- Why m3ter chose ClickHouse Cloud
ClickHouse mediumAdept
m3ter, a usage-based billing service, picked ClickHouse Cloud for its usage-data plane after proof-of-concept tests against Snowflake, Firebolt, Redshift and Aurora Postgres. Usage events had to stay unaggregated so bills could be recalculated after retrospective config changes. The tests scored each database on ingest rate, deduplication, query concurrency, export, deletion, scalability and cost. ClickHouse delivered 10x ingest, 17x QPS, 11.4x compression, sub-100ms queries (144ms vs Redshift's 3927ms at similar cost) and ~85% cost savings. Its weak spots were deduplication, which relies on background merges or FINAL and so needs pre-insert dedup, and heavier deletes than OLTP stores.
- 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%.
- How Rokt Achieved Real-time Reporting with ClickHouse
ClickHouse easyNovice
Rokt replaced an Elasticsearch-backed reporting layer with ClickHouse. Elasticsearch lacked flexible group-by and filtering, had no S3 loading or joins, required JSON queries, and forced full re-ingestion whenever a label changed. After ruling out Pinot, Druid, Snowflake, StarRocks and Citus, the team benchmarked ClickHouse against Redshift: ClickHouse was about 3x cheaper, handled up to 200 queries per second with a maximum query time of six seconds, and stored 500 GB of gzipped Parquet in roughly the same space, about one sixth of the Elasticsearch footprint. The current self-managed setup runs ClickHouse in an autoscaling group with ZooKeeper behind network load balancers, and Rokt plans to move to ClickHouse Cloud to offload replication, sharding and backups.
- How Cloud CIRCUS used ClickHouse to speed up and simplify log analytics
ClickHouse mediumAdept
Cloud CIRCUS replaced Amazon Athena with a self-managed ClickHouse instance on a single 4 vCPU / 32 GB EC2 machine to analyze CloudFront access logs from 2,000+ BlueMonkey customer sites. All distributions now share a single MergeTree table partitioned by day and sorted by host_header and date. Logs load from S3 via the s3 table function, run by EventBridge-scheduled ECS jobs that fan out across 20 Fargate tasks, which cut ingestion from hours to under 30 minutes while keeping memory below 80%. A per-site query dropped from about 16 s to 0.043 s, and a cross-site aggregation over 470M rows finishes in under 9 s, at a flat cost of about $300/month versus Athena's unpredictable per-scan billing.
- Contentsquare Migration from Elasticsearch to ClickHouse
ClickHouse mediumAdept
Contentsquare replaced 14 Elasticsearch clusters with ClickHouse over a phased migration. They first built a new product on ClickHouse, then shadowed production queries endpoint by endpoint to compare results, then moved customers one at a time over six months with zero regressions. The result was 11x lower infrastructure cost, 10x better p99 latency, and longer query windows and retention. Key design pieces were a Kafka-fed ingestion service (clickin) that writes shard-aligned data in ClickHouse native format via clickhouse-local, and an AST-based query optimizer that propagates partition/sort-key conditions and distributed_group_by_no_merge, merges subqueries, and gave a 10x speedup on the slowest 5% of queries.