OpenResty
Web server based on nginx and LuaJIT
OpenResty is an nginx distribution which includes the LuaJIT interpreter for Lua scripts. The software was created by Yichun Zhang. It was originally sponsored by Taobao before 2011 and was mainly supported by Cloudflare from 2012 to 2016. Since 2017, it has been mainly supported by OpenResty Software Foundation and OpenResty Inc.
OpenResty is designed to build scalable web applications, web services, and dynamic web gateways. The OpenResty architecture is based on several nginx modules which have been extended in order to expand nginx into a web app server to handle large number of requests. OpenResty aims to run Lua server-side applications completely in the Nginx server, leveraging its event model to do non-blocking I/O not only for client connections, but also with remote resources, such as databases.
01History
In October 2007, OpenResty began at Yahoo! China as an Open API web service framework written mostly in Perl. Its README at CPAN describes it as "A REST wrapper for relational databases" enabling "100% JavaScript web sites and other RIAs" via PostgreSQL.
In September 2009, OpenResty was redeveloped at Taobao as ngx_openresty, a Lua application server based upon an extended repackaging of nginx and LuaJIT with plug-in server extension modules written in C.
Sources and credits
This article is adapted from the Wikipedia article “OpenResty”, written by its contributors and licensed under CC BY-SA 4.0. Fathomly has changed the layout, removed citation markers, navigation and maintenance notices, and adjusted punctuation. This adapted version is shared under the same license. For references, see the original article.
Fathomly is not affiliated with or endorsed by the Wikimedia Foundation. Spotted a problem? Tell us.