ClickhouseProblem & solution
Appcues delivers personalized customer engagement with ClickHouse Cloud
Summary
Appcues replaced an analytics stack that included Snowflake and Airflow after rising scale pushed queries to 20 seconds or more and limited reports to 10-minute windows. The company evaluated ClickHouse Cloud on AWS for real-time segmentation, exporting Snowflake data to Parquet in S3 and testing complex email segments with nested conditions, historical events, and negative logic. Production events now pass through Kafka and a clickwriter consumer, while a clickclient library built on Elixir’s Ecto generates controlled ClickHouse queries; SharedReplacingMergeTree, table engines, and materialized views were tuned during a one-year migration. Across 1.31 PB and 410 billion events, P95 queries fell below two seconds, ingestion latency dropped to about five seconds, and analytics costs decreased 23%, while new funnel reports and AI-powered insights were added.
Context
Appcues needed lower-latency analytics as its data volume and product requirements grew. Its Snowflake and Airflow setup supported batch reporting and dashboards, but query times reached 20 seconds or more, reports were limited to 10-minute windows, and the company needed to evaluate complex, real-time segmentation for email and other customer-facing capabilities.
Approach / What changed
Appcues exported Snowflake data to Parquet in S3, loaded it into ClickHouse Cloud on AWS, and tested complex email segmentation queries. Events flow through Kafka into a clickwriter consumer for light deduplication and fast inserts, while a clickclient library built on Elixir’s Ecto generates ClickHouse queries. The team tuned schemas, table engines, materialized views, service sizing, and autoscaling during a one-year migration with continuous verification and staged customer cutovers.
Takeaways
ClickHouse ran Appcues’s email segment queries 73% faster than its previous cloud data warehouse during the proof of concept.
P95 query latency decreased from more than 20 seconds to under two seconds, while ingestion latency fell from 10 minutes or more to about five seconds.
Analytics costs decreased 23% even after Appcues added new segmentation, email, funnel-reporting, and AI-powered insight workloads.
Source and freshness
- Source
- clickhouse.com
- Published
- Added to Yomu
- Last updated
Summaries are generated from the original by a language model. Check the original before relying on it.
Keep reading
Related reading
The Good Stuff
Paid picks we use ourselves. Links carry a referral code — a subscription through one earns us a commission at no extra cost to you.
The best engineering reads, once a week
One useful email. Unsubscribe anytime.