Delivery model is set via the Delivery Type property, which can be assigned with one of the below values.
Regular. This is the default setting. When working in this mode, an adapter creates an independent transport connection for every message being uploaded. For batches consisting of several messages a set of individual connections, one connection per message, is established.
Batched Transactional. A single transport connection is created to transmit all the messages forming the batch. If transmission of any message comprising the batch fails, the operation is rolled back and all the messages that have already been transferred are deleted from server. This way, the Batched Transactional operation is atomic – either all the messages from the batch are uploaded, or none is.
Batched Greedy. A single transport connection is established to transmit all the messages forming the batch. If transmission of a message comprising the batch fails, an exception is reported and subsequent messages are attempted to be transmitted.
Batched modes are generally more efficient than the regular one, as only one transport connection (such as an SFTP connection) is negotiated and used to transmit all the messages forming the batch. Still, servers may impose certain restrictions on the way the messages are uploaded, and may force the client to stick to the Regular mode in certain cases.