Tagged with "lua"

Photo by Michal Matlon

Streaming HTTP Response Output in OpenResty

In this video, I’ll demonstrate how to do streaming HTTP response body output in OpenResty. 123cd ~/mkdir stream-resp/cd ... Read More »

Photo by Yichun Zhang

Precompile Lua Modules into LuaJIT Bytecode to Speedup OpenResty Startup

This tutorial demonstrates how to pre-compile Lua modules into LuaJIT bytecode. This can help reduce the startup time of ... Read More »

Photo by Andrik Langfield

Timing Lua Code Correctly in OpenResty

This tutorial demonstrates both the right ways and wrong ways of benchmarking user Lua code in OpenResty. 123cd ~mkdir ti... Read More »

Photo by Gautam Ganguly

Share Data Across Requests Served by OpenResty

This tutorial will demonstrate how to share data across different HTTP requests served by an OpenResty application. 12345... Read More »

Photo by Markus Spiske & Yichun Zhang

The resty Command-Line Utility Demo

In this tutroial, we will demonstrate how to use the resty command-line utility shipped with OpenResty. 123cd ~export PAT... Read More »

Photo by Gerry Roarty

Write Your Own Lua Modules for OpenResty Applications

Today I’d demonstrate how to write your own Lua modules in your OpenResty applications, step by step. Let’s put our simp... Read More »

Photo by 2Photo Pots

Hello World HTTP Example in OpenResty

This tutorial demonstrates how to implement a “hello world” HTTP interface using OpenResty. First of all, we make sure w... Read More »

Photo by Guido Jansen

Introduction to Lua-Land CPU Flame Graphs

What is a Flame Graph Simple Lua samples Complicated Lua applications... Read More »