Home icon

How Smartsheet built Real-time Dynamic Filtering on Apache Flink reducing $40K/month in messaging costs

Big Data Blog



This article describes how Smartsheet built a Real-time Dynamic Filtering (RDF) system on Amazon Managed Service for Apache Flink to reduce messaging costs and improve latency for live collaboration features.

  • Smartsheet processes hundreds of thousands of events per second for live collaboration, workflows, and notifications
  • Previous SNS/SQS architecture discarded over 90% of events after expensive per-event DynamoDB lookups
  • SNS filter policy changes took up to 15 minutes to propagate, making dynamic filtering impractical
  • RDF uses Flink's KeyedCoProcessFunction to join filter policies from DynamoDB Streams with event data streams
  • Filter policies stored in RocksDB state backend; "subscribe all" policies use broadcast state across tasks
  • Reduced monthly costs by $40,000+ (SNS transfer, SQS, DynamoDB, Lambda combined)
  • Improved live collaboration latency by 1.8x; filter propagation now sub-second (p95 ≤1s)
  • Architecture designed as shared platform for other teams (workflows, notifications)

Smartsheet's RDF demonstrates how stream processing can replace costly fan-out architectures, achieving significant cost savings and latency improvements through intelligent state management and dynamic filtering.



Go to article

The AWS News Feed is currently looking for gold sponsors. If you want to support the AWS community and reach a large audience of AWS professionals, consider sponsoring the AWS News Feed.

Related articles

May 6
2026
Build streaming applications on Amazon Managed Service for Apache Flink with AI-assisted guidance
Apr 18
2025
How Smartsheet reduced latency and optimized costs in their serverless architecture
Mar 11
2024
Real-time cost savings for Amazon Managed Service for Apache Flink
May 20
2026
Build real-time voice applications with Amazon SageMaker AI and vLLM

The AWS News Feed is currently looking for silver sponsors. If you want to support the AWS community and reach a large audience of AWS professionals, consider sponsoring the AWS News Feed.