Skip to content

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

ClickHouse 4 min read Case study easyNovice

How BENOCS uses ClickHouse to monitor network traffic for the world’s biggest telcos

BENOCS builds its Flow Analytics network-traffic monitoring for large telcos on ClickHouse, processing dozens of terabytes of asynchronous feeds per day through a self-healing push pipeline that computes results as each feed's data arrives and backfills when late data shows up. Time is the primary key of the MergeTree tables, so DISTINCT queries on it can check data availability across terabytes in seconds, and processing a time range costs the same regardless of table size. ASOF joins handle fuzzy matching between feeds with very different time resolutions by joining on the nearest timestamp instead of an exact one.

Related posts

  • Why Flock Safety turned to ClickHouse for real-time vehicle traffic analytics

    ClickHouse mediumAdept

    Flock Safety replaced a once-daily Redshift, DBT, Prefect and QuickSight SPICE pipeline with ClickHouse Cloud. The old setup had refreshes of up to four hours during which data was unavailable, and SPICE capped datasets at 1TB or 1 billion rows. Before choosing ClickHouse, the team found direct Redshift queries hit concurrency limits, and both Aurora PostgreSQL and S3 with Trino exceeded QuickSight's query timeouts. The new design ingests ML predictions via SNS, Firehose, S3 and ClickPipes (peaking above 20 MB/s, over 1 billion predictions a day) and uses materialized views with uniqState into AggregatingMergeTree tables, so transformation happens on insert and DBT and Prefect are no longer needed. QuickSight now queries ClickHouse directly, with queries finishing in under five seconds, no downtime and longer retention.

  • Data Hive: The story of beehiiv’s journey from Postgres to ClickHouse

    ClickHouse easyNovice

    beehiiv replaced its Postgres-and-Ruby-queue analytics system, which struggled with billions of email events and had multi-hour reporting delays, with a Kafka-fed ClickHouse Cloud pipeline. The design leans on ReplacingMergeTree for idempotent ingestion and event replay, dictionaries to enrich inserts without joins, ephemeral columns for intermediate calculations, materialized views as pre-aggregated shadow tables with alternate sort keys, and window functions for analytics. After six months the system held over 33 billion raw events in 1.5 TiB compressed (13 TiB uncompressed), with 22 ms median and 85 ms average query times. Creators now see send performance within seconds instead of hours.

  • OONI Powers its Measurement of Internet Censorship with ClickHouse

    ClickHouse mediumAdept

    OONI, a non-profit that measures internet censorship through volunteer-run probes, replaced flat files, MongoDB and PostgreSQL with ClickHouse to store measurement metadata in a single 1.4-billion-row ReplacingMergeTree table, while raw JSON stays on S3. Aggregation queries behind the Measurement Aggregation Toolkit, which use countIf grouped by user-chosen dimensions, now run directly on the dataset. This removed the pre-computed counter tables PostgreSQL required. Heavy queries dropped from up to 20 minutes to hundreds of milliseconds, a sample query scanned 59M rows in 600 ms, and on-disk size halved.

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

  • Building a Unified Data Platform with ClickHouse

    ClickHouse mediumAdept

    Synq, a data observability startup, consolidated its user-facing application, internal BI, in-app analytics and ML training data onto a single ClickHouse Cloud cluster after Postgres with a time-series plugin struggled with large backfills. Naive per-message inserts from its Go ingestion service caused part explosions and insert timeouts. Buffer tables fixed that but used too much cluster memory, so the team settled on Async Inserts and handled duplicates with ReplacingMergeTree plus LIMIT 1 BY on a surrogate key. Materialized views feeding query-specific tables with ORDER BY keys matched to access patterns cut scanned data by an order of magnitude and keep API latencies around 100ms, while dbt builds auditing and daily-aggregated analytics tables without separate ETL.

The quest for software engineering knowledge.

Look:
Layout: