OpenResty is a web application platform that combines the Nginx web server with LuaJIT and a collection of integrated modules. It allows developers to execute application logic directly within Nginx worker processes, turning a conventional web server into a programmable environment for HTTP services, web applications and gateways. OpenResty is not a fork of Nginx. It is a broader platform that incorporates Nginx as one of its components.
The platform uses Nginx’s event-driven architecture to handle concurrent requests without assigning a separate thread to every connection. Application code can communicate with databases, caches and external services through non-blocking operations, reducing the need for a separate application server in many deployments. Its combination of request processing, networking and scripting facilities is particularly suited to API gateways, reverse proxies and applications that need fine-grained control over HTTP traffic.
This is free and open source software.
Key Features
- Combines the Nginx core with LuaJIT and integrated Nginx modules.
- Executes application logic within Nginx worker processes.
- Provides scripting hooks for different phases of HTTP request processing.
- Uses an event-driven architecture for handling concurrent connections.
- Supports non-blocking network communication through the cosocket API.
- Provides connectivity to services including MySQL, PostgreSQL, Redis and Memcached through compatible libraries.
- Supports dynamic request routing, response generation and reverse proxy behaviour.
- Offers shared-memory dictionaries for caching and exchanging data between worker processes.
- Provides timers for running background tasks within the server environment.
- Supports configurable SSL/TLS processing and certificate management through compatible modules.
- Includes facilities for manipulating HTTP headers, request bodies and response content.
- Supports regular-expression processing and string manipulation through optimised libraries.
- Provides access to HTTP and stream-processing functionality through integrated modules.
- Includes the OpenResty Package Manager for obtaining reusable server-side libraries.
- Can read resolver settings from resolv.conf through an OpenResty-specific extension.
- Cross-platform support – runs on Linux, macOS, and Windows.
Website: github.com/openresty
Support:
Developer: OpenResty Software Foundation
License: BSD 2-Clause ‘Simplified’ License
OpenResty is written in C. Learn C with our recommended free books and free tutorials.
Related Software
| Application Servers for Lua | |
|---|---|
| OpenResty | Turns Nginx into a Full-Fledged Scriptable Web Platform |
| Tarantool | Fast, scalable in-memory computing platform with an application server |
| msgscript | Function and application server |
Read our verdict in the software roundup.
| Lua Web Frameworks | |
|---|---|
| OpenResty | Turns Nginx into a Full-Fledged Scriptable Web Platform |
| Lapis | Web framework for Lua/MoonScript supporting OpenResty or http.server |
| Fullmoon | Fast and minimalistic web framework based on Redbean |
| Turbo | Framework built for LuaJIT 2 |
| Luvit | Node.JS for the Lua Inventor |
| Vanilla | OpenResty Lua MVC web framework |
| Losty | Functional-style web framework for OpenResty |
| Sailor | Lua MVC web framework |
| Orbit | MVC web framework for Lua |
Read our verdict in the software roundup.
LinuxLinks helps you discover the best free and open source software for Linux. Explore our extensive collection of recommended applications, including alternatives to popular proprietary software.We also publish software reviews, Linux tutorials, hardware reviews, free programming books and articles covering the wider open source community. Browse our Linux resources to discover more. Know a useful free and open source Linux application we haven't covered? Suggest a program for inclusion. Has your software been featured on LinuxLinks? Display one of our Featured on LinuxLinks badges on your website or GitHub README. |


Please read our Comment Policy before commenting.