← Work · CPaaS · Data platforms

A carrier-scale data platform for a global messaging provider

We built a new email channel and the event and reporting platform behind every messaging channel, for a global CPaaS provider that is part of a large telecom group.

ClientGlobal CPaaS provider, part of a large telecom group
ChannelsWhatsApp, SMS, email, RCS
EngagementCo-build with the client's engineers, phased delivery
Our rolePlatform engineering
ScaleDesigned for 40,000 events per second at peak
StatusBuilt and load-tested; rollout into the client's AWS environment under way

The challenge

The provider sends messages for a large base of business customers across WhatsApp, SMS, email and RCS. Every message creates a stream of events (sent, delivered, read, failed), a billing record and callbacks to the customer's systems. Their existing reporting store answered questions about those messages slowly. They needed a streaming platform that takes in every event at carrier scale, keeps every business customer's data separate and in its region, and turns it into accurate reports, exports and scheduled deliveries. They also needed a new email channel.

How it fits together
Messaging channels→ Event backbone · Pulsar→ Stream processing · Flink→ ClickHouse + Hudi lakehouse→ Reports, exports, schedules

Engineering challenges

01
Events arrive out of order

Delivery reports, billing records and callbacks for one message come from different systems at different times. They had to merge into one record per message, ordered by when things happened rather than when they arrived.

02
Late and corrected statuses

A late update must change only its own fields and never overwrite a newer status, while daily summaries stay exact when a status changes.

03
No event lost

Every accepted event had to land exactly once, even when servers fail mid-stream and callers retry.

04
Data residency and failover

Each business customer's data had to stay within its region group, with selected customers replicated across two regions so reporting survives a regional outage.

05
Fast queries, affordable history

Recent detail had to answer in seconds, while years of history stayed queryable at storage cost.

What we built

01
Email channel

A new email messaging channel alongside the existing ones.

02
Event backbone

Apache Pulsar takes in message events, billing records and callbacks as they happen, with per-topic geo-replication between regions.

03
Stream processing and merge

Apache Flink jobs standardise each channel's events and merge everything about one message into a single record, with exactly-once checkpoints.

04
Hot store and lakehouse

45 days of detail in ClickHouse for fast reports, and full history in Apache Hudi on Amazon S3, queried through Trino.

05
Reporting and exports

22 report types, self-service report definitions, exports of up to a million rows, and scheduled delivery by email, SFTP or S3, orchestrated with Temporal.

06
Multi-tenant, multi-region

Each business customer's data kept separate at every step and within its region group, with active-active replication for selected customers.

07
Infrastructure as code

Amazon EKS and every supporting service defined in Terraform, deployable with one command, with autoscaling, alerts, dashboards and runbooks.

Results from load testing

Measured on AWS, load generated inside the cluster
~39,000/sevents sustained for five minutes at the 40,000/s design peak: 11.8 million events, none failed
18Mevents over 30 minutes at 10,000/s, with 95% of requests answered in 31 ms
0 lostin failure drills that shut down stream workers and message servers under load; every accepted event landed exactly once
15 / 15active-active tests across two AWS regions, covering residency, replication, failover and failback

Technology  Apache Pulsar, Apache Flink, ClickHouse, Apache Hudi, Trino, Temporal, Amazon EKS, Terraform, Go

How we worked

Proof-of-concept milestones came before the full build. We listed dependencies by phase (what was needed now, before phase two and before phase four) so nothing stalled, and worked as one team with the client's engineers.

The outcome

One streaming platform for events and reporting, built and load-tested at the provider's 40,000-events-per-second design peak with no data loss. The platform is now being rolled out into the provider's own AWS environment. It also gives the provider a clean, real-time data foundation for AI features such as plain-English analytics and delivery alerts.

Keep exploring
Industry Data and AI for telecom and CPaaS → Service How we build data platforms → Article Your data platform is your AI strategy →
Building a platform that has to scale?Book a call Next case studyDigitising fire safety compliance →