njs in Production

September 10, 2019 2:25 pm — September 10, 2019 3:00 pm 

The NGINX JavaScript module (njs) is technology introduced by NGINX’s core team in 2015. The aim of NJS is to augment C‑language and LuaJit modules. Sounds good, right?

Vasiliy started researching njs not long ago, and as a result ended up replacing some of his C and LuaJit modules with njs. In this session, Vasiliy shares some results of his work.

After detailing how njs works, Vasiliy shows how it can help make NGINX more flexible, and make it easier to test new features rapidly. He covers some general pros and cons, discusses which use cases njs is suited (and not suited) for, and compares it with C and LuaJit modules. He also talks about njs performance and lists features he would like to see in future releases.