Skip to content

Latest commit

 

History

History
19 lines (15 loc) · 881 Bytes

PROBLEM STATEMENT.md

File metadata and controls

19 lines (15 loc) · 881 Bytes

CODING CHALLENGE

  1. Pick any file on a public web server over say 60MB, either a file you upload or a preexisting file somewhere.

  2. Write a multi-source downloader for that single file. In other words, a downloader that downloads different chunks of the file over HTTP or HTTPS and reassembles the chunks on the client side into the complete file. It should download chunks in parallel. The idea is that in theory this would work if different chunks of the file were actually hosted on different servers, a la BitTorrent or the many things that did this before BitTorrent =). The client also should not be expected to know the size of the file ahead of time.

  3. If the server host happens to return an etag in a known hash format, use that hash format to verify the downloaded file is correct. This is not a requirement.

  4. Make it so that we can easily run the downloader.