[ANN] ngx_echo v0.35: ability to POST/PUT local files as subrequest bodies
Valery Kholodkov
valery+nginxen at grid.net.ru
Mon Feb 7 22:41:51 MSK 2011
agentzh wrote:
> Hi, folks!
>
> I'm happy to announce the v0.35 release of the ngx_echo module, which
> features the ability to POST/PUT location files as subrequest bodies
> via the -f option of the echo_subrequest and echo_subrequest_async
> directives.
>
> You can get the release tarball from the download page below
>
> https://github.com/agentzh/echo-nginx-module/downloads
>
> This new feature was implemented by Bernd Dorn. Many thanks to him ;)
>
> Bernd uses the nginx upload module to upload big files and he wants to
> issue a PUT subrequest with the uploaded file to store the file
> somewhere else based on its hash (hash generation is done by the
> upload module). So it's nice to have something like a file option to
> replace the "-b" option in the echo_subrequest directive like this:
>
> echo_subrequest PUT /some_upstream/$upload_file_md5 -f $upload_tmp_path
That's bizarre! Combined with mogilefs module this gives an ultimately
scalable storage solution out of the box for free!
Congrats agentzh!
> The echo module wraps lots of Nginx internal APIs for streaming input
> and output, parallel/sequential subrequests, timers and sleeping, as
> well as various meta data accessing. You can read the full
> documentation on the following wiki page:
>
> http://wiki.nginx.org/HttpEchoModule
>
> and you can always get the latest source code from GitHub:
>
> http://github.com/agentzh/echo-nginx-module
--
Best regards,
Valery Kholodkov
More information about the nginx
mailing list