2020 Dec

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 »

Lookup OpenResty Documentation on Terminal with restydoc
Dec 2, 2020 9 min Posted by Yichun Zhang
This tutorial demonstrates how to use OpenResty’s restydoc command-line utility to quickly lookup OpenResty documentation... 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 »