# Ngx\_lua v0.1.0: scripting nginx with Lua

**URL:** <https://www.ruby-forum.com/t/ngx-lua-v0-1-0-scripting-nginx-with-lua/201381>\
**Category:** NGINX\
**Created:** [January 6, 2011, 10:28am UTC](https://www.ruby-forum.com/t/ngx-lua-v0-1-0-scripting-nginx-with-lua/201381 "2011-01-06T10:28:08Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![dubstep](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/d/cdc98d/32.png) [@dubstep](https://www.ruby-forum.com/u/dubstep)\
**Post date:** [January 6, 2011, 10:28am UTC](https://www.ruby-forum.com/t/ngx-lua-v0-1-0-scripting-nginx-with-lua/201381/1 "2011-01-06T10:28:08Z")

</div>

Hi, folks!

I’m happy to announce the first public release of the ngx\_lua module,  
v0.1.0:

```
https://github.com/chaoslawful/lua-nginx-module/tarball/v0.1.0

```

ngx\_lua This module embeds the Lua/LuaJIT interpreter into the nginx  
core and integrates the powerful Lua threads (aka Lua coroutines) into  
the nginx event model by means of nginx subrequests.

Unlike Apache’s mod\_lua and Lighttpd’s mod\_magnet, Lua code written  
atop this module can be 100% non-blocking on network traffic as long  
as you use the ngx.location.capture interface to let the nginx core do  
all your requests to mysql, postgresql, memcached, redis, upstream  
http web services, and etc etc etc (see ngx\_drizzle, ngx\_postgres,  
ngx\_memc, ngx\_redis2, and ngx\_proxy modules for details).

You can find the latest source code as well as the latest documentation  
here:

```
http://github.com/chaoslawful/lua-nginx-module

```

We’ve already run ngx\_lua as well as dozens of other nginx C modules  
in [Taobao.com](http://Taobao.com)’s web applications for months and this module is  
considered production ready.

With ngx\_lua, it’s now possible to construct true C10K-capable web  
applications because everything can be trivially made non-blocking,  
not only the network traffic between the clients, but also the traffic  
to the backends like RDBMS and memcached clusters. And we’ve been  
working hard to make it a much better substitution for traditional web  
development solutions like PHP, not only in terms of performance, but  
also ease of use.

Enjoy!  
-agentzh
