Nginx, Lua and blocking libraries

Andre Nathan andre at
Thu Jan 9 13:35:17 UTC 2014


I'm considering the possibility of implementing a project using Nginx
and the Lua module. One of the requirements of the project is that the
code must use an embedded database such as SQLite. However, as known,
using the lua-sqlite3 library directly is not optimal because it would
block the Nginx worker process.

My question is, is there a way to work around this in any way? For
example, creating a coroutine to run the lua-sqlite3 calls?

If not, does anyone know of some other embedded database that works well
with the Lua Nginx module?

Thank you in advance,

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 555 bytes
Desc: OpenPGP digital signature
URL: <>

More information about the nginx mailing list