atom feed16 messages in ru.sysoev.nginxRe: [ANN] ngx_echo v0.35: ability to ...
FromSent OnAttachments
John MooreMar 8, 2011 4:07 am 
agentzhMar 8, 2011 4:19 am 
António P. P. AlmeidaMar 8, 2011 10:59 am 
John MooreMar 9, 2011 10:42 am 
Richard KearsleyMar 9, 2011 11:15 am 
John MooreMar 9, 2011 12:39 pm 
agentzhMar 9, 2011 7:38 pm 
agentzhMar 9, 2011 7:52 pm 
Elena ZwetkowMar 10, 2011 12:16 am 
agentzhMar 10, 2011 12:28 am 
Elena ZwetkowMar 10, 2011 1:01 am 
agentzhMar 10, 2011 1:33 am 
Alexander KunzMar 15, 2011 3:14 pm 
agentzhMar 15, 2011 7:28 pm 
Alexander KunzMar 16, 2011 12:22 am 
agentzhMar 16, 2011 12:36 am 
Subject:Re: [ANN] ngx_echo v0.35: ability to POST/PUT local files as subrequest bodies
From:agentzh (agen@gmail.com)
Date:Mar 10, 2011 1:33:29 am
List:ru.sysoev.nginx

On Thu, Mar 10, 2011 at 5:01 PM, Elena Zwetkow <ezwe@gmx.de> wrote:

Thanks so much for the detailed information.

Storing uploaded data nonblocking sounds not so easy... What do you think about
a solution sending data as base64 encoded sting, then i can use your form-input
addon and send this data directly to redis?

When your data is small enough to be hold in RAM, just use ngx_lua as the glue. Use

lua_need_request_body on in nginx.conf + client_body_in_single_buffer on in nginx.conf + ngx.var.request_body + ngx.decode_base64() + ngx.location.capture() in Lua + ngx_redis2 in nginx.conf

Then it'll no longer block on disk operations because no disk operations will be involved.