I have a requirement where we receive a csv file in the form of byte stream through ECS S3 Pre-Signed url. I have to validate the data and write the validation successful and failed records to 2 different csv files and store them to ECS S3 bucket by converting them to InputStream. Also write the successful records to database and also the pre-signed urls of the inbound, success and failure files.
I'm new to Spring Batch. How should I approach this requirement?
If I choose a FlatFileItemReader to read, ItemProcessor to process the data how should I write to different files and to Database?
or
Should I create a job using Tasklets? TIA.