Patent ID: 8769536

Claim:
A method of processing a batched unit of work associated with a plurality of messages, for use with a data store, comprising: recording a backout count, using a processor, associated with a number of instances that each message in the batched unit of work is backed out; setting, using the processor, a backout count threshold associated with said backout count; setting, using the processor, a commit count associated with committing the batched unit of work in response to successful commits for a predefined number of the plurality of messages; checking, using the processor, whether the backout count for each said message is greater than the backout count threshold; in response to the backout count corresponding to each message being greater than the backout count threshold, placing each said message on a failure queue, and getting, using the processor, another message; in response to the backout count corresponding to each message being less than the backout count threshold, placing each said message on an output queue; in response to placing each said message on an output queue, checking, using the processor, whether the backout count is greater than zero and less than the backout count threshold; and in response to the backout count being greater than zero and less than the backout count threshold for each said message, overriding the set commit count, using the processor, and committing each said message as a separate unit of work.