
Move long video processing outside the upload request
A large video arrives in one phase and gets processed in another. Keeping a browser request open while transcoding makes timeouts and retries difficult to recover from.
Question
Move long video processing outside the upload request
Editorial answer
A large video arrives in one phase and gets processed in another. Keeping a browser request open while transcoding makes timeouts and retries difficult to recover from.
For larger files, use a resumable upload protocol or an object-storage multipart upload. Bind upload IDs and size limits to the authenticated user. When the final part and checksum are verified, enqueue processing and return a status ID for polling. Run transcoding in a separate limited worker.
Verify the result
Interrupt the transfer after the first parts, resume, then submit the completion call twice. The file should be verified once and the queue should contain one processing job.
Discussion
Sign in to participate.



