Welcome! Log In Create A New Profile

Advanced

Re: Photo uploads and scalability

August 31, 2012 02:02PM
On Friday 31 August 2012 21:40:16 Ian Evans wrote:
[...]
> From a programming end I already know I'll queue any post-processing
> and inform the reader when it's done so that process can be handled by
> my local server or cloud instances etc.
>

TIP: You can avoid passing files over an upstream connection.

Example:

location = /upload {
proxy_pass http://backend;
client_body_in_file_only clean;
proxy_set_body $request_body_file;
}

Your application should "mv" uploaded file somewhere, then register a task
for further background processing, and return a response.

Reference: http://nginx.org/r/client_body_in_file_only

wbr, Valentin V. Bartenev

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

Photo uploads and scalability

Ian Evans August 31, 2012 01:42PM

Re: Photo uploads and scalability

VBart August 31, 2012 02:02PM

Re: Photo uploads and scalability

Ian Evans September 01, 2012 01:20AM

Re: Photo uploads and scalability

"Paweł Marzec - cojestgrane.pl" September 01, 2012 03:08AM

Re: Photo uploads and scalability

Ian Evans September 01, 2012 04:44AM

Re: Photo uploads and scalability

"Paweł Marzec - cojestgrane.pl" September 01, 2012 05:14AM

Re: Photo uploads and scalability

Ian Evans September 01, 2012 07:22PM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 99
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 500 on July 15, 2024
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready