---
title: "How AdGreetz Processes Millions of Daily Ad Impressions with ClickHouse Cloud"
description: "AdGreetz moved its ad impression analytics from AWS Athena to Snowflake and then to ClickHouse Cloud, citing roughly six times lower cost than a small Snowflake standard plan and sub-second rather than multi-second queries."
url: "https://swe.quest/articles/how-adgreetz-processes-millions-of-daily-ad-impressions-with-clickhouse-cloud-923fb2f6799d75bf"
canonical: "https://clickhouse.com/blog/adgreetz-processes-millions-of-daily-ad-impressions"
source: "ClickHouse"
published: "2023-04-26"
difficulty: "easy"
kind: "Case study"
reading_minutes: 3
tags: ["analytics","ads","cost-optimization","serverless"]
---

# How AdGreetz Processes Millions of Daily Ad Impressions with ClickHouse Cloud

A post on [ClickHouse](https://swe.quest/sources/clickhouse.md), published 2023-04-26, 3 min read, Case study. Original: [https://clickhouse.com/blog/adgreetz-processes-millions-of-daily-ad-impressions](https://clickhouse.com/blog/adgreetz-processes-millions-of-daily-ad-impressions)

## Summary

AdGreetz moved its ad impression analytics from AWS Athena to Snowflake and then to ClickHouse Cloud, citing roughly six times lower cost than a small Snowflake standard plan and sub-second rather than multi-second queries. The pipeline ingests 5-6 million impressions a day, peaking at 20-30 million, through Cloudflare Workers. The workers acknowledge each event, enrich it in the background, and insert JSON over HTTP using async inserts, so no Kafka buffering layer is needed. Data is partitioned by time, aggregated with materialized views, isolated per customer with filtering views, and served to partners through Metabase dashboards.

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)
- [Ads](https://swe.quest/tags/ads.md) (Domains)
- [Cost optimization](https://swe.quest/tags/cost-optimization.md) (Reliability & operations)
- [Serverless](https://swe.quest/tags/serverless.md) (Backend & APIs)

## Prerequisites

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

## Keywords

ClickHouse Cloud, Cloudflare Workers, Snowflake, AWS Athena, Metabase, AdGreetz

## Related posts

- [Better Analytics at Scale with Trackingplan and ClickHouse](https://swe.quest/articles/better-analytics-at-scale-with-trackingplan-and-clickhouse-fe79c2efef76743f.md): ClickHouse · 2024-01-24 · Medium · 6 min read · Analytics & OLAP, Databases, Multi-tenancy, Cloud platforms
  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.
- [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.
- [Why Snowflake can’t match ClickHouse Cloud for real-time analytics](https://swe.quest/articles/why-snowflake-can-t-match-clickhouse-cloud-for-real-time-analytics-a0d24a843f0ecba4.md): ClickHouse · 2026-09-10 · Medium · 18 min read · Analytics & OLAP, Performance engineering, Cost optimization, Stream processing
  In the CostBench continuous-ingestion benchmark (113.2 billion stock quotes streamed toward 1M rows/s while aggregate and drill-down queries ran on the freshest data), ClickHouse Cloud scored 412× better end-to-end performance per dollar than Snowflake.
- [How InMobi achieved 20x faster queries and 80% cost savings with ClickHouse](https://swe.quest/articles/how-inmobi-achieved-20x-faster-queries-and-80-cost-savings-with-clickhouse-7024c9110d80fdcc.md): ClickHouse · 2026-02-25 · Medium · 8 min read · Analytics & OLAP, Ads, Cost optimization, Data pipelines, Resilience
  InMobi moved its publisher-facing real-time ad reporting APIs from a serverless warehouse on blob storage to ClickHouse.
- [The end-to-end cost-performance of real-time analytics: Snowflake vs. ClickHouse Cloud](https://swe.quest/articles/the-end-to-end-cost-performance-of-real-time-analytics-snowflake-vs-clickhouse-a79249cfefaab552.md): ClickHouse · 2026-06-23 · Medium · 29 min read · Analytics & OLAP, Performance engineering, Cost optimization, Stream processing
  CostBench measures real-time analytics cost-performance end to end: continuous ingest at a fixed 1 million rows/sec, keeping raw data ordered for pruning, maintaining fresh pre-aggregations, and serving queries continuously while all of that runs.

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)
