Scaling aggregates with dataflow: A case study in real-time aggregation
Blog post from Box
Box faced significant challenges in maintaining real-time accuracy for folder size and item counts due to the high volume of file operations, leading to database overload and inefficiencies in their legacy system. To address this, Box transitioned from standard streaming patterns to a custom Dataflow-based solution using a hybrid session-gap approach, which effectively balanced database efficiency and user-visible updates. This new approach incorporated fixed-length session windows and a watermark-based mechanism, enabling more controlled and predictable aggregation while significantly reducing write traffic and infrastructure costs. The optimized pipeline achieved a 67% reduction in database load, saving approximately $300k annually and improving system reliability and user experience, demonstrating that strategic streaming aggregation can enhance both cost efficiency and performance without compromising user satisfaction.
| Trend | Post Mentions | Total Month Mentions | Posts | Companies | MoM |
|---|---|---|---|---|---|
| Real-time | 11 | 6,790 | 1,736 | 269 | -9% |
Use this post, company, and trend context to find content marketing opportunities, perform competitive analysis, or address product feature gaps via the Plushcap MCP server or the Plushcap API.