Patent ID: 8799906

Claim:
An apparatus for processing a batched unit of work associated with a plurality of messages for use with a data store, comprising: a processor; and memory connected to the processor, wherein the memory is encoded with instructions and wherein the instructions when executed comprise: instructions for recording a backout count associated with a number of instances that each message in the batched unit of work is backed out; instructions for setting a backout count threshold associated with said backout count; instructions for setting 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; instructions for checking 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, instructions for placing each said message on a failure queue, and getting another message; in response to the backout count corresponding to each message being less than the backout count threshold, instructions for placing each said message on an output queue; in response to placing each said message on an output queue, instructions for checking whether the backout count is greater than zero and less than the backout count threshold; and responsive to the backout count being greater than zero and less than the backout count threshold for each said message, instructions for overriding the set commit count and committing each said message as a separate unit of work.