Well, the goal of
luajit.io
is to re-implement nginx in pure lua, so withou question, it moves the
exact architecture into lua land, including the multi-processing
(master/workers) and event-poll model. So as long as you understand
nginx, you understand
luajit.io.
The
luajit.io
does not use multi-threading, but it indeed uses pthread API in
PTHREAD_PROCESS_SHARED mode, which is used to do locking upon the shared
memory among processes (see slab.lua and shdict.lua).
And note
that the DNS resolving uses getaddrinfo_a() from libc, which does async
queries in the background threads. But that's transparent to
.