OpenResty® Scalable Web Platform by Extending NGINX with Lua

New! OpenResty is now released!
New! New blog post Limit Request Rate by Custom Keys in OpenResty Edge is published.

Lua Resty Lock Library

Yichun Zhang , 30 Sep 2013 (created 30 Sep 2013)

This Lua library implements a simple nonblocking mutex lock API based on Lua Nginx Module's shared memory dictionaries. Mostly useful for eliminating "dog-pile effects".

Project homepage:

This library is enabled by default. You can specify the --without-lua_resty_lock option to OpenResty's ./configure script to explicitly disable it.