Burst mode
Use of burst mode makes it possible to take advantage of batch processing efficiencies for single transaction processing use cases. Aggregating events relating to a batch of transactions reduces overhead because there are fewer database and IBM® MQ commit calls.
Burst mode can be enabled on any input channel where it is possible to proactively get the next message from within a message flow. As an example, when using IBM MQ as an input, the physical transmission flow is driven by an MQInput node. It is possible, after processing the IBM MQ message, to go back and get the next message using an MQGet node. Using this technique, the physical transmission flow can get and process a group of single messages in the same unit of work. Doing this allows the Send Event API call to aggregate these events where possible.
- Implement a transmission wrapper that is burst mode aware.
- Include burst mode settings on the channel definition.
- Review event metadata as part of a design for aggregation.
An example of a transmission wrapper that supports burst mode is shown in the following figure.
tag=value
format. The following table shows
the settings that are supported for burst mode:
Parameter name | Description |
---|---|
BURST_LIMIT | The maximum number of messages to read in a unit of work |
BURST_WAIT | The maximum time, in milliseconds, to wait for the next message |
BURST_MAX_LATENCY | Optional The maximum latency, in milliseconds, that any message can have. Overrides BURST_WAIT if present. |
BURST_LIMIT=100, BURST_WAIT=50
BURST_LIMIT * BURST_WAIT
BURST_LIMIT=100, BURST_WAIT=0, BURST_MAX_LATENCY=5000
BURST_LIMIT=100, BURST_WAIT=0