Oct 28th, 2012, 08:44 AM
Throttling item processing
I have a read-write batch job that reads items from a database table and calls a web service (as the writer part).
As the calls to the web service eventually overload the remote server, I am searching for a solution where I will be able to throttle the service calls.
By throttling I mean delaying the next item's processing after each item's write.
Alternatively, a delay could be placed before or after each read.
I tried to find a workaround using JMS but could not come up with any solution.
Any ideas are welcome
Oct 30th, 2012, 04:06 PM
Well, throttling itself isn't necessarily the same as reading the next item once the current one has been written. To delay reading the next item until the current one has been written, just change your commit-interval to 1.
However, there there is no throttling available within the framework when running in a single threaded model.