---
title: "How Buildkite transformed test analytics and cut costs with ClickHouse Cloud"
description: "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."
url: "https://swe.quest/articles/how-buildkite-transformed-test-analytics-and-cut-costs-with-clickhouse-cloud-3d237a53f50d4550"
canonical: "https://clickhouse.com/blog/buildkite-test-analytics"
source: "ClickHouse"
published: "2026-01-27"
difficulty: "easy"
kind: "Case study"
reading_minutes: 8
tags: ["analytics","cost-optimization","stream-processing","ci-cd","testing"]
---

# How Buildkite transformed test analytics and cut costs with ClickHouse Cloud

A post on [ClickHouse](https://swe.quest/sources/clickhouse.md), published 2026-01-27, 8 min read, Case study. Original: [https://clickhouse.com/blog/buildkite-test-analytics](https://clickhouse.com/blog/buildkite-test-analytics)

## Summary

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.

Written by swe.quest, not by the author.

**Difficulty:** Easy: no special background needed; explains what something is and why it matters

## Topics

- [Analytics & OLAP](https://swe.quest/tags/analytics.md) (Data & databases)
- [Cost optimization](https://swe.quest/tags/cost-optimization.md) (Reliability & operations)
- [Stream processing](https://swe.quest/tags/stream-processing.md) (Data & databases)
- [CI/CD](https://swe.quest/tags/ci-cd.md) (Reliability & operations)
- [Testing](https://swe.quest/tags/testing.md) (Engineering practices)

## Prerequisites

- OLAP databases ([easy posts on Analytics & OLAP](https://swe.quest/tags/analytics.md?difficulty=easy))
- Kafka and Flink basics ([easy posts on Queues & messaging](https://swe.quest/tags/messaging.md?difficulty=easy))

## Keywords

ClickHouse Cloud, Buildkite Test Engine, Apache Flink, Kafka, DynamoDB, Aurora Postgres, Apache Iceberg, ClickHouse JSON type

## Related posts

- [Why m3ter chose ClickHouse Cloud](https://swe.quest/articles/why-m3ter-chose-clickhouse-cloud-3bab684612a2e50e.md): ClickHouse · 2025-01-14 · Medium · 16 min read · Analytics & OLAP, Databases, Performance engineering, Cost optimization, Payments & fintech
  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.
- [Appcues delivers personalized customer engagement with ClickHouse Cloud](https://swe.quest/articles/appcues-delivers-personalized-customer-engagement-with-clickhouse-cloud-70117f941c9e140c.md): ClickHouse · 2026-06-18 · Medium · 8 min read · Analytics & OLAP, Databases, Performance engineering, Cost optimization
  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.
- [How Rokt Achieved Real-time Reporting with ClickHouse](https://swe.quest/articles/how-rokt-achieved-real-time-reporting-with-clickhouse-89f752e157ebd50c.md): ClickHouse · 2022-12-06 · Easy · 4 min read · Analytics & OLAP, Databases, Cost optimization, E-commerce
  Rokt replaced an Elasticsearch-backed reporting layer with ClickHouse.
- [How Cloud CIRCUS used ClickHouse to speed up and simplify log analytics](https://swe.quest/articles/how-cloud-circus-used-clickhouse-to-speed-up-and-simplify-log-analytics-2fa577e0b57d75c9.md): ClickHouse · 2025-06-17 · Medium · 6 min read · Analytics & OLAP, Data pipelines, Cloud platforms, Cost optimization, Observability
  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.
- [Contentsquare Migration from Elasticsearch to ClickHouse](https://swe.quest/articles/contentsquare-migration-from-elasticsearch-to-clickhouse-052c118198db3e2f.md): ClickHouse · 2022-10-11 · Medium · 6 min read · Analytics & OLAP, Refactoring & migrations, Distributed databases, Performance engineering, Cost optimization
  Contentsquare replaced 14 Elasticsearch clusters with ClickHouse over a phased migration.

Browse: [Latest posts](https://swe.quest/index.md) · [Topics](https://swe.quest/tags.md) · [Sources](https://swe.quest/sources.md) · [Topic map](https://swe.quest/map.md) · [Site guide (llms.txt)](https://swe.quest/llms.txt)
