How To Implement Long-Running API Tasks with Spring MVC
Intro
Hey there! When you build a RESTful API, you might have to expose long-running tasks, i.e., sending a batch of emails. In these scenarios, you don’t want to block client requests until the job has finished. Plus, you might want to report back some details on the progress of the task and a way to cancel an already started task.
In this tutorial, we’ll talk about implementing long-running tasks as first-class citizens in our API.
🍿 Get the code from GitHub