Work That Runs After the Response

When a request starts slow work the caller doesn't need to wait for, the server answers 202 Accepted with a Location to check later, hands the work to a job queue that runs it after the response, and moves heavy calculations to worker_threads, while job services such as BullMQ keep jobs safe across restarts.

By

Updated

Cheat sheet: Work That Runs After the Response
Category
Node.js
Level
Freelancer
Tags
202 Accepted, Event Loop (nodejs), Job Queue, Location Header, nodejs, web-development, Worker Threads