Answers are grounded in this paper and cite their sources.
Many applications maintain counters that are the running sum of a high-frequency stream of small updates—payment ledgers, scoreboards, loyalty points, telemetry. Writing every increment directly to the database saturates its write path under concurrency because each update carries the full cost of locking, logging, and a network round-trip. This study presents a deferred-flush cache that accumulates per-entity partial sums in an in-memory store and writes them to the database only when a per-entity threshold is crossed, exploiting the fact that a counter's final value does not depend on how its increments are grouped. The study describes the design, including a generation-tagged flush that keeps the stored total correct even across process crashes, and a simple analysis that predicts the write-reduction factor and explains why the measured speedup can be larger than that factor. A prototype built on Redis and MongoDB sustains 2.3× to 31× higher throughput than direct writes across concurrency levels from 10 to 500, and the speedup follows the predicted two-regime pattern.
No takes yet. Share an insight, caveat, or question.
Zheng et al. (2026) studied this question.
Synapse has enriched 10 related papers. Consider them for comparative context: