News for hackers. Stuff that matters.
Re:Using BitTorrent with Amazon S3 by RKearney on Monday May 18, 2015 @10:55AM (#9564776)
I'm fairly certain this has been a feature of S3 since its launch in 2006. Here's as far back as I could find on archive.org[0] it's May 24th 2006 and the URL indicates the documentation was published on March 2006.

[0] http://web.archive.org/web/20060421112025/http://docs.amazon...

Re:Using BitTorrent with Amazon S3 by cfaulkingham on Monday May 18, 2015 @12:44PM (#9565402)
It was there since the inception 03/14/2006 to be exact.

https://noisemore.wordpress.com/2006/03/14/amazon-s3-has-bit...

Re:Using BitTorrent with Amazon S3 by rmetzler on Monday May 18, 2015 @02:13PM (#9565981)
Yes, and you'll find this date in the top left corner of the linked AWS API documentation.
Re:Using BitTorrent with Amazon S3 by __Joker on Monday May 18, 2015 @04:22AM (#9563296)
Anyone downloading software or any content over a slow and flaky network would question why people don't use torrents for distribution with some "permanent" seeder.

I really had a horrible experience sometime back, while downloading a software of around 2 GB. Where a network would die down and chrome would discard the partial download.

Re:Using BitTorrent with Amazon S3 by azernik on Monday May 18, 2015 @04:26AM (#9563306)
Some distributors like Humble Bundle do on fact do this; the "permanent seeders" are called "web seeds", which are implemented by just having a standard HTTP server implementing the RANGE request. This let's a client fetch arbitrary chunks of a file, so a BitTorrent client can fetch ranges corresponding to torrent chunks.
Re:Using BitTorrent with Amazon S3 by getsat on Monday May 18, 2015 @04:50AM (#9563372)
Could you elaborate on this? I'm not familiar with Bittorrent's protocol. Can a regular HTTP server (say, nginx) be used as a web seed without any software in front of it translating the Bitorrent protocol requests into a regular HTTP request?
Re:Using BitTorrent with Amazon S3 by cbhl on Monday May 18, 2015 @05:12AM (#9563437)
The trick is that the client has been modified to read the URLs in the .torrent file and to construct the appropriate range requests for getting pieces from the web seed.
Re:Using BitTorrent with Amazon S3 by ikeboy on Monday May 18, 2015 @07:43AM (#9563834)
In torrent clients that support it, you can simply add a webseed to an existing torrent. Works great for linux dists.
Re:Using BitTorrent with Amazon S3 by asdfaoeu on Monday May 18, 2015 @05:14AM (#9563448)
The torrent is making regular HTTP requests using the range header to the server. Its a feature most BitTorrent clients support.
Re:Using BitTorrent with Amazon S3 by bentpins on Monday May 18, 2015 @06:56AM (#9563683)
Sure, you don't have to own the server either. http://burnbit.com/ is good for turning things into resumeable downloads
Re:Using BitTorrent with Amazon S3 by Jack000 on Monday May 18, 2015 @08:52AM (#9564104)
The problem with torrents are at the ends - initial seeding and lack of seeders as traffic declines. Both cases benefit from a static web seed.

I ran a site a couple of years ago that did this very thing, but it was quickly overwhelmed with illegal content..

Re:Using BitTorrent with Amazon S3 by estsauver on Monday May 18, 2015 @04:28AM (#9563312)
Chrome's downloads can actually be resumed using the wget --continue flag I believe.
Re:Using BitTorrent with Amazon S3 by petemc_ on Monday May 18, 2015 @04:45AM (#9563357)
That depends on a few things, such as the file still being at the previous url, you still having access to the file, etc.
Re:Using BitTorrent with Amazon S3 by timboslice on Monday May 18, 2015 @10:34AM (#9564648)
That's helpful, thank you!
Re:Using BitTorrent with Amazon S3 by lmm on Monday May 18, 2015 @06:31AM (#9563613)
That's not a protocol limitation, that's Chrome; plenty of other programs can resume HTTP downloads.
Re:Using BitTorrent with Amazon S3 by Ded7xSEoPKYNsDd on Monday May 18, 2015 @06:56AM (#9563680)
Some servers don't support it though. I know that's when Firefox throws away partial downloads.
Re:Using BitTorrent with Amazon S3 by atmosx on Monday May 18, 2015 @07:02AM (#9563704)
Chrome? Why Chrome? :-) Browsers are not the best tool for the job, although support DL resume fairly well (e.g. Safari).

There are 'downloaders' to deal with this kind of issue. That said, torrents are most optimal for a non-stable network connection.

Re:Using BitTorrent with Amazon S3 by 7952 on Monday May 18, 2015 @07:33AM (#9563812)
Downloader tools can be quite unpleasent. It is often a choice between overcomplicated adware, or you have to use the vendors software that may not be very good. Downloading large files should be as simple and reliable as small files for the user. Perhaps Metalink[1] support would help?

[1] http://www.metalinker.org/

Re:Using BitTorrent with Amazon S3 by AYBABTME on Monday May 18, 2015 @01:05PM (#9565564)
aria2 is a pretty killer tool, no ad or anything. Just a CLI.

http://aria2.sourceforge.net/

Re:Using BitTorrent with Amazon S3 by toomuchtodo on Monday May 18, 2015 @03:07PM (#9566246)
Aria2 is incredible. +1 for it! Should be standard install on everyone's workstation if you need a download manager.
Re:Using BitTorrent with Amazon S3 by icebraining on Monday May 18, 2015 @07:38AM (#9563827)
There's plenty of uncomplicated, adfree software. For Windows, I'm partial to Miniget (which supports both HTTP and Bittorrent): http://www.miniget001.com/
Re:Using BitTorrent with Amazon S3 by arm on Monday May 18, 2015 @10:39AM (#9564679)
Yes. On OS X, I find myself using Leech¹ quite a bit.

――――――

¹ — http://manytricks.com/leech/

Re:Using BitTorrent with Amazon S3 by rplnt on Monday May 18, 2015 @04:29AM (#9563314)
They do. It's used in games very often for example. However, you have to cover this in your EULA (or whatever) and have to have fallback (either optional or automatic) because many ISPs would block such traffic.
Re:Using BitTorrent with Amazon S3 by ikeboy on Monday May 18, 2015 @07:45AM (#9563844)
In the US they aren't allowed to.
Re:Using BitTorrent with Amazon S3 by Zikes on Monday May 18, 2015 @01:00PM (#9565531)
AT&T does. My internet would become unusably unstable every time I torrented, so I called them about it. They said they blocked torrents to "comply with the law" or somesuch BS, nevermind that I was attempting to download a Linux distro.
Re:Using BitTorrent with Amazon S3 by ikeboy on Monday May 18, 2015 @01:58PM (#9565884)
I didn't say they didn't, just that they weren't allowed to. See e.g. http://money.cnn.com/2015/02/05/technology/fcc-net-neutralit...
Re:Using BitTorrent with Amazon S3 by devicenull on Monday May 18, 2015 @06:04PM (#9567123)
You may have also been hitting this: http://en.wikipedia.org/wiki/Bufferbloat

I wouldn't put a lot of faith into what front-line tech support says. They'll often outright lie to you to get you off the phone.

Re:Using BitTorrent with Amazon S3 by ntonozzi on Monday May 18, 2015 @12:53PM (#9565474)
Can you elaborate on this? My current ISP definitely shapes torrent traffic to the point where it is impractical to download anything larger than a few KB.
Re:Using BitTorrent with Amazon S3 by charlieflowers on Monday May 18, 2015 @07:28AM (#9563789)
> I really had a horrible experience sometime back, while downloading a software of around 2 GB. Where a network would die down and chrome would discard the partial download.

Me too. And it was _Apple_ providing the download, for crissakes.

Re:Using BitTorrent with Amazon S3 by charlieflowers on Monday May 18, 2015 @08:22PM (#9567575)
Not sure how someone can justify down voting me. It's a true story and relevant.

Tim Cook, is that you? (I don't think Tim Cook would do that).

Re:Using BitTorrent with Amazon S3 by imrehg on Monday May 18, 2015 @05:06AM (#9563415)
Just moved a bunch of our company's large downloads over to S3 recently (mostly BSP releases and drivers), and this would be awesome for that 100MB - 4GB package size range that they have!

Tried it with a few clients: Transmission does not seem to work, though (both web client, and GTK): "Tracker gave HTTP response code 404..."; rtorrent seems to be able to download (but looks like no upload?); deluge downloads well and also kickstarts the transmission clients.

I wonder what's unacceptable in the Amazon infrastructure for transmission... And the 80kb/s max seed rate mentioned in the comments might be a showstopper already.

Re:Using BitTorrent with Amazon S3 by e40 on Monday May 18, 2015 @01:30PM (#9565712)
A couple of months ago I tested with Transmission (on a Mac) and it worked fine. The problem from my point of view was that the S3 side only seeded at 50-100 KB/sec, but if I downloaded directly from S3 I could pull 2MB/sec.

Unless you have a bunch of seeds, that are essentially permanent, it's pretty useless.

Re:Using BitTorrent with Amazon S3 by Havoc on Monday May 18, 2015 @05:00PM (#9566842)
Might still be useful as a seeder of last resort to borrow done finance terminology. Ie back a large number of say community nix isos with it.
Re:Using BitTorrent with Amazon S3 by jberkel on Monday May 18, 2015 @04:48AM (#9563366)
I'm currently using this to build a decentralized distribution system to ship relatively big database files to iOS clients without having to go through S3 all the time. It works quite well but some providers throttle the bittorrent traffic (or worse, throw in RST packets) so I'm not sure how well this will work in practice. Also note that the S3 default seeders only upload at around 80kb/s, so you'll always need at least one external seed to get good performance.
Re:Using BitTorrent with Amazon S3 by fit2rule on Monday May 18, 2015 @05:50AM (#9563520)
May I ask how you're doing torrent on iOS? The reason for my interest is that I recently ported ipfs (http://ipfs.io) to iOS and am interested in any experience you've had with running these styles of protocols on iOS clients in the field ..
Re:Using BitTorrent with Amazon S3 by jberkel on Monday May 18, 2015 @07:08AM (#9563730)
It's just libtorrent packaged up as iOS8 framework + a convenience API, available here: https://bitbucket.org/jberkel/torrada. Still WIP and not used in a production app, but hopefully soon.

It works well if you're on a non-throttled network and has support for local peer discovery which is great for testing (install from a local torrent seed, or another device). Apart from bandwidth saving it's also very convenient to let libtorrent handle consistency checks and resuming of transfers.

ipfs looks interesting, have you published your port?

Re:Using BitTorrent with Amazon S3 by fit2rule on Monday May 18, 2015 @07:41AM (#9563833)
Thanks for the details about torrada, I'll check it out!

Seems that for peer apps on mobile, we need to make it easy for the user to understand their bandwidth-usage - indeed in my testing I never run the app where I don't have solid, unlimited Wifi. For these classes of apps, I think the presentation of this problem to the user is going to be important.

>ipfs port

Its more of a harness than a port - basically, its possible to use Go on iOS, and so I have a project set up to include Go, cross the bridge between Obj-C and Go runtimes, and so on .. and, then I've built a Go app with ipfs, running on iOS. There aren't any features yet - but the harness is done, so, TODO: write Go, use ipfs framework, interface with iOS-GUI normatives, etc.

When I get actual ipfs functionality coded, I'll put it up on a repo .. too much futzing around is required right now to see anything actually functioning.

Re:Using BitTorrent with Amazon S3 by jberkel on Monday May 18, 2015 @08:03AM (#9563901)
Ah, I had a look at goios, I can imagine that it is a lot of work, the integration looks quite complicated and far from being finished, good luck.

About sharing bandwidth, was thinking about only enabling when the user is on wifi, but I think I'll use torrent more as a distributed mirror network than a "real" P2P system, which is difficult in a mobile context. People can easily "donate" bandwidth by seeding the data files needed for the app (using a separate torrent client though, not the app itself).

Re:Using BitTorrent with Amazon S3 by fit2rule on Monday May 18, 2015 @09:10AM (#9564182)
Actually, I got everything working, and can build and include an ipfs project in the iOS bundle .. I just don't have a UI to wire it up to the Go-side functionality. But in case you're interested you can have a look here:

https://github.com/seclorum/ios-go-ipfs.git

Might have to change a few paths in the build-script, but it'll give you an idea (if you're interested) how to go about building Go apps on iOS. Turns out its not that hard! :)

>Sharing bandwidth

Yes, I see the same sort of conclusion from my perspective of wanting to put ipfs on iOS - its really only as a way of committing content to the mesh when the User wants to serve - i.e. idle times connected/charging on local Wifi .. I think my next step will be to wire up the camera and a few fields to be used to create a publishable set of content ..

Anyway, pull requests welcome!

Re:Using BitTorrent with Amazon S3 by baq on Monday May 18, 2015 @05:38AM (#9563491)
RST should be easy to avoid by prefering UDP where possible, but in general i understand why ISPs would try to hamstring bittorrent with dramatic upstream overprovisioning that they've got.
Re:Using BitTorrent with Amazon S3 by byaruhaf on Monday May 18, 2015 @03:24AM (#9563166)
You can get torrent only for objects that are less than 5 GB in size. That's a bit limited.
Re:Using BitTorrent with Amazon S3 by cperciva on Monday May 18, 2015 @03:51AM (#9563230)
It's limited because the original S3 only supported objects up to 5 GB. (Indeed, at times objects of over 2 GB didn't work...)

Bittorrent support is a legacy feature; I don't think I've seen Amazon advertise it for several years.

Re:Using BitTorrent with Amazon S3 by verytrivial on Monday May 18, 2015 @03:51AM (#9563229)
It is a limit, yes. That is a very large baby you are throwing out with the bath water.
Re:Using BitTorrent with Amazon S3 by bartbes on Monday May 18, 2015 @03:36AM (#9563192)
That's 40 gigabit limited, I suppose.
Re:Using BitTorrent with Amazon S3 by GigabyteCoin on Monday May 18, 2015 @04:06AM (#9563261)
As someone who prizes his high quality movie torrents, I can testify that files over 5GB in size don't stay adequately seeded for very long after their initial release.

It seems like an arbitrary limit, but an adequate one for the time being.

Re:Using BitTorrent with Amazon S3 by Jedd on Monday May 18, 2015 @03:37AM (#9563195)
I wouldn't think it's hugely limiting. In practice I'd speculate that the majority of torrents out there are either around 180MB, 370MB, or 1800MB

If (for whatever reason) you choose to use S3 as your tracker, then you just need to commit to breaking your >5GB content lumps up into multiple pieces.

Re:Using BitTorrent with Amazon S3 by reitzensteinm on Monday May 18, 2015 @03:57AM (#9563241)
You're probably right that the majority of torrents on the internet line up with the common TV show sizes, but it doesn't at all follow that users of this service will follow that distribution.

I have 60gb files in S3, and saturating available bandwidth to download them in a reasonable time frame if they're not in the same country is actually a bit of a challenge.

Bit torrent would be one of the fastest and fault tolerant ways to retrieve the files, so it not being available stings a bit.

While I'm trying to download large files on consumer internet, I'd imagine that huge files between geographic locations and server grade connections would face a similar problem.

Re:Using BitTorrent with Amazon S3 by userbinator on Monday May 18, 2015 @05:07AM (#9563420)
A bit OT but...

Javascript is disabled or is unavailable in your browser. To use the AWS Documentation, Javascript must be enabled.

...really? Their documentation is perfectly readable without it. All the links are real, bookmarkable links; even the buttons for the PDF, forums, and Kindle version work.

Re:Using BitTorrent with Amazon S3 by hvm on Monday May 18, 2015 @05:41AM (#9563495)
I suspect there's a default 'javascript required' message in a file that's included with all pages.
Re:Using BitTorrent with Amazon S3 by zurn on Monday May 18, 2015 @03:39AM (#9563198)
Are there easy to use multiplartform BT libs around that would let you use this just for high bandwidth, nearby peers? Eg filter peers by latency as a first pass.
Re:Using BitTorrent with Amazon S3 by ShirsenduK on Monday May 18, 2015 @05:02AM (#9563407)
There's webtorrent by feross! https://github.com/feross/webtorrent
Re:Using BitTorrent with Amazon S3 by colechristensen on Monday May 18, 2015 @03:59AM (#9563244)
Why would you care to exclude peers slow or far? What benefit would you expect?

The torrent library to use is libtorrent.

https://github.com/rakshasa/libtorrent

Re:Using BitTorrent with Amazon S3 by zurn on Monday May 18, 2015 @04:22AM (#9563298)
S3 will normally provide ample bandwidth, but in some situations there's a local shared downlink that is the bottleneck. For example in asset heavy multiuser VR or game apps used by many people in same location. By only including the nearby peers I get all the benefit but minimize the risk of people accusing me of clogging / mooching off their uplink.
Re:Using BitTorrent with Amazon S3 by mct on Monday May 18, 2015 @04:36AM (#9563329)
(You probably want Arvid's libtorrent, at http://www.libtorrent.org, not the one linked above.)
Re:Using BitTorrent with Amazon S3 by gwern on Monday May 18, 2015 @01:51PM (#9565833)
I've used this in the past to distribute scrapes of black-markets (eg https://www.reddit.com/r/DarkNetMarkets/comments/2zps7q/evol... & https://www.reddit.com/r/DarkNetMarkets/comments/2zllmv/evol... ). It saves a lot of bandwidth (which is not all that cheap on S3) and so far the <5gb restriction hasn't been an issue.
Re:Using BitTorrent with Amazon S3 by ShirsenduK on Monday May 18, 2015 @04:32AM (#9563322)
Wow! This may lower the entry barrier for a new movie/TV streaming company. They can lower their costs by offsetting the bandwidth to users. Legal torrent streaming might have just got the boost it requires.
Re:Using BitTorrent with Amazon S3 by corin_ on Monday May 18, 2015 @04:59AM (#9563397)
This isn't a new feature, it was available at least in 2012, possibly earlier.
Re:Using BitTorrent with Amazon S3 by ShirsenduK on Monday May 18, 2015 @05:04AM (#9563409)
It seems HN is being trolled by posts from the past.
Re:Using BitTorrent with Amazon S3 by rmc on Monday May 18, 2015 @06:43AM (#9563644)
I read about it in 2010.
Re:Using BitTorrent with Amazon S3 by hrrsn on Monday May 18, 2015 @07:27AM (#9563782)
I used it in '08-09.
Re:Using BitTorrent with Amazon S3 by icebraining on Monday May 18, 2015 @05:06AM (#9563413)
Spotify already did that early on - the client was also a P2P node that would transfer music files from and to other clients. They shut that part down last year.
Re:Using BitTorrent with Amazon S3 by mcculley on Monday May 18, 2015 @07:25AM (#9563776)
When I looked into it a few years ago, Spotify used a custom protocol which was similar to BitTorrent but was not actually using BitTorrent. It had some clever features to optimize for the chunk of the song to be played and it had encryption for the DRM.
Re:Using BitTorrent with Amazon S3 by JosephRedfern on Monday May 18, 2015 @06:50AM (#9563662)
I think BBC iPlayer used BitTorrent (or some other form of P2P) when it first launched.
Re:Using BitTorrent with Amazon S3 by NKCSS on Monday May 18, 2015 @03:34AM (#9563186)
Could be cool to get better speeds, if they have multiple seeders for the bucket.
Re:Using BitTorrent with Amazon S3 by derefr on Monday May 18, 2015 @03:43AM (#9563205)
Honestly, I'm surprised this is built into S3, rather than CloudFront. Ideally, you want your object replicated to a bunch of edge nodes, which then all simultaneously join into a single swarm as seeds.
Re:Using BitTorrent with Amazon S3 by ianlevesque on Monday May 18, 2015 @03:47AM (#9563220)
It predates CloudFront.
Re:Using BitTorrent with Amazon S3 by rossk on Monday May 18, 2015 @09:22AM (#9564239)
Pretty sure it was part of the initial, day one S3 release.
Re:Using BitTorrent with Amazon S3 by sparaker on Monday May 18, 2015 @03:50AM (#9563226)
I would like to see that too.
Re:Using BitTorrent with Amazon S3 by dimino on Monday May 18, 2015 @01:26PM (#9565679)
I once read an article or email about why web browsers can't/won't implement BitTorrent clients -- one of the biggest barriers IMO to making BitTorrent more ubiquitous for file download/upload is the fact that I can't just click on a link and have my browser handle the rest, like I can with an HTTP/FTP link.

Does anyone have a link that explains why browsers won't do this, or at least a brief explanation?

Re:Using BitTorrent with Amazon S3 by ianlevesque on Monday May 18, 2015 @01:42PM (#9565778)
Opera used to do this, so there's no particular reason specific to BitTorrent that the others do not. Probably the usual questions of priority and bloat.

http://help.opera.com/Windows/9.00/en/bittorrent.html

Re:Using BitTorrent with Amazon S3 by rctay89 on Monday May 18, 2015 @09:37PM (#9567753)
Apart from myself, anyone else hoping to see downloading straight into an S3 bucket? (Seeding from a bucket has been around for some time, you could imagine my disappointment when clicking the link)
Re:Using BitTorrent with Amazon S3 by Sami_Lehtinen on Monday May 18, 2015 @10:12AM (#9564508)
It still needs BitTorrent client. How about doing exactly the same but using WebRTC which would work without additional client application.
Re:Using BitTorrent with Amazon S3 by tedchs on Monday May 18, 2015 @10:49AM (#9564744)
Uh, this feature has been available for years, hardly "news".
Re:Using BitTorrent with Amazon S3 by fiatjaf on Monday May 18, 2015 @09:35AM (#9564294)
I'm dreaming about using IPFS on S3. Will it be possible?
Re:Using BitTorrent with Amazon S3 by cosql on Monday May 18, 2015 @06:12AM (#9563573)
awesome