---
title: "How Lyft powers batch and real-time analytics with ClickHouse Cloud"
description: "Lyft replaced Apache Druid with ClickHouse, first self-managed and then on ClickHouse Cloud, for analytics that read over 450 TB and write about 4 TB per day at hundreds to thousands of queries per second."
url: "https://swe.quest/articles/how-lyft-powers-batch-and-real-time-analytics-with-clickhouse-cloud-f74360c81abeeaab"
canonical: "https://clickhouse.com/blog/lyft-analytics-clickhouse-cloud"
source: "ClickHouse"
published: "2025-09-10"
difficulty: "medium"
kind: "Case study"
reading_minutes: 6
tags: ["analytics","data-pipelines","stream-processing","databases"]
---

# How Lyft powers batch and real-time analytics with ClickHouse Cloud

A post on [ClickHouse](https://swe.quest/sources/clickhouse.md), published 2025-09-10, 6 min read, Case study. Original: [https://clickhouse.com/blog/lyft-analytics-clickhouse-cloud](https://clickhouse.com/blog/lyft-analytics-clickhouse-cloud)

## Summary

Lyft replaced Apache Druid with ClickHouse, first self-managed and then on ClickHouse Cloud, for analytics that read over 450 TB and write about 4 TB per day at hundreds to thousands of queries per second. Batch jobs are defined in TOML files that specify a Trino aggregation and the target table layout, read from S3 via the s3 table function into a staging table, and swap partitions. Real-time pipelines use Flink to deserialize Kafka and Kinesis events, resolving nested protobuf messages at runtime with Java reflection so ClickHouse schemas no longer need manual syncing. Migration friction included unavailable features such as the Join engine (replaced by dictionaries) and the Kafka table engine, plus batch-size and data-freshness tuning.

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)
- [Stream processing](https://swe.quest/tags/stream-processing.md) (Data & databases)
- [Databases](https://swe.quest/tags/databases.md) (Data & databases)

## Prerequisites

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

## Keywords

ClickHouse Cloud, Lyft, Apache Druid, Apache Flink, Trino, Kafka, Kinesis, protobuf

## Related posts

- [How ClickHouse Cloud enabled LaunchDarkly to build and ship features faster](https://swe.quest/articles/how-clickhouse-cloud-enabled-launchdarkly-to-build-and-ship-features-faster-0e4ac03aed14f7e6.md): ClickHouse · 2026-01-22 · Medium · 10 min read · Analytics & OLAP, Data pipelines, Observability, Multi-tenancy, Cloud platforms
  LaunchDarkly replaced Kinesis/Flink/Lambda streaming pipelines and an S3/Parquet/Athena batch warehouse with ClickHouse Cloud.
- [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.
- [From batch processing to streaming: AMP’s data journey from open-source to ClickHouse Cloud](https://swe.quest/articles/from-batch-processing-to-streaming-amp-s-data-journey-from-open-source-to-2056cdf52d7c0f11.md): ClickHouse · 2025-01-20 · Medium · 5 min read · Analytics & OLAP, Data pipelines, Stream processing, E-commerce
  AMP, a Shopify analytics platform, replaced a brittle twice-daily Postgres-to-ClickHouse batch sync, which routinely left data 30 to 72 hours stale and needed a 1.2 TB RAM server, with a streaming pipeline into ClickHouse Cloud.
- [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.
- [“A generational leap”: How Trio unified payment analytics and cut storage by 88% with ClickHouse Cloud](https://swe.quest/articles/a-generational-leap-how-trio-unified-payment-analytics-and-cut-storage-by-88-b4c6dd92d9387fc0.md): ClickHouse · 2026-04-17 · Medium · 7 min read · Analytics & OLAP, Payments & fintech, Stream processing, Data pipelines
  Trio, a Brazilian payments fintech processing 243M+ payments in H1 2025 and over 1B events a day, consolidated legacy and active systems into ClickHouse Cloud as a single analytical source of truth for reconciliation, compliance and dashboards.

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)
