Announcement Announcement Module
No announcement yet.
Throttling item processing Page Title Module
Move Remove Collapse
Conversation Detail Module
  • Filter
  • Time
  • Show
Clear All
new posts

  • 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



  • #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.