dcurtis

Nginx and Lua ←

For several months, we’ve been gradually integrating Lua into Mixlr’s front-end Nginx configuration.

Lua is a dynamic scripting language which can be embedded inside Nginx config files. This means that arbitrary Lua code can be executed inline during any phase of the Nginx request-handling process.

We started off just using Lua to route requests around backend servers, but it has ended up having a much more profound impact on our infrastructure.

Here are some things we make it do.

0 Notes