Lago's 1M Events/Sec: ClickHouse Cloud Powers Real-Time Billing

Alps Wang

Alps Wang

Jun 2, 2026 · 1 views

Scaling Billing Infrastructure

The article compellingly demonstrates how Lago leveraged ClickHouse Cloud to achieve massive scalability for its billing platform, enabling real-time, usage-based billing for enterprise clients. The transition from 10,000 to 1,000,000 events per second highlights the power of ClickHouse for handling high-throughput, low-latency data ingestion and querying. Lago's philosophy of avoiding custom billing infrastructure and embracing open-source principles resonates with modern development practices, and their choice of ClickHouse Cloud underscores the benefits of managed services for complex data workloads, freeing up engineering resources to focus on core product development. The ability to directly query raw event data without pre-aggregation is a significant advantage for accuracy and flexibility in complex pricing models.

While the article celebrates a significant technical feat, a deeper dive into the specific challenges encountered during the scaling process beyond the initial benchmarks would have been beneficial. Understanding the tuning efforts, potential bottlenecks identified during the transition to 1 million events per second, and the trade-offs made in selecting ClickHouse over other candidates would provide even greater practical value. Furthermore, elaborating on the specific types of complex pricing models Lago supports and how ClickHouse facilitates these could offer more concrete examples for potential users. The article's focus on enterprise adoption is a strong indicator of ClickHouse's growing relevance in critical business infrastructure, moving beyond traditional analytics use cases.

Key Points

  • Lago successfully scaled its billing platform to handle 1 million events per second using ClickHouse Cloud, enabling real-time, usage-based billing for enterprise clients.
  • The company's open-source philosophy and decision to build on ClickHouse avoid vendor lock-in and allow for flexibility and transparency in billing infrastructure.
  • ClickHouse Cloud's managed service nature allowed Lago to focus on its core billing solution rather than infrastructure management.
  • ClickHouse's columnar storage and query performance enable direct querying of raw event data for accurate billing calculations without complex pre-aggregation.
  • The successful implementation of 1 million events/sec ingestion is a market differentiator for Lago, catering to the growing trend of consumption-based pricing models in enterprises.

Article Image


📖 Source: 毎秒100万イベント: LagoがClickHouse Cloudで使用量ベースの課金をスケールさせる方法

Related Articles

Comments (0)

No comments yet. Be the first to comment!