javaspring-bootspring-batchspring-batch-adminspring-batch-job-monitoring

Do I need spring batch if I have to process API services instead of CSV jobs?


I'm writing an app where its primary objective is to pull data from a service provider(XXX), convert and push it to another service provider(YYY) via HTTP REST.

I can do this with a simple for-loop and I'm storing the last retrieved item creation date in a separate table. So I can continue pull items from last converted item whenever I needed and I'll be maintaining separate table to hold failed records and re-try those failed records with periodic intervals via CRON as well.

Do I still need to use SPRING Batch. From what I can see is, it helps modular the code with a Reader, Processor and Writer.

Am I missing anything? Can I use spring batch and benefit for syncing data over HTTP services from point A - point B?


Solution

  • You can still use Spring Batch for many reasons. Here is a non exhaustive list with an example related to your use case for each feature: