Writing Atomic Batches

Note: Applies to both the message writer and the message data writer.


Either a single message or an array of messages can be passed to the writer's actuator.

batch = [some_message, some_other_message]
write.(batch, some_stream)

When an array is passed to the writer, it is written as an atomic batch. If the write fails for any reason while the batch is being written, none of the messages will be written.

Note: As with individual messages, a batch is written to a single stream. Atomic writes are only possible to one stream.