Long-running REST APIs: 202 Accepted, Location, job status polling, and webhooks in OpenAPI
DEV Community
Long-running REST APIs: 202 Accepted, Location, job status polling, and webhooks in OpenAPI
Holding an HTTP connection open for a three-minute export times out and ties up workers. Return 202 Accepted with a Location to a job resource, model the job state machine, and let clients poll or subscribe to a webhook. Here is the full lifecycle with progress and cancellation, and the OpenAPI...
0 comments
No comments yet.