1
Answer

Best practices for handling temporary video URLs in a web application?

Hi everyone,

I work on a browser-based video utility and am reviewing how we handle user-submitted media URLs. I’m not sharing the product link here; I’m mainly looking for technical advice.

Some media URLs expire quickly, redirect several times or return different formats depending on the request headers. What would be the best architecture for handling this securely and reliably?

I’m particularly interested in:

  • Preventing SSRF and unsafe URL requests

  • Validating redirects and file types

  • Handling rate limits and temporary URLs

  • Processing large files without consuming excessive memory

  • Using queues for concurrent download requests

  • Deleting temporary files after processing

Would you process the file through the application server, use a separate worker service or stream it directly to the user?

Thanks for any suggestions.

Answers (1)