Options for serving large downloads

0 views
Skip to first unread message

Jason Cartwright

unread,
Nov 12, 2009, 1:23:09 PM11/12/09
to orug-di...@googlegroups.com
I have a client requirement to provide DVD images for download. They have a product that ships on multiple DVDs and they want to make it available online as an alternative to shipping physical discs.

So, the challenge I have is that these downloads are protected, so I need them behind authentication. And then the obvious problem is bandwidth. I had originally considered x_sendfile to free up my Rails processes, but if even half their customers download the images it will send our bandwidth through the roof, nevermind the load on the server.

I'm considering Amazon S3, but I'm not sure how I can protect the files from public access without piping them through the webserver. Additionally, the bandwidth could end up costing a couple thousand dollars on S3.

Does anyone have any suggestions on how to protect the downloads, minimize the cost of bandwidth and avoid tying up processes with long-running downloads?

Anthony Eden

unread,
Nov 12, 2009, 6:00:37 PM11/12/09
to orug-di...@googlegroups.com
On Thu, Nov 12, 2009 at 8:23 AM, Jason Cartwright
<jasoneca...@gmail.com> wrote:

<snuip>

> I'm considering Amazon S3, but I'm not sure how I can protect the files from
> public access without piping them through the webserver. Additionally, the
> bandwidth could end up costing a couple thousand dollars on S3.

S3 does support limited-use time-based tokens, so you can protect them
by having the user go through your site, ask S3 for a time-based token
and then direct the visitor to the URL with that token. You're not
going to get around the bandwidth issue though unless you use
something like BitTorrent, but I'm not sure if you could protect in
that case and you also run into issues with visitors who do not have
BitTorrent.

-Anthony

--
GMU/IT d- s: a32 C++(++++)$ UL@ P--- L+(++) !E W+++$ !N o? K? w--- !O
M++ V PS+ PE Y PGP t+ !5 X- R tv b++ DI+ D++ G- e++ h---- r+++ y++++**

http://anthony.mp

Jason Cartwright

unread,
Nov 16, 2009, 5:33:37 PM11/16/09
to orug-di...@googlegroups.com
Anthony,

Thanks for the details. That's essentially the same conclusions I came to, so thanks for confirming.
Reply all
Reply to author
Forward
0 new messages