title: Spring batch chunk based approach for calling REST API in Item Writer
body: <p>I have a requirement to read data from our RDBMS table and invoke a REST API in order to ingest the information into downstream system .</p>
  <p>Downstream REST API only allows a single item to be passed at a time.</p>
  <p>Is chunk based spring batch a better option for this requirement as I am not using the power of Item writer processing all items at a time?</p>
  <p>Usually when we use Item writers like JPA ItemWriter ,item writer offers advantage of storing entire chunk of data in a single transaction through data base batch operations.</p>
  <p>But that advantage is not possible when target I/O is REST API.</p>
  <p>I can run chunks in parallel.</p>
  <p>Would there still be other advantages of using spring batch in this requirement rather than a custom implementation of reading from database and invoking API?</p>