Tagged with "lua"

Streaming HTTP Response Output in OpenResty
Feb 8, 2021 17 min Posted by Yichun Zhang
In this video, I’ll demonstrate how to do streaming HTTP response body output in OpenResty. 123cd ~/mkdir stream-resp/cd ... Read More »

Precompile Lua Modules into LuaJIT Bytecode to Speedup OpenResty Startup
Dec 9, 2020 14 min Posted by Yichun Zhang
This tutorial demonstrates how to pre-compile Lua modules into LuaJIT bytecode. This can help reduce the startup time of ... Read More »

Timing Lua Code Correctly in OpenResty
Dec 7, 2020 11 min Posted by Yichun Zhang
This tutorial demonstrates both the right ways and wrong ways of benchmarking user Lua code in OpenResty. 123cd ~mkdir ti... Read More »

Share Data Across Requests Served by OpenResty
Dec 1, 2020 13 min Posted by Yichun Zhang
This tutorial will demonstrate how to share data across different HTTP requests served by an OpenResty application. 12345... Read More »

The resty Command-Line Utility Demo
Nov 29, 2020 14 min Posted by Yichun Zhang
In this tutroial, we will demonstrate how to use the resty command-line utility shipped with OpenResty. 123cd ~export PAT... Read More »

Write Your Own Lua Modules for OpenResty Applications
Nov 15, 2020 13 min Posted by Yichun Zhang
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 »

Hello World HTTP Example in OpenResty
Nov 14, 2020 9 min Posted by Yichun Zhang
This tutorial demonstrates how to implement a “hello world” HTTP interface using OpenResty. First of all, we make sure w... Read More »

Introduction to Lua-Land CPU Flame Graphs
Aug 31, 2020 38 min Posted by Yichun Zhang
What is a Flame Graph Simple Lua samples Complicated Lua applications... Read More »