Announcement Announcement Module
No announcement yet.
SpringBatch Newbie - Controlling the dataflow Page Title Module
Move Remove Collapse
Conversation Detail Module
  • Filter
  • Time
  • Show
Clear All
new posts

  • SpringBatch Newbie - Controlling the dataflow

    Hello all,

    I have a strange requirement wherein I need to process only 50 rows per sec - so my flow is fetch 50 rows from database, process it using webservices and save to database. Now the webservice provider has imposed a restriction wherein I can't send them more than 50 txns/sec. What would be the best way to control such a flow.

    Thanks in advance.


  • #2
    Spring Batch itself does not attempt to provide time-based throttling. I'm sure you know that there are no real time guarantees in Java. You can approximate them using Java language features like Thread.sleep(), Object.wait()/notify() and library features like java.util.concurrent.*. The simplest approach would be to just Thread.sleep() in your Web Service client.


    • #3
      Thank you

      Appreciate your reply!!!