Welcome! Log In Create A New Profile

Advanced

Re: Use nginx to call shell script - simplest way?

agentzh
March 09, 2011 10:56PM
On Thu, Mar 10, 2011 at 3:15 AM, Richard Kearsley
<Richard.Kearsley@m247.com> wrote:
> Can't get much simpler than that lua example...

Heh :)

> Agentzh, I'm not too familiar with lua but your module helped me do something really
> important that I needed.

Oh, my pleasure ;)

(BTW, please do *not* capitalize my nick. it makes me feel uncomfortable ;))

> Is that os.execute a lua feature or an nginx_lua feature?

It's a standard Lua feature. The "os" package is a standard one.

> I'm sure there are a lot more ways it can be useful. Any plans to post up more examples that would suprise us with what's possible?
>

In our production web sites, we're using ngx_lua to do full server
side web application development. It issues nginx subrequests to
internal nginx locations configured by ngx_drizzle, ngx_memc,
ngx_redis2, ngx_proxy (and many other upstream modules) to fire out
non-blocking queries to our (big) mysql clusters, memcached clusters,
tokyotyrant clusters, redis clusters, Taobao Open Platform (TOP) web
services, and many other internal backends.

We also intergrate our full-fledged SQL engine written in pure Lua
into nginx (by means of ngx_lua) to do complex relational data mash-up
of various different data-sources directly in memory. And we invented
LZSQL [1] which is a high-level language for abstracting away the
difference between SQL requires running remotely (i.e., in a mysql
node) and SQL queries running locally (i.e., directly within the nginx
core). Most of our business logic for data products is written in
LZSQL.

Cheers,
-agentzh

[1] See http://agentzh.blogspot.com/2010/09/lzsql-compiler-hacking-and-future.html

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

Use nginx to call shell script - simplest way?

J2R March 08, 2011 07:12AM

Re: Use nginx to call shell script - simplest way?

agentzh March 08, 2011 07:22AM

Re: Use nginx to call shell script - simplest way?

J2R March 09, 2011 01:52PM

Re: Use nginx to call shell script - simplest way?

Richard Kearsley March 09, 2011 02:18PM

Re: Use nginx to call shell script - simplest way?

J2R March 09, 2011 03:48PM

Re: Use nginx to call shell script - simplest way?

agentzh March 09, 2011 10:42PM

Re: Use nginx to call shell script - simplest way?

agentzh March 09, 2011 10:56PM

Re: [ANN] ngx_echo v0.35: ability to POST/PUT local files as subrequest bodies

Elena Zwetkow March 10, 2011 03:20AM

Re: [ANN] ngx_echo v0.35: ability to POST/PUT local files as subrequest bodies

agentzh March 10, 2011 03:32AM

Re: [ANN] ngx_echo v0.35: ability to POST/PUT local files as subrequest bodies

Elena Zwetkow March 10, 2011 04:06AM

Re: [ANN] ngx_echo v0.35: ability to POST/PUT local files as subrequest bodies

agentzh March 10, 2011 04:36AM

Re: [ANN] ngx_echo v0.35: ability to POST/PUT local files as subrequest bodies

Alexander Kunz March 15, 2011 06:20PM

Re: [ANN] ngx_echo v0.35: ability to POST/PUT local files as subrequest bodies

agentzh March 15, 2011 10:32PM

Re: [ANN] ngx_echo v0.35: ability to POST/PUT local files as subrequest bodies

Alexander Kunz March 16, 2011 03:26AM

Re: [ANN] ngx_echo v0.35: ability to POST/PUT local files as subrequest bodies

agentzh March 16, 2011 03:40AM

Re: Use nginx to call shell script - simplest way?

António P. P. Almeida March 08, 2011 02:08PM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 85
Record Number of Users: 6 on February 13, 2018
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready