OpenResty is a series of open-source Nginx modules building on top of Nginx's core functionality. One of its shining features is embedding the Lua interpreter into Nginx, enabling users to script Nginx with dynamic behavior using the Lua programming language. Lua is a lightweight, minimalistic scripting language whose very purpose is to be embedded in high-performing applications. This makes it possible to create middleware, API gateways, web application firewalls, load balancers, and more directly in the Nginx runtime - no proxying to a separate service. In this presentation, we will start with a light introduction to OpenResty and how it interacts with Nginx, as well as a primer to Lua. We will then build a fully-functioning CRUD REST API in Lua, complete with a SQL database. Basic knowledge of web servers is prerequisite. There will be a Docker image available for those who'd like to follow along. [207]

Comments

Comments are closed.