How To Implement Long-Running API Tasks with Spring MVC

Posted on Oct 27, 2023 in
Reading time: 1 minute

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

The Dead Letter Queue

Love what you're seeing? By subscribing to my newsletter, not only will you be the first to know about fresh tutorials and videos, but you'll also unlock:

Subscribe now and become a part of our growing tech tribe!