llhttp - new HTTP 1.1 parser for Node.js by Fedor Indutny | JSConf EU 2019

แชร์
ฝัง
  • เผยแพร่เมื่อ 16 ก.ย. 2024
  • 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.
    2019.jsconf.eu...

ความคิดเห็น • 5

  • @davidhcefx
    @davidhcefx 3 ปีที่แล้ว +1

    If you can read TypeScript, take a look at path: github, nodejs, llhttp, src, http-ts. The transitions starts from line 235. It’s very elegant and nice!

  • @pinkguy8205
    @pinkguy8205 5 ปีที่แล้ว +16

    Shaggy, is that you?

  • @slothsarecool
    @slothsarecool 5 ปีที่แล้ว +5

    Sounds similar to Ragel, curious if you tried that as well

  • @user-qi5kb5th7y
    @user-qi5kb5th7y 2 ปีที่แล้ว

    why no http/2.0 tho

  • @tombyrer1808
    @tombyrer1808 5 ปีที่แล้ว

    Project at github.com/nodejs/llhttp