API design · Flashcard

An API call starts a video transcode that takes 10 minutes. How should the API respond?

easy Queues

Answer

Do not hold the request open. Put the job on a queue and return 202 Accepted with a job id (and a status URL). The client polls the status, or gets a webhook or push when the job finishes.

Review this in your daily deck All cards in API design