📜 ⬆️ ⬇️

Amazon S3 crossed with BitTorrent

Amazon allows downloading files from S3 hosting over BitTorrent protocol . Through torrents, you can distribute any publicly available Amazon S3 files of no more than 5 GB in size (perhaps in the future this restriction will be removed). To do this, install the client software (recommended Amazon S3BitTorrent).

To download a torrent for any object, just add ?torrent Torrent to the end of the URL.

Request example
 GET /quotes/Nelson?torrent HTTP/1.0 Date: Wed, 25 Nov 2009 12:00:00 GMT 

Answer
 HTTP/1.1 200 OK x-amz-request-id: 7CD745EBB7AB5ED9 Date: Wed, 25 Nov 2009 12:00:00 GMT Content-Disposition: attachment; filename=Nelson.torrent; Content-Type: application/x-bittorrent Content-Length: 537 Server: AmazonS3 <body: a Bencoded dictionary as defined by the BitTorrent specification> 

Thanks to the torrent site owners can significantly save on traffic, because S3 takes payment for the amount of information transmitted. If you upload torrents, then the file is distributed through a peering network from one user to another. In addition, this removes the limitation on overall throughput, when many users simultaneously want to download the same file.
')
In some cases, the use of torrents is preferable to the standard server / client type transfer, especially on popular files.

Amazon does not charge any additional fees for using torrents.

Source: https://habr.com/ru/post/357774/


All Articles