I am working on a web application, as part of the requirement the application users clicks on a button which is available on the UI so that behind the scenes spring-batch application should trigger and process the data over 15 minutes.
Since the application is web based users can invoke the batch process concurrently at any given point of time.When user performs click action the UI doesn't need to wait for the batch status or response.
I already have the spring-batch process ready which is written in
SimpleJobLauncher, to solve this I am planning to code a REST endpoint to invoke the spring-batch however am not sure about handling the multiple requests from UI.
I am wondering how can I a port my existing synchronous batch process to the new application.
Please advise.