4 ms·
Also take a look at OpenResty, which bundles LuaJIT for Lua/nginx-based web app development, using the nginx event loop to do async I/O: OpenResty aims to run
by mambodog 15y ago
Also take a look at OpenResty, which bundles LuaJIT for Lua/nginx-based web app development, using the nginx event loop to do async I/O:
OpenResty aims to run your server-side web app completely in the Nginx server, leveraging Nginx's event model to do non-blocking I/O not only with the HTTP clients, but also with remote backends like MySQL, PostgreSQL, Memcached, and Redis.
http://openresty.org/ http://openresty.org/
- gregholmberg 15y agoWow. OpenResty seems to offer considerably lower app connect time compared with bare PHP in a FastCGI process manager for this "hello world" benchmark, in addition to some unbelievable throughout. app GETs/sec throughput time to 1st byte, min/mean/max, milliseconds Nginx + PHP/FPM 5,941 65KB/sec 0.72 / 1.63 / 6.75 Node 0.6.1 10,242 123KB/sec 0.08 / 0.92 / 14.24 OpenResty 27,924 335KB/sec 0.07 / 0.26 / 5.36 The default config for OpenResty does not even use LuaJIT. Data rounded for easier comparisons. See the gory details at http://openresty.org/#Benchmark http://openresty.org/#Benchmark Thanks for the pointer!