Enqueue long tasks and answer your user right away
When your API enqueues a task with the endpoint URL and payload, it can respond to the user as soon as the enqueue call returns. Relay then calls that endpoint in a separate request, under the timeout and retry limit that you set on the task.
Impact
The sample allows the Lambent Sound transcode endpoint five tries of up to 10 minutes each to produce the HLS, DASH, and FLAC files for one master recording. Your upload handler can respond as soon as enqueueTask resolves, while Relay makes the transcode calls in the background.
Prompt for a coding agent: Transcode each uploaded master in the background, and answer the upload request right away.
Select a file to view its contents