Deferred-Flush Caching for High-Frequency Counter Updates Design and Evaluation

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.

Authors

Institutions

Publication Details

Journal
International Journal of Information System Modeling and Design
Published
2026-11-25
DOI
https://doi.org/10.4018/ijismd.428526
Primary Topic
Advanced Database Systems and Queries
Type
article
Field-Weighted Citation Impact
0.00
Controls
|||
ALL TIME
JAN
FEB
MAR
APR
MAY
JUN
JUL
AUG
SEP
OCT
NOV
article

Deferred-Flush Caching for High-Frequency Counter Updates Design and Evaluation

Guineng Zheng, Ting Peng
International Journal of Information System Modeling and Design
Advanced Database Systems and Queries
article

Deferred-Flush Caching for High-Frequency Counter Updates Design and Evaluation

Guineng Zheng, Ting Peng
article en

Abstract

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.

International Journal of Information System Modeling and DesignVol. 17(1)
University of Iowa (US), Guangzhou College of Technology and Business (CN)
Advanced Database Systems and Queries
AI Navigator

Ask Laika to Summarize, Analyze, and Connect papers live on the map.

Summarize Papers & Methodologies

Extract key findings, datasets, and comparative methods across publications.

Benchmark Rankings & Visual Analytics

Rank top research institutions, authors, funders, topics, and journals by Field-Weighted Citation Impact (FWCI) and paper volume with instant charts.

Connect Distant Disciplines

Bridge topological clusters on the map to find hidden collaborative intersections.

Laika access coming soon