-
Oct 28th, 2012, 08:44 AM
#1
Throttling item processing
Hello,
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
Thanks
Daniel
-
Oct 30th, 2012, 04:06 PM
#2
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.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules