Skip to content

In development. Expect rough edges and changes. The source code is not public yet.

ClickHouse 4 min read Case study easyNovice

Seattle Meetup Report: Self-Service Data Analytics for Microsoft’s Biggest Web Properties with ClickHouse

Microsoft's WebXT team built Titan, an internal self-service analytics tool on ClickHouse and Apache Superset that serves over 2,500 monthly users and 100,000+ daily queries across Bing, Edge, MSN and other properties, replacing Adobe Analytics and Interana and saving millions in license fees. The architecture combines ClickHouse clusters managed with ZooKeeper, an API layer for authentication and pre-caching, and a customized Superset with sampled/raw data switching. Query optimizers for joins (10x faster), early condition filtering and time-zone range selection improved performance, and ZSTD encoding cut storage about 50% on some tables at the cost of slower queries.

Related posts

  • Trillabit Utilizes the Power of ClickHouse for Fast, Scalable Results Within Their Self-Service, Search-Driven Analytics Offering

    ClickHouse easyNovice

    TrillaBit moved its search-driven BI platform from Apache Solr to ClickHouse after Solr proved weak at high-volume aggregation, compression, SQL maturity and joins, and chose ClickHouse over Snowflake on cost and the ability to self-host. The team relies on integration table engines (MySQL/Postgres for metadata lookups, Kafka for streaming IoT data, S3), ReplacingMergeTree to apply delta updates without duplicates, AggregatingMergeTree for incremental aggregation, and views that flatten raw Airbyte JSON with JSON_VALUE. It is now moving to ClickHouse Cloud to offload cluster management. Much of the post is a product pitch for Quick Intelligence's dashboards, embedding and ABAC-based multi-tenancy.

  • Better Analytics at Scale with Trackingplan and ClickHouse

    ClickHouse mediumAdept

    Trackingplan, which tests web, mobile and backend analytics by sampling events sent to tools like Google Analytics and Segment, moved from DynamoDB with PySpark-precomputed statistics to ClickHouse Cloud so it could answer unforeseen ad hoc queries on raw data. After evaluating Snowflake, BigQuery, Redshift and Athena, the team found ClickHouse 20x faster than Athena and cheaper than the pay-per-scan options for a continuous query workload. Materialized views, backfilled via INSERT INTO SELECT, precompute the common dashboard statistics. Customer-ID ordering keys handle multi-tenancy and ad hoc queries across about 30 billion rows growing 400% per year, and Map/Array types hold dynamic properties.

  • 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.

  • Trade secrets: How Coinhall uses ClickHouse to power its blockchain data platform

    ClickHouse easyNovice

    Coinhall, an omnichain trading terminal aggregating swap data from 23 blockchains, moved from BigQuery (about 2-second queries, thousands of dollars per month) to QuestDB and then to self-hosted ClickHouse. In Coinhall's comparison against Rockset, SingleStore and Snowflake, ClickHouse ran candlestick queries in 20 ms, latest-price queries in 8 ms and ASOF JOINs in 50 ms, on a 4 vCPU / 16 GB server costing about $50 a month. After migrating, the team tuned queries around sparse primary indexes and replaced full-table LIMIT BY scans with aggregating tables fed by materialized views. They also avoided or simplified sort-merge joins.

  • 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.

The quest for software engineering knowledge.

Look:
Layout: