Skip to content

In development. Expect rough edges and changes. The source code is not public yet.

ClickHouse 7 min read Case study mediumAdept

“A generational leap”: How Trio unified payment analytics and cut storage by 88% with ClickHouse Cloud

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. Events arrive via Redpanda into a custom ETL service (chosen over ClickPipes for control over schema drift) and via Airflow batch loads. Late, duplicate and out-of-order payment events are handled with a sliding window: refreshable materialized views recompute only a recent range (e.g. the last four hours every five minutes), ReplacingMergeTree deduplicates replays, and careful partitioning avoids global merges. Storage dropped about 88%, and a 5-billion-row migration went smoothly with minimal tuning.

Assumes: materialized viewsstream ingestion basicscolumnar databases

Related posts

  • Data Hive: The story of beehiiv’s journey from Postgres to ClickHouse

    ClickHouse easyNovice

    beehiiv replaced its Postgres-and-Ruby-queue analytics system, which struggled with billions of email events and had multi-hour reporting delays, with a Kafka-fed ClickHouse Cloud pipeline. The design leans on ReplacingMergeTree for idempotent ingestion and event replay, dictionaries to enrich inserts without joins, ephemeral columns for intermediate calculations, materialized views as pre-aggregated shadow tables with alternate sort keys, and window functions for analytics. After six months the system held over 33 billion raw events in 1.5 TiB compressed (13 TiB uncompressed), with 22 ms median and 85 ms average query times. Creators now see send performance within seconds instead of hours.

  • “Just OLAP it”: How Ramp rebuilt its analytics platform on ClickHouse Cloud

    ClickHouse mediumAdept

    Ramp moved customer-facing spend analytics off its Postgres monolith after enterprise customers' reports on a single card-transactions table began taking 40+ seconds, and now serves them in milliseconds from ClickHouse Cloud. The pipeline streams Postgres CDC via Debezium into per-table Kafka topics. Stateless Python enrichers denormalize the records, and a connector loads them into ReplacingMergeTree tables, with recurring OPTIMIZE and FINAL queries handling deduplication. A local benchmark of 60M transactions partitioned by business ID ran 16,000 randomized queries in 12 seconds, and a four-engineer pod shipped to production in about two months. The platform now backs in-app Reporting and Budgets, and Ramp plans to add enriched tables for every core data type.

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

    ClickHouse mediumAdept

    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.

  • From batch processing to streaming: AMP’s data journey from open-source to ClickHouse Cloud

    ClickHouse mediumAdept

    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. Shopify webhooks flow through Amazon EventBridge and Lambda into ReplacingMergeTree tables, which deduplicate updates. To avoid the cost of small inserts, Kinesis Data Firehose buffers events to S3 and asynchronous inserts are enabled, since ClickHouse performs best with batches of at least 1,000 rows. Environments are provisioned reproducibly with the ClickHouse Cloud Terraform provider.

  • Behind the music: How Chartmetric is scaling music analytics with ClickHouse

    ClickHouse mediumAdept

    Chartmetric moved time-series and playlist workloads from Postgres and Snowflake to ClickHouse Cloud, cutting RDS storage from 28 TB to 18 TB and bringing queries that timed out at 60 seconds down to under 3 seconds. Projections, one sorted by recent modification and one by ISRC, fixed hourly sync jobs that had been timing out on tables ordered for API access. Replacing large JOINs with WHERE + IN filters and LIMIT/OFFSET batching cut one query from a 30 GB out-of-memory failure to 98 ms and 300 MB. The playlist cache, built on VersionedCollapsingMergeTree, now holds 5.5B rows in 340 GB, refreshes every five minutes, and answers top-artist queries in about 1.5 seconds versus 20 in Snowflake.

The quest for software engineering knowledge.

Look:
Layout: