Coder Social home page Coder Social logo

http/2 initiative about express HOT 5 OPEN

mikegwhit avatar mikegwhit commented on April 27, 2024 3
http/2 initiative

from express.

Comments (5)

mikegwhit avatar mikegwhit commented on April 27, 2024 1

CC @QuantGeekDev

I pulled in changes from #3390 today and you have to run his test suite via HTTP2_TEST npm test which fails. it might be useful if we start with the other separate modules that are mentioned above. i didn't see pillarjs in the list also but assume it is relevant.

from express.

QuantGeekDev avatar QuantGeekDev commented on April 27, 2024 1

CC @QuantGeekDev

I pulled in changes from #3390 today and you have to run his test suite via HTTP2_TEST npm test which fails. it might be useful if we start with the other separate modules that are mentioned above. i didn't see pillarjs in the list also but assume it is relevant.

Noted. Going to browse through this

from express.

cScarlson avatar cScarlson commented on April 27, 2024

I would love to see this feature come to fruition. Can we maybe rank-order all the tasks we know of from, say, lowest-hanging fruit to highest so that different people can jump into smaller tasks to learn the codebase more effectively? I believe this would be a big win, itself, so that entire subfeatures can get completed before breaking larger tasks down into subtasks. Someone with more knowledge of the existing ExpressJS codebase needs to provide their expertise here, if possible. Otherwise, the rest of the comminity & users should have a good stab at the rank-ordered list.

from express.

wesleytodd avatar wesleytodd commented on April 27, 2024

Hey, this is a great job combining a bunch of the historical context around HTTP2 and Express. Thanks for putting that together. Just wanted to drop a note that we are in the process of building a plan for the project's next few years and if you are interested in being involved in pushing http2 support forward please stick around. We will need help with this but we need to get v5 out the door before we can start it. So you might not get a lot of engagement from collaborators just yet, but please don't take that as ignoring this, just an ordering and prioritization thing.

from express.

mikegwhit avatar mikegwhit commented on April 27, 2024

understandable @wesleytodd i would have assumed as much..
FWIW we discussed yesterday (people in this issue ticket) "why http2":

in general this is the summary:

  • HTTP2 reports benchmark gains around 14% in nginx / apache where it has been implemented
  • HTTP2 is slower than HTTP without SSL which may or may not be true, see: [1] [2]
  • SPDY was the go-to solution for Express but SPDY broke as of Node 16, perhaps solving those issues is more relevant
  • we concluded it's better to just fix express than to tell people to migrate to fastify
  • i experienced a 25% speed gain using SPDY with Node 14 vs. without
  • industry happy medium is to use a CDN for frontend production, HTTP for local development (see important assumption above)
  • HTTP2 benefits API's less because it is frontends that are typically requesting 150 paths per page load, and frontends are incentivized to use CDN's
  • while HTTP2 only provides modest gains (see important assumption above) for what an overhaul it would require, interesting speed gain opportunities open up by redesigning express (required for HTTP2 likely) to be asynchronous and implementing a worker thread pool
  • a gateway like Nginx could just work via HTTP2 or HTTP with SSL and forward requests to HTTP without SSL express servers, nullifying all gains by implementing HTTP2 (see important assumption above)

the net is that while HTTP2 itself might not be so important since there are workarounds with a Nginx gateway pointed at non-SSL HTTP (see important assumption above) and CDN's, there are interesting gains made by rearchitecting Express to handle requests via worker thread pools which could be done alongside HTTP2 work..

from express.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.