4 ms·
> Is Lua backend-able? Yes and some of the largest web infrastructures in the world run on it! I'm not sure if it's still true, but it's my understanding that
by VWWHFSfQ 4y ago
> Is Lua backend-able?
Yes and some of the largest web infrastructures in the world run on it! I'm not sure if it's still true, but it's my understanding that CloudFlare runs it at the edge globally. I personally know of several other _very large services_ running it at massive scale.
In my experience Lua in nginx is such a pleasure to work with. It's all transparently async using nginx's event loop. You just write regular procedural code in Lua and the runtime handles yielding/resuming for you automatically. There's no special async/await stuff. Just write your Lua code and the runtime figures out the yield points internally. It's a breath of fresh air.
[0] https://openresty.org https://openresty.org
[1] https://en.wikipedia.org/wiki/OpenResty https://en.wikipedia.org/wiki/OpenResty
Edit:
This was from several years ago, but CloudFlare built their WAF product on nginx/Lua:
https://blog.cloudflare.com/cloudflares-new-waf-compiling-to-lua/ https://blog.cloudflare.com/cloudflares-new-waf-compiling-to...
- formerly_proven 4y agoLikely more because of Mike Pall's LuaJIT instead of the traditional reference implementation.
- adolph 4y agoIs Kong still OpenResty based?
- VWWHFSfQ 4y agoYes Kong is a custom distribution of OpenResty