Skip to main content
Replaced wrong word with the right one.
Source Link
mwryl
  • 145
  • 5

We finished developing our prototype using Node.JS and Express.JS (which works with HTTP1.1) and I am trying to leverageupgrade to HTTP2. However I am having a lot of troubles to do this.

I first discovered that Express.JS does not support HTTP2, and the release of Express.JS 5 which should resolve this issue is postponed every year.

I tried others solutions like Fastify or Koa, but there are a lot of issues or bugs with them. Documentation will say something but then typescript will complain and at the end I spend 5h just trying to install basic stuff like a view engine.

At the end I started wondering if it won't be best for us to write our own routers supporting HTTP2.

Is it that hard? Or does it require that much of effort?

Our needs are quite simple:

  • Some API routes to handle some business logics and communicate with the services
  • Some views that do server side rendering and serve the result

We finished developing our prototype using Node.JS and Express.JS (which works with HTTP1.1) and I am trying to leverage to HTTP2. However I am having a lot of troubles to do this.

I first discovered that Express.JS does not support HTTP2, and the release of Express.JS 5 which should resolve this issue is postponed every year.

I tried others solutions like Fastify or Koa, but there are a lot of issues or bugs with them. Documentation will say something but then typescript will complain and at the end I spend 5h just trying to install basic stuff like a view engine.

At the end I started wondering if it won't be best for us to write our own routers supporting HTTP2.

Is it that hard? Or does it require that much of effort?

Our needs are quite simple:

  • Some API routes to handle some business logics and communicate with the services
  • Some views that do server side rendering and serve the result

We finished developing our prototype using Node.JS and Express.JS (which works with HTTP1.1) and I am trying to upgrade to HTTP2. However I am having a lot of troubles to do this.

I first discovered that Express.JS does not support HTTP2, and the release of Express.JS 5 which should resolve this issue is postponed every year.

I tried others solutions like Fastify or Koa, but there are a lot of issues or bugs with them. Documentation will say something but then typescript will complain and at the end I spend 5h just trying to install basic stuff like a view engine.

At the end I started wondering if it won't be best for us to write our own routers supporting HTTP2.

Is it that hard? Or does it require that much of effort?

Our needs are quite simple:

  • Some API routes to handle some business logics and communicate with the services
  • Some views that do server side rendering and serve the result
Source Link
mwryl
  • 145
  • 5

Node.JS and HTTP2

We finished developing our prototype using Node.JS and Express.JS (which works with HTTP1.1) and I am trying to leverage to HTTP2. However I am having a lot of troubles to do this.

I first discovered that Express.JS does not support HTTP2, and the release of Express.JS 5 which should resolve this issue is postponed every year.

I tried others solutions like Fastify or Koa, but there are a lot of issues or bugs with them. Documentation will say something but then typescript will complain and at the end I spend 5h just trying to install basic stuff like a view engine.

At the end I started wondering if it won't be best for us to write our own routers supporting HTTP2.

Is it that hard? Or does it require that much of effort?

Our needs are quite simple:

  • Some API routes to handle some business logics and communicate with the services
  • Some views that do server side rendering and serve the result