# A million events per second: How Lago scales usage-based billing with ClickHouse Cloud

DevFeed: [A million events per second: How Lago scales usage-based billing with ClickHouse Cloud](<https://devfeed.tech/articles/a-million-events-per-second-how-lago-scales-usage-based-billing-with-clickhouse-cloud-5367.md>)

Original publisher: [Read original article](<https://clickhouse.com/blog/lago>)

Author: ClickHouse

Published: 2026-03-05T00:00:00Z

Content type: article

Language: en

Sources: [ClickHouse Blog](<https://devfeed.tech/sources/clickhouse-blog.md>)

Topics: [clickhouse](<https://devfeed.tech/topics/clickhouse.md>), [Cloud](<https://devfeed.tech/topics/cloud.md>), [Data Infrastructure](<https://devfeed.tech/topics/data-infrastructure.md>), [Critical Infrastructure](<https://devfeed.tech/topics/critical-infrastructure.md>), [Open Source](<https://devfeed.tech/topics/open-source.md>), [Security](<https://devfeed.tech/topics/security.md>)

Tags: [billing](<https://devfeed.tech/tags/billing.md>), [clickhouse](<https://devfeed.tech/tags/clickhouse.md>), [cloud](<https://devfeed.tech/tags/cloud.md>), [critical-infrastructure](<https://devfeed.tech/tags/critical-infrastructure.md>), [data-infrastructure](<https://devfeed.tech/tags/data-infrastructure.md>), [latency](<https://devfeed.tech/tags/latency.md>), [open-source](<https://devfeed.tech/tags/open-source.md>), [security](<https://devfeed.tech/tags/security.md>), [usage-based-billing](<https://devfeed.tech/tags/usage-based-billing.md>)

## AI overview

Lago uses ClickHouse Cloud and ClickPipes to ingest, store, and query usage events for real-time, usage-based billing. The article describes scaling from 10,000 to 1 million events per second while supporting complex enterprise pricing models without operating its own data infrastructure.

## Source excerpt

"We tried so many databases. The only one that worked really well and that was really easy to understand was ClickHouse." "We're the only billing solution that can provide one million events per second ingestion. Without ClickHouse, this wouldn't be poss