Get the latest tech news

Lapis: A Web Framework for Lua


types.params_map, improved model:update: changelog Lapis is a framework for building web applications in Lua (or MoonScript) that primarily targets OpenResty, a high performance web platform that runs on a customized version of Nginx. Lapis can also be used in other server environments, being compatible with any modern version of Lua.

With OpenResty, Lua is run directly inside of the Nginx worker using LuaJIT, giving you the smallest barrier between the webserver and your code. Utilizing the power of Lua coroutines, you can write clean code that looks synchronous but can achieve high throughput by automatically running asynchronously without blocking. Networking operations like database queries and HTTP requests will automatically yield to allow for handling concurrent requests, all without all that callback spaghetti seen in other asynchronous platforms.

Get the Android app

Or read this on Hacker News

Read more on:

Photo of lua

lua

Photo of web framework

web framework

Photo of lapis

lapis

Related news:

News photo

LunarML – The Standard ML compiler that produces Lua/JavaScript

News photo

How we manage individual user concurrencies with Nginx and Lua

News photo

Lunatik: Lunatik is a framework for scripting the Linux kernel with Lua