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.
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.
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.
A late update must change only its own fields and never overwrite a newer status, while daily summaries stay exact when a status changes.
Every accepted event had to land exactly once, even when servers fail mid-stream and callers retry.
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.
Recent detail had to answer in seconds, while years of history stayed queryable at storage cost.
A new email messaging channel alongside the existing ones.
Apache Pulsar takes in message events, billing records and callbacks as they happen, with per-topic geo-replication between regions.
Apache Flink jobs standardise each channel's events and merge everything about one message into a single record, with exactly-once checkpoints.
45 days of detail in ClickHouse for fast reports, and full history in Apache Hudi on Amazon S3, queried through Trino.
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.
Each business customer's data kept separate at every step and within its region group, with active-active replication for selected customers.
Amazon EKS and every supporting service defined in Terraform, deployable with one command, with autoscaling, alerts, dashboards and runbooks.
Technology Apache Pulsar, Apache Flink, ClickHouse, Apache Hudi, Trino, Temporal, Amazon EKS, Terraform, Go
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.
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.