3 messages in ru.sysoev.nginxRe: embedded perl
FromSent OnAttachments
Jonathan VanascoApr 11, 2007 12:10 pm 
David PhillipsApr 11, 2007 12:44 pm 
Jonathan VanascoApr 11, 2007 1:30 pm 
Actions with this message:
Paste this link in email or IM:
Paste this link in email or IM:
Atom feed for this thread
Paste this URL into your reader:
Subject:Re: embedded perlActions...
From:Jonathan Vanasco (jvan@public.gmane.org)
Date:Apr 11, 2007 1:30:57 pm
List:ru.sysoev.nginx

On Apr 11, 2007, at 3:45 PM, David Phillips wrote:

On 4/11/07, Jonathan Vanasco <nginx-GYD5gbT+W3@public.gmane.org> wrote:

my setup will have me querying postgres for every url to find the correct url on amazon's s3 which i proxy for.

Have you considered using deterministic S3 object keys (for example, using a hash)? This allows you to avoid the database entirely. You could add hash support to the rewrite module.

nginx's proxy module does not block. If your S3 objects are not publicly readable then you could modify the proxy module to support S3 request signing.

Thats a pretty good idea... The issue that I would have with that setup though is that I'd only be replacing the db call with an s3 call.

my options were: 30+ s3 data stores of a single file, all publicly readable 1 s3 data store of a single file , use a proxy to transparantly serve that file to clients

because of their pricing and my usage patterns, i went with the second option -- which requires that the client can never know the address of the object on s3.