[ANN] ngx_echo v0.35: ability to POST/PUT local files as subrequest bodies
agentzh at gmail.com
Thu Mar 10 12:34:02 MSK 2011
On Thu, Mar 10, 2011 at 5:01 PM, Elena Zwetkow <ezwetkow at 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.
More information about the nginx