Welcome! Log In Create A New Profile

Advanced

Re: Dynamic Redirects

agentzh
July 27, 2011 12:18AM
On Thu, Apr 8, 2010 at 5:27 AM, Reinis Rozitis <r@roze.lv> wrote:
> While you can prolly try use this
> http://github.com/chaoslawful/drizzle-nginx-module (although iirc the
> possibility to get a single return value as variable back is still in TODO)
>

You can use the ngx_rds_json module to emit JSON from the RDS reply
generated by ngx_drizzle (and ngx_postgres), and use a decent lua JSON
library like lua-cjson or lua-yajl to parse it into Lua data
structures and proceed processing.

> I would imagine that using some dynamic language (like php or even the
> embeded perl (if you really want to do this on server side)) is more simple
> and while client is being redirected its still more or less transparent to
> him.
>

PHP and the Embedded Perl addon are all blocking on backend requests
to mysql/postgres/redis/whatever. The penalty and impact of the latter
is more serious if one does not start *many* nginx worker processes.
Well, anyway, if one doesn't care about performance, especially
concurrency, then whatever methods can be used :)

Regards,
-agentzh

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

Dynamic Redirects

Harmer, Sean April 07, 2010 03:12PM

Re: Dynamic Redirects

Ezra Zygmuntowicz April 07, 2010 03:36PM

Re: Dynamic Redirects

Harmer, Sean April 07, 2010 04:38PM

Re: Dynamic Redirects

runesoerensen July 26, 2011 10:38PM

Re: Dynamic Redirects

Reinis Rozitis April 07, 2010 05:30PM

Re: Dynamic Redirects

Anonymous User April 07, 2010 06:24PM

Re: Dynamic Redirects

agentzh July 27, 2011 12:18AM

Re: Dynamic Redirects

Manlio Perillo April 07, 2010 05:44PM

Re: Dynamic Redirects

agentzh July 26, 2011 11:50PM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

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