O'Reilly logo

NGINX High Performance by Rahul Sharma

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

The NGINX Lua module

NGINX has the nginx_lua module developed by Openresty.org that can be used to leverage Lua scripting. The module integrates Lua threads into the NGINX event model to enable asynchronous code execution. The module shares the loaded Lua libraries across all requests but segregates request contexts using Lua threads, thus resulting in a small memory footprint.

Note

Openresty.org provides a complete web server package with an NGINX core, nginx_lua, LuaJIT, and a host of NGINX modules that can be used to deploy applications.

Installation

This module is not enabled by default and needs to be built with NGINX. The module requires the Lua 5.1 version with the LuaJIT 2.0/ 2.1 interpreter. Download the latest version of the module from ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required