How Chargebee built usage-based billing on ClickHouse

Ishaan Chawla explains how Chargebee uses ClickHouse materialized views and a shared aggregate table to power usage-based billing, increase throughput and reduce infrastructure.
Chargebee uses ClickHouse to turn incoming usage events into the aggregates that power usage-based billing. In this talk, Ishaan Chawla, Engineering Manager at Chargebee, explains the architecture behind its billing engine and the design choices that helped it scale.
Learn how ClickHouse materialized views pre-aggregate events on insert, keeping usage totals ready for billing, usage and spend alerts, and subscription exports. Ishaan also explains why the team moved from separate tables for each meter to one shared aggregate table: Chargebee reports 4× higher throughput with roughly one-seventh of the infrastructure after the redesign.
The session covers the wider pipeline, including Kafka, Flink and a separate deduplication layer, showing where ClickHouse fits and why the data model matters. It offers practical lessons for teams building metering, billing or other applications that need to turn a stream of events into fast analytical queries.
Build usage analytics with ClickHouse Cloud
Try ClickHouse on your own data with $300 in free credits.
Try ClickHouse CloudRelated videos
View all Videos
Meetups, User stories
How Check Point cut its cluster from 69 nodes to 2 with ClickHouse Cloud
Ronel Poliak explains how Check Point moved leaked-credential searches from Elasticsearch to ClickHouse Cloud, reduced its data-node count from 69 to two, and cut its bill by 80%.

Meetups, User stories
How Varonis migrated analytics from PostgreSQL to ClickHouse
Ido Perry explains how Varonis moved activity-event analytics from PostgreSQL to ClickHouse Cloud, simplified its multi-tenant data model, and reduced query latency and storage.

User stories, Meetups
How Equativ powers real-time advertising products with ClickHouse Cloud
Adrien Coulaud and Jean-Denis Costa explain how Equativ uses ClickHouse Cloud for customer-facing reporting, fast lookups, and operational feedback across its advertising products.

Open House, ClickHouse
The real-time data platform for AI
Ed Lenta, VP, Asia Pacific & Japan at ClickHouse, sets the stage for the day: ClickHouse as the real-time data platform for AI.