API Design: Implementing and Observing Long-Running Tasks with Spring MVC
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. ⛩️ *Navigation* 00:00 - Intro 00:30 - Let's Code 01:57 - Adding the Task + Operation Resources 03:55 - Adding the Task Service 05:21 - Adding Event Handling 07:03 - Adding Tasks Lifecycle Management 10:24 - Adding the Task Controller 🍃 *Code & Resources* Grab the code for this tutorial here https://axgr.dev/posts/spring-api-tasks/?utm_campaign=youtube-summary&utm_source=youtube 🙌 *Get in Touch* Join my newsletter and say hi here https://axgr.dev/newsletter/?utm_campaign=youtube-summary&utm_source=youtube 🎙 *Gear & Links* Mechanical Keyboard: https://x.axgr.dev/keyboard Studio Camera: https://x.axgr.dev/studio-camera Studio Lens: https://x.axgr.dev/studio-lens Studio Mic: https://x.axgr.dev/studio-mic Vlog Camera: https://x.axgr.dev/vlog-camera Vlog Lens: https://x.axgr.dev/vlog-lens All my affiliate links https://axgr.dev/deals/?utm_campaign=youtube-summary&utm_source=youtube _I may earn a small commission for purchases made through the links above at no additional cost to you._ 🎶 *Music* Background music by https://studio.youtube.com/channel/UCM66ZDxCsrk2URFfgMDLftg 🍿 *Subscribe* Want to see more tech tutorials? Subscribe now!
Download
0 formatsNo download links available.