1. React
  2. JSConf EU
  3. 2019
  4. llhttp - new HTTP 1.1 parser for Node.js

llhttp - new HTTP 1.1 parser for Node.js

Fedor Indutny at JSConf EU 2019

Node.js has been using a derivative of nginx’s parser with a lot of customization/rewrite since its inception. Despite being fast enough, the project architecture made it very hard to maintain in a long run. To mitigate that, the author has created a tool to generate the new HTTP parser called “llhttp” from the TypeScript code in understandable, verifiable, and maintainable way. Incidentally, the performance of “llhttp” is two times better than of the old parser. In this talk we’ll walk through the basics of generating such parsers and how “llhttp” works.