Class UnboundedBatchedSolaceWriter

All Implemented Interfaces:
Serializable, HasDisplayData

@Internal public final class UnboundedBatchedSolaceWriter extends UnboundedSolaceWriter
This DoFn is the responsible for writing to Solace in batch mode (holding up any messages), and emit the corresponding output (success or fail; only for persistent messages), so the SolaceIO.Write connector can be composed with other subsequent transforms in the pipeline.

The DoFn will create several JCSMP sessions per VM, and the sessions and producers will be reused across different threads (if the number of threads is higher than the number of sessions, which is probably the most common case).

The producer uses the JCSMP send multiple mode to publish a batch of messages together with a single API call. The acks from this publication are also processed in batch, and returned as the output of the DoFn.

The batch size is 50, and this is currently the maximum value supported by Solace.

There are no acks if the delivery mode is set to DIRECT.

This writer DoFn offers higher throughput than UnboundedStreamingSolaceWriter but also higher latency.

See Also: