I have a Spring Batch application which does followings,
- A different application puts a csv file in a S3 bucket INBOUND
- Spring Batch application reads a csv file
- using data of each row, it calls an API endpoint and get a quote
- Put those quotes in a newly created csv and put in a S3 bucket OUTBOUND
Spring Batch Application Tech Stack
Created using Spring Boot
Spring Batch Job Launcher is called upon a REST endpoint
Deployed in OpenShift
What I want to do,
When the other application puts a new file into the S3 INBOUND bucket it needs to trigger the Spring Batch Operation (call the REST endpoint which launches the job)
Can I do this using a K8s Cron Job which triggered by S3 events? If so can someone please explain how? Or do I have any other options?