← Back
Openresty

How to Install and Load Third-Party Lua Libraries in OpenResty

  • Check whether OpenResty already includes the library
  • Install a third-party library in the project with OPM
  • Configure lua_package_path and verify require
  • Troubleshoot module not found and choose another installation method
  • Check whether OpenResty already includes the library
  • Install a third-party library in the project with OPM
  • Configure lua_package_path and verify require
  • Troubleshoot module not found and choose another installation method

Lua for OpenResty: Essential Syntax, Error Handling, and I/O Pitfalls

  • OpenResty runs LuaJIT, based on Lua 5.1
  • The minimum syntax needed to read OpenResty code
  • res, err error handling and ngx.null
  • Avoid blocking I/O during request processing
  • OpenResty runs LuaJIT, based on Lua 5.1
  • The minimum syntax needed to read OpenResty code
  • res, err error handling and ngx.null
  • Avoid blocking I/O during request processing

OpenResty Components: Modules, Lua Libraries, and How to Check Them

  • What common components do
  • The difference between NGINX modules and Lua libraries
  • Where components are installed
  • Checking which components your installation includes
  • Common questions
Photo by Yichun Zhang
  • What common components do
  • The difference between NGINX modules and Lua libraries
  • Where components are installed
  • Checking which components your installation includes
  • Common questions

OpenResty vs. NGINX: When the Gateway Starts Running Business Logic

  • What OpenResty solves as gateways accumulate business logic
  • When OpenResty is needed compared with vanilla NGINX and njs
  • Performance differences and migration considerations
Photo by Yichun Zhang
  • What OpenResty solves as gateways accumulate business logic
  • When OpenResty is needed compared with vanilla NGINX and njs
  • Performance differences and migration considerations

High-Concurrency Redis Access in OpenResty: Stable Connection Counts, Lower P99 Latency

  • Smooth Day to Day, Down at Peak? Stop Connection Spikes and Quota Anxiety
  • When Upfront Lookups Slow Down, Users Wait for Pages and Results
  • Two GET Benchmarks: Much Higher Throughput, P99 Under 1 ms in Both
  • Smooth Day to Day, Down at Peak? Stop Connection Spikes and Quota Anxiety
  • When Upfront Lookups Slow Down, Users Wait for Pages and Results
  • Two GET Benchmarks: Much Higher Throughput, P99 Under 1 ms in Both

LuaJIT in OpenResty: How It Works and How luajit2 Differs

  • Which Lua runtime OpenResty uses
  • How Lua code runs inside Nginx workers
  • How LuaJIT interprets and compiles code
  • How luajit2 differs from upstream LuaJIT
  • How LuaJIT-plus relates to the standard runtime
  • LuaJIT vs luajit2: frequently asked questions
  • Where to continue reading by problem
  • Which Lua runtime OpenResty uses
  • How Lua code runs inside Nginx workers
  • How LuaJIT interprets and compiles code
  • How luajit2 differs from upstream LuaJIT
  • How LuaJIT-plus relates to the standard runtime
  • LuaJIT vs luajit2: frequently asked questions
  • Where to continue reading by problem

What Is OpenResty? From Nginx and LuaJIT to Real-World Use Cases

  • What OpenResty Is Used For
  • How OpenResty Works
  • Do You Need to Know Lua?
  • Is OpenResty a Web Server? How Does It Relate to Nginx?
  • What OpenResty Is Made Of
  • Who Uses OpenResty
  • Who Maintains OpenResty
  • FAQ
Photo by Yichun Zhang
  • What OpenResty Is Used For
  • How OpenResty Works
  • Do You Need to Know Lua?
  • Is OpenResty a Web Server? How Does It Relate to Nginx?
  • What OpenResty Is Made Of
  • Who Uses OpenResty
  • Who Maintains OpenResty
  • FAQ

Install OpenResty - Complete Setup Guide for All Platforms

  • Supported Platforms
  • Quick Start (Ubuntu / Debian)
  • Platform Installation Guides
  • ARM64 / Aarch64
  • Alpine Linux
  • macOS & Building from Source
  • Verify Your Installation
  • FAQ
  • Supported Platforms
  • Quick Start (Ubuntu / Debian)
  • Platform Installation Guides
  • ARM64 / Aarch64
  • Alpine Linux
  • macOS & Building from Source
  • Verify Your Installation
  • FAQ

TLS Session Resumption in Nginx Clusters: Zero-Downtime Key Rotation

  • Why Session Ticket Key Management Is Harder Than It Looks
  • How lua-resty-tls-session Rotates Session Ticket Keys Without Restarts
  • Comparing the Three Approaches
  • Quantifying Latency Reduction and Uptime Gains
  • FAQ
  • Why Session Ticket Key Management Is Harder Than It Looks
  • How lua-resty-tls-session Rotates Session Ticket Keys Without Restarts
  • Comparing the Three Approaches
  • Quantifying Latency Reduction and Uptime Gains
  • FAQ

OpenResty: The Trusted Choice for Developers Worldwide

  • Why Are Developers Worldwide Choosing OpenResty?
  • User Testimonials: Authentic Endorsements from the Front Lines
  • Technical Prowess: Making Excellence the Norm
  • Experience OpenResty’s Exceptional Performance Firsthand
Photo by Yichun Zhang
  • Why Are Developers Worldwide Choosing OpenResty?
  • User Testimonials: Authentic Endorsements from the Front Lines
  • Technical Prowess: Making Excellence the Norm
  • Experience OpenResty’s Exceptional Performance Firsthand

Find Leaked Lua Tables: the registry / _LOADED (package.loaded) Reference Path in OpenResty XRay

  • How LuaJIT manages memory
  • OpenResty XRay’s command-line tools
  • A leaking Lua table example
  • Breaking down memory by LuaJIT GC object type
  • Reading the lj-gco-ref flame graph: registry, _LOADED, package.loaded
  • Fully-automated Lua memory leak analysis
  • How LuaJIT manages memory
  • OpenResty XRay’s command-line tools
  • A leaking Lua table example
  • Breaking down memory by LuaJIT GC object type
  • Reading the lj-gco-ref flame graph: registry, _LOADED, package.loaded
  • Fully-automated Lua memory leak analysis

OpenResty 1.21.4.2 RC1 is out

  • Source package
  • Windows binary packages
  • Version highlights
  • Source package
  • Windows binary packages
  • Version highlights

OpenResty 1.19.9.1 released

  • Version highlights
  • Full Changelog
  • Alpine 3.14 official release
  • Version highlights
  • Full Changelog
  • Alpine 3.14 official release

OpenResty 1.19.9.1 RC1 is out

  • Source package
  • Windows binary packages
  • Version highlights
  • Source package
  • Windows binary packages
  • Version highlights

Lua CPU Flame Graphs: Profiling LuaJIT in Production

  • What Is a Lua CPU Flame Graph
  • Profiling simple LuaJIT apps: verifying accuracy
  • Profiling complex LuaJIT apps in production
  • Sampling Overhead
  • Production safety: not a single bit changed
  • Compatibility
  • FAQ
Photo by Guido Jansen
  • What Is a Lua CPU Flame Graph
  • Profiling simple LuaJIT apps: verifying accuracy
  • Profiling complex LuaJIT apps in production
  • Sampling Overhead
  • Production safety: not a single bit changed
  • Compatibility
  • FAQ

OpenResty 1.17.8.1 released

  • OpenResty 1.17.8.1 released
  • Full Changelog
  • The Next Release
  • OpenResty 1.17.8.1 released
  • Full Changelog
  • The Next Release

The OpenResty 10-Year Community Report: OpenSource Projects

  • The OpenResty 10-Year Community Report: OpenSource Projects
  • Milestones Overview
  • Search Stats – an Increasing Trend
  • Contribution Stats – Rising Numbers
  • Final Thank You
  • The OpenResty 10-Year Community Report: OpenSource Projects
  • Milestones Overview
  • Search Stats – an Increasing Trend
  • Contribution Stats – Rising Numbers
  • Final Thank You
Contact us

Love to hear from you, Get in touch 👋

Message was sent successfully!

Our Team will get back to you within 24 hours.
x