Designing Intelligent Event Processor (IEP) Projects

Batched Stream Output

The Batched Stream Output operator enables you to output events in batches, rather than one event at a time.

Depending on the downstream JBI component, this approach can improve performance. For example, if you are using IEP with the File Binding Component, sending 10 events at a time might be faster than sending one event at a time.

ProcedureTo Create a Batched Stream Output Operator

  1. Drag a Batched Stream Output operator from the Palette to the Design view.

  2. Connect the input of the new Batched Stream Output component to an operator that has stream output.

  3. Double-click the Batched Stream Output operator.

    The property editor opens. Notice that the component has inherited the schema of its input stream.

  4. If you want to include a timestamp on the output, then select the Include Timestamp check box.

  5. In the Batch Size field, specify the number of events in a batch.

  6. In the Maximum Delay field and drop-down list, specify the maximum amount of time that the operator will wait before sending a batch.

    For example, assume that the batch size is 10 and the maximum delay is 30 seconds. If 30 seconds have passed since the previous batch was sent, and only eight events have arrived, then the operator sends the eight events.

  7. (Optional) Click the Documentation tab and supply notes on this component.

  8. Click OK.