backenddatabasessystem-design
Batch writes, but cap the wait
Anonymous
Batching small writes can reduce per-call overhead when the storage system has meaningful fixed request cost. It also adds queueing delay and memory use. Set limits by item count, byte size, and maximum wait, and flush when any limit is reached.
0