Hacker News new | ask | show | jobs
by aosaigh 3537 days ago
As a matter of interest, what makes nginx so fast?
1 comments

Tight C, and more importantly, very little dynamic/runtime support.

(Eg, nearly static configuration, very few flow or looping constructs, unless you explicitly use something optional like Lua)

> unless you explicitly use something optional like Lua

I've actually at one point considered writing some light web apps as nginx modules, in Lua. In the end though, it's usually enough to pluck the lowest hanging fruit, which (as a rule is) caching... Cache as much as possible (including when you have a python web app behind nginx).

You might be interested in OpenResty.