Welcome! Log In Create A New Profile

Advanced

Re: Handle user uploads in static content server (newbie question)

April 12, 2010 01:12PM
On Apr 12, Leonardo Crespo wrote:
>> (2) Use nginx with caching proxy on the static machine
>> In this setup, a cache miss will result in a request for the static
>> resource from the dynamic server (which I assume is also capable of
>> serving static content). This should work as long you expect to have a
>> high cache hit ratio
>>
>
>So user uploads a file to Dynamic Server (D). All request to static
>files are served from Static Server (S). If a file is not found on
>(S), cache miss, serve the file from (D). Correct? In this scenario,
>how would the file ever get served from the Static Server (S)?
>Something has to copy the files from server D to S...

* D is also capable of serving the static files.
* S has a proxy pass to D with the caching options turned on.
* User traffic always refers to S and not D for the static content.

This way, S _pulls_ the file from D on a cache miss over HTTP.

I have been using this setup in production for a few months now. And it
works even in cases where D & S are in different continents.

_______________________________________________
nginx mailing list
nginx@nginx.org
http://nginx.org/mailman/listinfo/nginx
Subject Author Posted

Handle user uploads in static content server (newbie question)

leocrespo April 11, 2010 09:02PM

Re: Handle user uploads in static content server (newbie question)

leocrespo April 11, 2010 09:54PM

Re: Handle user uploads in static content server (newbie question)

anomalizer April 11, 2010 10:22PM

Re: Handle user uploads in static content server (newbie question)

leocrespo April 11, 2010 10:36PM

Re: Handle user uploads in static content server (newbie question)

anomalizer April 12, 2010 01:12PM

Re: Handle user uploads in static content server (newbie question)

leocrespo April 11, 2010 10:56PM

Re: Handle user uploads in static content server (newbie question)

edogawaconan April 11, 2010 11:04PM

Re: Handle user uploads in static content server (newbie question)

leocrespo April 11, 2010 11:12PM

Re: Handle user uploads in static content server (newbie question)

leocrespo April 11, 2010 11:54PM

Re: Handle user uploads in static content server (newbie question)

anomalizer April 12, 2010 01:24PM

Re: Handle user uploads in static content server (newbie question)

leocrespo April 13, 2010 09:56PM

Re: Handle user uploads in static content server (newbie question)

Gabriel Evans April 11, 2010 10:22PM

Re: Handle user uploads in static content server (newbie question)

leocrespo April 11, 2010 10:40PM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 296
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready