talira

OpenResty

Scalable web platform built by extending Nginx with Lua

open sourceBSD-2-Clauseself-hostablefree

OpenResty is an open source web platform that bundles an enhanced nginx core with LuaJIT, many third-party Nginx modules and their dependencies, so you can write high-performance web applications, API gateways and reverse-proxy logic in Lua that runs inside Nginx's event loop. It handles tens of thousands of concurrent connections, and its Lua libraries talk to MySQL, PostgreSQL, Redis and Memcached without blocking. It's the base of several API gateways and WAFs. OpenResty Inc. maintains it and sells OpenResty XRay, an observability product, separately.

Problems it solves

  • add custom logic to my nginx reverse proxy without writing a C module
  • build a fast API gateway with request auth and rate limiting in nginx
  • run scripts inside nginx to rewrite requests and responses
  • a high-concurrency web server I can program in Lua

Features

  • Nginx core with LuaJIT
  • Lua scripting in every request phase
  • non-blocking Lua clients for MySQL, PostgreSQL, Redis and Memcached
  • bundled third-party Nginx modules
  • official Linux packages

Capabilities

Takes pluginsplan not known

Alternatives

The same job

These do what OpenResty does.

  1. nginx HTTP web server, reverse proxy, content cache, load balancer, TCP/UDP proxy server, and mail proxy server
  2. Caddy The Ultimate Server with Automatic HTTPS
  3. Angie Drop-in replacement for nginx, forked by its former developers
  4. lighttpd A secure, fast, compliant and very flexible web server

Compare OpenResty with the top 3