Home / Companies / Box / Blog / Post Details
Content Deep Dive

Scaling aggregates with dataflow: A case study in real-time aggregation

Blog post from Box

Post Details
Company
Box
Date Published
Author
Szymon Rusiecki, Staff Software Engineer, Box
Word Count
1,150
Company Posts That Month
38
Language
English
Hacker News Points
-
Post removed?
No
Summary

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.

Trends Found in this Post
Trend Post Mentions Total Month Mentions Posts Companies MoM
Real-time 11 6,790 1,736 269 -9%
Use This Data

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.