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 .
Downstream REST API only allows a single item to be passed at a time.
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?
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.
But that advantage is not possible when target I/O is REST API.
I can run chunks in parallel.
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?