AWS Big Data·
How Klaviyo processes 3 billion daily events at scale with Amazon MSK Express
TL;DR
Klaviyo’s RabbitMQ pipeline was becoming difficult to scale beyond 3 billion daily events while handling holiday surges and keeping urgent events fast. It moved to Amazon MSK Express with priority-based processing, layered failure recovery, and automated broker scaling. The new pipeline maintained its 5-second real-time target at 170,000 events per second, scaled up and back down for Black Friday/Cyber Monday, and cut processing costs by roughly 30% by sharing processors across priority levels.
Relevant links
- Amazon Managed Streaming for Apache Kafka (Amazon MSK)aws.amazon.com
- Customer Solutionsaws.amazon.com
- Intermediate (200)aws.amazon.com
- Klaviyowww.klaviyo.com
- RabbitMQwww.rabbitmq.com
- Amazon Managed Streaming for Apache Kafka (Amazon MSK)aws.amazon.com
- Amazon MSK Expressdocs.aws.amazon.com
- Apache Kafkakafka.apache.org
- Building a Distributed Priority Queue in Kafkaklaviyo.tech
- Rebuilding Event Infrastructure at Scaleklaviyo.tech
- Building a Resilient Event Publisher with Dual Failure Captureklaviyo.tech
- Amazon Simple Storage Service (Amazon S3)aws.amazon.com