---
title: "How Rokt Achieved Real-time Reporting with ClickHouse"
description: "Rokt replaced an Elasticsearch-backed reporting layer with ClickHouse."
url: "https://swe.quest/articles/how-rokt-achieved-real-time-reporting-with-clickhouse-89f752e157ebd50c"
canonical: "https://clickhouse.com/blog/nyc-meetup-report-real-time-slicing-and-dicing-reporting-with-clickhouse"
source: "ClickHouse"
published: "2022-12-06"
difficulty: "easy"
kind: "Case study"
reading_minutes: 4
tags: ["analytics","databases","cost-optimization","ecommerce"]
---

# How Rokt Achieved Real-time Reporting with ClickHouse

A post on [ClickHouse](https://swe.quest/sources/clickhouse.md), published 2022-12-06, 4 min read, Case study. Original: [https://clickhouse.com/blog/nyc-meetup-report-real-time-slicing-and-dicing-reporting-with-clickhouse](https://clickhouse.com/blog/nyc-meetup-report-real-time-slicing-and-dicing-reporting-with-clickhouse)

## Summary

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.

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)
- [Databases](https://swe.quest/tags/databases.md) (Data & databases)
- [Cost optimization](https://swe.quest/tags/cost-optimization.md) (Reliability & operations)
- [E-commerce](https://swe.quest/tags/ecommerce.md) (Domains)

## Prerequisites

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

## Keywords

ClickHouse, Elasticsearch, Redshift, Rokt, Kafka, ClickHouse Cloud, Apache Pinot, Druid

## Related posts

- [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.
- [Do you still need Elasticsearch for log analytics? ClickHouse says no.](https://swe.quest/articles/do-you-still-need-elasticsearch-for-log-analytics-clickhouse-says-no-7011cded5588b0ad.md): ClickHouse · 2026-04-23 · Medium · 22 min read · Search, Analytics & OLAP, Observability, Performance engineering, Storage engines
  ClickHouse's redesigned inverted-index full-text search feeds matches directly into its vectorized analytical engine, and on a reproducible OpenTelemetry log benchmark at 1B, 10B and 50B rows it ran a nine-query search-plus-aggregation suite 2-6x faster than Elasticsearch, with a much smaller storage footprint.
- [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.
- [SIEM made simpler: How Huntress improved performance and slashed costs with ClickHouse](https://swe.quest/articles/siem-made-simpler-how-huntress-improved-performance-and-slashed-costs-with-0c0de3a6602cf479.md): ClickHouse · 2024-11-19 · Medium · 6 min read · Analytics & OLAP, Threat detection, Data pipelines, Cost optimization
  Huntress rebuilt its SIEM on ClickHouse Cloud after finding Elasticsearch too expensive (over $70,000/month) and Postgres too awkward to scale.
- [Didi Migrates from Elasticsearch to ClickHouse for a new Generation Log Storage System](https://swe.quest/articles/didi-migrates-from-elasticsearch-to-clickhouse-for-a-new-generation-log-storage-50fcb56512cab39a.md): ClickHouse · 2024-04-19 · Medium · 11 min read · Analytics & OLAP, Observability, Storage engines, Scaling, Cost optimization
  Didi replaced Elasticsearch with ClickHouse for petabyte-per-day log and trace storage, cutting machine cost by 30% and speeding up queries about 4x on a 400+ node single-replica deployment peaking at 40 GB/s writes and ~200 QPS.

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)
