Re: Nginx, Lua and blocking libraries

2014-01-09 Thread Andre Nathan
Thanks a lot for the detailed answer, Yichun! I'll try to benchmark it, estimate the db size, see if it fits in memory, etc. Cheers, Andre signature.asc Description: OpenPGP digital signature ___ nginx mailing list nginx@nginx.org http://mailman.nginx

Re: Nginx, Lua and blocking libraries

2014-01-09 Thread Yichun Zhang (agentzh)
Hello! On Thu, Jan 9, 2014 at 5:35 AM, Andre Nathan wrote: > However, as known, > using the lua-sqlite3 library directly is not optimal because it would > block the Nginx worker process. > Well, I suggest you benchmark the actual performance and measure the actual blocking effect (We actually hav

Nginx, Lua and blocking libraries

2014-01-09 Thread Andre Nathan
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