Skip to content

Add configurable minimum batch processing#192

Open
isakstenstrom wants to merge 1 commit intobuildbarn:mainfrom
meroton:minimum-batch-processing
Open

Add configurable minimum batch processing#192
isakstenstrom wants to merge 1 commit intobuildbarn:mainfrom
meroton:minimum-batch-processing

Conversation

@isakstenstrom
Copy link
Collaborator

Processing very small batches is inherently inefficient. This commit adds a configurable setting for the minimum time to process a batch such that more events have time to arrive before starting work on the next one.

This strategy immediately starts processing a message as soon as it arrives but waits with processing the next batch for the minimum duration. By doing this, streams with very few events do not have their latency impacted while streams with large numbers of events will quickly settle into processing events in reasonable batch sizes.

The recommended minimum duration is 0.1s but operators may wish to tune this based on the batch size and batch duration metrics.

Processing very small batches is inherently inefficient. This commit
adds a configurable setting for the minimum time to process a batch such
that more events have time to arrive before starting work on the next
one.

This strategy immediately starts processing a message as soon as it
arrives but waits with processing the next batch for the minimum
duration. By doing this, streams with very few events do not have their
latency impacted while streams with large numbers of events will quickly
settle into processing events in reasonable batch sizes.

The recommended minimum duration is 0.1s but operators may wish to tune
this based on the batch size and batch duration metrics.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants

Comments