---
title: "How FabFunnel powers real-time marketing analytics with ClickHouse Cloud"
description: "FabFunnel moved its marketing analytics off a normalized MySQL reporting stack, where month-long queries took 11 seconds and year-long reports crashed browsers due to client-side merges, to ClickHouse Cloud."
url: "https://swe.quest/articles/how-fabfunnel-powers-real-time-marketing-analytics-with-clickhouse-cloud-693f5ffb0f0b9887"
canonical: "https://clickhouse.com/blog/fabfunnel-real-time-marketing-analytics"
source: "ClickHouse"
published: "2025-11-20"
difficulty: "medium"
kind: "Case study"
reading_minutes: 5
tags: ["analytics","data-pipelines","mysql","ads","performance"]
---

# How FabFunnel powers real-time marketing analytics with ClickHouse Cloud

A post on [ClickHouse](https://swe.quest/sources/clickhouse.md), published 2025-11-20, 5 min read, Case study. Original: [https://clickhouse.com/blog/fabfunnel-real-time-marketing-analytics](https://clickhouse.com/blog/fabfunnel-real-time-marketing-analytics)

## Summary

FabFunnel moved its marketing analytics off a normalized MySQL reporting stack, where month-long queries took 11 seconds and year-long reports crashed browsers due to client-side merges, to ClickHouse Cloud. Spend and revenue data now stream through Confluent Kafka via ClickPipes into ReplacingMergeTree tables, which replace the old delete-and-reinsert refresh cycle. Refreshable materialized views pre-aggregate into a single reporting table, and a buffer table handles real-time click data. Queries now return in under a second, and the system handled 19.2M queries reading 11.67 trillion rows in one month.

Written by swe.quest, not by the author.

**Difficulty:** Medium: assumes a working developer; shows how it is built or done

## Topics

- [Analytics & OLAP](https://swe.quest/tags/analytics.md) (Data & databases)
- [Data pipelines](https://swe.quest/tags/data-pipelines.md) (Data & databases)
- [MySQL](https://swe.quest/tags/mysql.md) (Data & databases)
- [Ads](https://swe.quest/tags/ads.md) (Domains)
- [Performance engineering](https://swe.quest/tags/performance.md) (Reliability & operations)

## Prerequisites

- OLAP vs OLTP 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))
- materialized views

## Keywords

ClickHouse Cloud, ClickPipes, ReplacingMergeTree, Confluent Kafka, MySQL, FabFunnel

## Related posts

- [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.
- [Data Hive: The story of beehiiv’s journey from Postgres to ClickHouse](https://swe.quest/articles/data-hive-the-story-of-beehiiv-s-journey-from-postgres-to-clickhouse-467867cb2bebb87b.md): ClickHouse · 2024-08-21 · Easy · 6 min read · Analytics & OLAP, Databases, PostgreSQL, Stream processing, Queues & messaging
  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.
- [Ongage's Strategic Shift to ClickHouse for Real-time Email Marketing](https://swe.quest/articles/ongage-s-strategic-shift-to-clickhouse-for-real-time-email-marketing-dfca8e1a38de318e.md): ClickHouse · 2023-08-24 · Easy · 7 min read · Analytics & OLAP, MySQL, Databases, Cloud platforms
  Ongage, an email and SMS marketing automation company processing about half a billion messages a day, moved its campaign analytics and automation reporting from a large AWS RDS MySQL cluster (alongside MongoDB and Redshift) to ClickHouse Cloud.
- [How Critical Manufacturing uses ClickHouse to bring real-time intelligence to the factory floor](https://swe.quest/articles/how-critical-manufacturing-uses-clickhouse-to-bring-real-time-intelligence-to-ae1496e45cdf957c.md): ClickHouse · 2026-03-10 · Easy · 8 min read · Analytics & OLAP, Data pipelines, Databases
  Critical Manufacturing, a maker of Manufacturing Execution System (MES) software, replaced its SQL Server analytics stack with ClickHouse after historical queries stretched to hours and index and partition tuning became a burden.
- [Why Flock Safety turned to ClickHouse for real-time vehicle traffic analytics](https://swe.quest/articles/why-flock-safety-turned-to-clickhouse-for-real-time-vehicle-traffic-analytics-f35b2dcb28006f8a.md): ClickHouse · 2025-04-29 · Medium · 5 min read · Analytics & OLAP, Data pipelines, Cloud platforms
  Flock Safety replaced a once-daily Redshift, DBT, Prefect and QuickSight SPICE pipeline with ClickHouse Cloud.

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)
