I recently researched high-performance gateways and learned about Lua. Here is a memo.
The Moon
http://www.runoob.com/lua/lua-tutorial.html
OpenResty:
http://openresty.org/cn/
https://moonbingbing.gitbooks.io/openresty-best-practices/content/index.html