Design a File Upload Service

Talk it through out loud with your AI coach.

The problem

  • medium
  • Pro

Users of your app need to upload videos of up to two gigabytes, and uploads through your web servers keep timing out and using all their memory. Design an upload flow that copes with large files and unreliable connections.

What a strong answer covers

  • Keeping large file transfers away from the application servers.
  • Making uploads survive a dropped connection without starting again.
  • How the app tracks each file's state and learns an upload is complete.
  • What happens to a file after it lands and how it reaches viewers.

Common mistake: Improving the web servers' timeouts and memory instead of questioning whether the bytes should pass through them at all.

Knowing this is half of it. Saying it clearly out loud is the part the coach helps you practise.

Practise it out loud