OpenResty® Scalable Web Platform by Extending NGINX with Lua

OpenResty XRay
Advanced observability built for OpenResty and more
×

limited time offer

Request TRIAL today and receive a diagnostic REPORT
Learn more
New! OpenResty 1.21.4.1 is now released!
New! Test::Nginx 0.30 is now released!

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: https://github.com/agentzh/lua-resty-lock

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