ClickHouse Cloud: Gumlet’s key to processing billions of video and image requests daily
Gumlet, which serves over 2 billion video and image requests daily, moved its video analytics (900 billion rows) from BigQuery to ClickHouse Cloud. The drivers were BigQuery's per-query and ingestion pricing, its 100-concurrent-query limit, and billing on logical storage size. The new pipeline uses a Go service that batches inserts at 20,000 rows, direct S3 log ingestion, and materialized views that pre-aggregate playback and rebuffer metrics. Lessons include choosing primary keys carefully up front (changing one means recreating the table), using LowCardinality and Delta compression, preferring DateTime over DateTime64, and swapping in compatible tools such as Metabase.
Related posts
- Why BigQuery can’t match ClickHouse Cloud for real-time analytics
ClickHouse mediumAdept
In the CostBench benchmark, ClickHouse Cloud and BigQuery ingest 113.2 billion stock quotes at a target of 1M rows/s while aggregate and drill-down queries run continuously, and ClickHouse Cloud scores 438× better end-to-end performance per dollar under BigQuery Capacity pricing and 512× under On-demand. ClickHouse wins all three components: preparation cost ($28.69 vs $243–265), normalized query cost (~$0.05 vs $4.75–24.80) and accumulated query runtime (58 seconds vs 49 minutes). The gap is traced to the fresh-data path. ClickHouse ingest nodes sort raw data and compute incremental materialized-view aggregates from the same async-insert flush. BigQuery's Storage Write API, automatic reclustering and MV refresh (minimum one-minute interval) each advance separately, which leaves more work for queries.
- ClickHouse vs BigQuery: Using ClickHouse to Serve Real-Time Queries on Top of BigQuery Data
ClickHouse mediumAdept
ClickHouse can sit alongside BigQuery to serve sub-second, high-concurrency analytical queries for real-time applications, while BigQuery remains the warehouse for ad-hoc deep analysis. The guide maps BigQuery types to narrower ClickHouse types and codecs, and avoids Nullable columns to save storage. It bulk-exports the public Ethereum dataset to GCS as sharded gzip CSV, then loads it in parallel with s3Cluster and parallel_distributed_insert_select; the 16.5M-row blocks table imports in about 23 seconds. It also covers continuously appending new rows using BigQuery scheduled queries and Google Dataflow/Apache Beam, keyed on a time dimension.
- Why ClickHouse Cloud wins at real-time analytics
ClickHouse mediumAdept
In the CostBench streaming benchmark (113.2 billion stock quotes ingested at about 1M rows/s while queries ran), ClickHouse Cloud scored 412× to 1,996× better end-to-end performance per dollar than Snowflake, Databricks, BigQuery and Redshift Serverless. Its lead comes from sorting data and computing incremental materialized-view pre-aggregations in memory at insert time, so summaries never lag behind raw data. Background part merges then keep combining the mergeable aggregation states. Ingestion and merging are parallelized across nodes, cores and SIMD lanes, and a 4-core ingest service prepared all the data for $28.69 with 14.4× compression, while the other systems needed separate asynchronous refresh stages that lagged and cost $79–$696.
- HIFI’s migration from BigQuery to ClickHouse
ClickHouse mediumAdept
HIFI moved music royalty analytics from BigQuery to ClickHouse because BigQuery's per-query pricing discouraged exploratory use and slot reservations didn't fit a startup's shifting workloads. Dashboard loads for accounts with 25M+ rows dropped from up to 30 seconds (with timeouts) to a few seconds. The migration surfaced ClickHouse-specific join behaviour: bulk updates work better via a Join engine table and joinGet, and LEFT joins from PostgreSQL to large ClickHouse tables can exhaust memory because the hash join loads the right side into memory, which pre-aggregating the right side with GROUP BY fixes (under 1 second). A community Node.js client also silently converted NULLs to empty strings on insert, which they patched.
- How ClickHouse Cloud enabled LaunchDarkly to build and ship features faster
ClickHouse mediumAdept
LaunchDarkly replaced Kinesis/Flink/Lambda streaming pipelines and an S3/Parquet/Athena batch warehouse with ClickHouse Cloud. Raw events are now queried directly, and materialized views are added only where needed. The system ingests about 6 PB/month of uncompressed JSON through an HTTP API, S3 protobuf batches, Lambda-converted Parquet and INSERT INTO SELECT. Data is fresh in about 30 seconds with roughly 100 days of retention, high-cardinality per-user analytics became practical, and seven product features now run on it. Lessons learned: don't coarsen ORDER BY keys, drop OLTP habits (for example, use two-stage queries for latest-N), and plan for workload isolation as adoption outpaces the platform team. Next steps are ingest-time joins for Release Guardian regression detection and migrating Elasticsearch workloads.