Welcome! Log In Create A New Profile

Advanced

Nginx, Lua and blocking libraries

Andre Nathan
January 09, 2014 08:36AM
Hello

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,
Andre

_______________________________________________
nginx mailing list
nginx@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx
Subject Author Posted

Nginx, Lua and blocking libraries

Andre Nathan January 09, 2014 08:36AM

Re: Nginx, Lua and blocking libraries

Yichun Zhang (agentzh) January 09, 2014 12:34PM

Re: Nginx, Lua and blocking libraries

Andre Nathan January 09, 2014 01:24PM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 188
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready