Nest: Transport Layer: uWebSockets.js

Created on 19 Feb 2019  路  3Comments  路  Source: nestjs/nest

I'm submitting a...


[ ] Regression 
[ ] Bug report
[x] Feature request
[ ] Documentation issue or request
[ ] Support request => Please do not submit support request here, instead post your question on Stack Overflow.

Performance Boosts

There is always a lot of talk about the speed of Golang vs NodeJS. Although Go is a great language, I like the idea of speeding up our NodeJS stack.

The article:
https://levelup.gitconnected.com/will-node-js-forever-be-the-sluggish-golang-f632130e5c7a

The repo:
https://github.com/uNetworking/uWebSockets.js

It is an intro to an external C++ network layer that (they claim) is seriously faster than anything we currently have (way faster than Fastify). The graph below is from the article with uWebSockets on the far right. Almost twice as fast as Golang.

image

type

Most helpful comment

Take care: uWebSockets.js is written by the same guy as https://www.npmjs.com/package/uws where he tried to break installations by pushing empty releases. Background: https://www.reddit.com/r/node/comments/91kgte/uws_has_been_deprecated/ - see comments.
I recommend not to use any software from him anymore.

All 3 comments

Take care: uWebSockets.js is written by the same guy as https://www.npmjs.com/package/uws where he tried to break installations by pushing empty releases. Background: https://www.reddit.com/r/node/comments/91kgte/uws_has_been_deprecated/ - see comments.
I recommend not to use any software from him anymore.

We definitely won't rely on this. Anyway, if anyone still wants to use this library, there is a documentation for this https://docs.nestjs.com/websockets/adapter

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

Was this page helpful?
0 / 5 - 0 ratings