---
title: "“A generational leap”: How Trio unified payment analytics and cut storage by 88% with ClickHouse Cloud"
description: "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."
url: "https://swe.quest/articles/a-generational-leap-how-trio-unified-payment-analytics-and-cut-storage-by-88-b4c6dd92d9387fc0"
canonical: "https://clickhouse.com/blog/trio"
source: "ClickHouse"
published: "2026-04-17"
difficulty: "medium"
kind: "Case study"
reading_minutes: 7
tags: ["analytics","payments","stream-processing","data-pipelines"]
---

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

A post on [ClickHouse](https://swe.quest/sources/clickhouse.md), published 2026-04-17, 7 min read, Case study. Original: [https://clickhouse.com/blog/trio](https://clickhouse.com/blog/trio)

## Summary

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.

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)
- [Payments & fintech](https://swe.quest/tags/payments.md) (Domains)
- [Stream processing](https://swe.quest/tags/stream-processing.md) (Data & databases)
- [Data pipelines](https://swe.quest/tags/data-pipelines.md) (Data & databases)

## Prerequisites

- materialized views
- stream ingestion basics
- columnar databases ([easy posts on Databases](https://swe.quest/tags/databases.md?difficulty=easy))

## Keywords

ClickHouse Cloud, ReplacingMergeTree, Redpanda, Airflow, Grafana, ClickPipes, Pix

## Related posts

- [Data Hive: The story of beehiiv’s journey from Postgres to ClickHouse](https://swe.quest/articles/data-hive-the-story-of-beehiiv-s-journey-from-postgres-to-clickhouse-467867cb2bebb87b.md): ClickHouse · 2024-08-21 · Easy · 6 min read · Analytics & OLAP, Databases, PostgreSQL, Stream processing, Queues & messaging
  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.
- [“Just OLAP it”: How Ramp rebuilt its analytics platform on ClickHouse Cloud](https://swe.quest/articles/just-olap-it-how-ramp-rebuilt-its-analytics-platform-on-clickhouse-cloud-36298842faab88cc.md): ClickHouse · 2026-01-20 · Medium · 5 min read · Analytics & OLAP, Event-driven architecture, Data pipelines, PostgreSQL, Queues & messaging
  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.
- [How Lyft powers batch and real-time analytics with ClickHouse Cloud](https://swe.quest/articles/how-lyft-powers-batch-and-real-time-analytics-with-clickhouse-cloud-f74360c81abeeaab.md): ClickHouse · 2025-09-10 · Medium · 6 min read · Analytics & OLAP, Data pipelines, Stream processing, Databases
  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.
- [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.
- [Behind the music: How Chartmetric is scaling music analytics with ClickHouse](https://swe.quest/articles/behind-the-music-how-chartmetric-is-scaling-music-analytics-with-clickhouse-8636babde296e87c.md): ClickHouse · 2026-01-08 · Medium · 7 min read · Analytics & OLAP, Performance engineering, Databases, SQL
  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.

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)
