Welcome! Log In Create A New Profile

Advanced

Re: [ANN] ngx_lua v0.1.5: ability to capture multiple parallel subrequests

agentzh
February 10, 2011 05:38AM
On Thu, Feb 10, 2011 at 6:26 PM, Alexander Kunz <akunz@ntmedia.de> wrote:
> Thanks for sharing so many of your Nginx addons, Nginx scripting is so
> exciting. I read
> your 2 slides about Nginx scripting. Very intersting, are there some more
> examples or informations
> about Nginx scripting?
>

Maybe my blog count? ;)

http://agentzh.blogspot.com/

I do have the plan of writing a bunch of (detailed) tutorials on this this year.

> I try out your example, you subrequest on a redis location. I use the redis2
> addon, but i
> allways get in the first line the bytes for my redis request. Is there a
> solution hide this information?

The ngx_redis2 module returns the raw TCP response from the redis
server. It's recommended to use my lua-redis-parser module (written in
pure C) to parse these responses into lua data structure:

https://github.com/agentzh/lua-redis-parser

If you only want to use the "get" redis command, you can try out the
ngx_redis module here:

http://wiki.nginx.org/HttpRedis

It returns the parsed content part of the redis response because only
"get" is needed to implement.

> So it would be possible to use redis2 for caching whole HTML pages.
>

Right, using ngx_srcache + ngx_lua + lua-redis-parser. See ngx_srcache
for details:

http://github.com/agentzh/srcache-nginx-module

It's much like Apache2's mod_cache, but only support silly response
body caching (for now) and is 100% non-blocking. I're already using
ngx_srcache + ngx_memc to cache responses via memcached in production.

> Have a nice day agentzh!
>

Thanks! :) The same to you ;)

Cheers,
-agentzh

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

[ANN] ngx_lua v0.1.5: ability to capture multiple parallel subrequests

agentzh February 09, 2011 05:08AM

Re: [ANN] ngx_lua v0.1.5: ability to capture multiple parallel subrequests

agentzh February 10, 2011 12:34AM

Re: [ANN] ngx_lua v0.1.5: ability to capture multiple parallel subrequests

Eugaia February 10, 2011 04:08AM

Re: [ANN] ngx_lua v0.1.5: ability to capture multiple parallel subrequests

Alexander Kunz February 10, 2011 05:28AM

Re: [ANN] ngx_lua v0.1.5: ability to capture multiple parallel subrequests

agentzh February 10, 2011 05:38AM

Re: [ANN] ngx_lua v0.1.5: ability to capture multiple parallel subrequests

Roman Vasilyev February 10, 2011 05:42PM

Re: [ANN] ngx_lua v0.1.5: ability to capture multiple parallel subrequests

Roman Vasilyev February 10, 2011 05:44PM

Re: [ANN] ngx_lua v0.1.5: ability to capture multiple parallel subrequests

kindy February 10, 2011 09:06PM

Re: [ANN] ngx_lua v0.1.5: ability to capture multiple parallel subrequests

agentzh February 11, 2011 12:06AM

Re: [ANN] ngx_lua v0.1.5: ability to capture multiple parallel subrequests

Roman Vasilyev February 11, 2011 03:00PM

Re: [ANN] ngx_lua v0.1.5: ability to capture multiple parallel subrequests

agentzh August 09, 2011 12:04AM

Re: [ANN] ngx_lua v0.1.5: ability to capture multiple parallel subrequests

agentzh August 09, 2011 12:06AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 166
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