Stream batching, coalescing and backpressure
Buffers incoming deltas and flushes them in frames at a configurable interval. Multiple updates to the same row are coalesced into one. When the buffer limit is exceeded, the grid can drop to snapshot mode by marking blocks stale and refetching, instead of falling behind indefinitely.
Planned. This page shows the specification from issue #180. The live example, source for every framework and the API reference replace it when the feature ships.
Live example
2,000 deltas per second, 100 ms flush, and an FPS meter is visible.
Expected behavior
The FPS meter stays near 60 at high rates with coalescing on. Exceeding the buffer limit under 'snapshot' shows a 'Catching up' status and refetches the visible blocks. Pause holds deltas and Resume applies them in coalesced form.
Planned API surface
option: deltaFlushIntervalMsoption: deltaBufferLimitoption: overflowStrategy: 'snapshot'|'dropOldest'|'pauseStream'api.pauseDeltas()api.resumeDeltas()event: deltaOverflowAcceptance criteria
- Multiple updates to the same row within one flush result in one render that uses the latest version. (pending)
- Add followed by remove for the same id within one flush cancel out. (pending)
- The buffer never exceeds deltaBufferLimit. (pending)
- The 'pauseStream' strategy calls the source's pause hook when the source provides one. (pending)
- With the grid paused, interaction such as editing remains responsive. (pending)