Skip to content

amqpx v1.0.1


amqpx / index / BatchFailureStrategy

Enumeration: BatchFailureStrategy

Defined in: src/consumer/types.ts:26

How to handle messages batch when processing fails (throw error).

Enumeration Members

Enumeration MemberValueDescriptionDefined in
Fail"Fail"Reject the whole batch; the consumer will not try to reprocess the messages. Each message in the batch is processed according to the failureStrategy property.src/consumer/types.ts:31
Split"Split"Split the batch into individual messages and try to process each message separately. The listener will be called for each message, where the batch passed into the listener consists only of the single message. If the processing of the message fails again, it is handled according to the failureStrategy property. Split strategy is not supported when the batch size is equal to 1.src/consumer/types.ts:41

Released under the MIT License.