Welcome! Log In Create A New Profile

Advanced

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

April 11, 2010 10:22PM
On Apr 12, Leonardo Crespo wrote:
>To make it simpler, here's a scenario:
>
>Server A is static.domain.com ip 10.10.10.10 servers ALL static
>content (jpegs, gifs, pngs, mp3s etc... including user uploaded
>content like photo albums)
>Server B is www.domain.com ip 10.10.10.20 servers DYNAMIC content, php files.
>
>If user submits a jpg to his photo album, it'll get uploaded to B, as
>page's going to run on server B because it's a .php file (upload.php).
>How can the image possibly be served from server A without
>synchronization issues?

You options are:

(1) Shared filesystem between the two hosts to hold the static content

(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

_______________________________________________
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: 204
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