BackendStack21 / restana

Restana is a lightweight and fast Node.js framework for building RESTful APIs.
MIT License
467 stars 27 forks source link

Use UWS internally #15

Closed s0kil closed 5 years ago

s0kil commented 5 years ago

I was wondering if you ever came across https://github.com/uNetworking/uWebSockets.js Using it could drastically improve Ana's performance.

jkyberneees commented 5 years ago

Hi Daniel, thanks for the headsup. I will check it out and let you know about my results.

jkyberneees commented 5 years ago

Hi @DanielSokil, as promised I spent sometime considering supporting uWebSockets.js as an optional HTTP server provider. Unfortunately I have to say that performance degrades a lot inside of async handlers, also the exposed API is too limited to be considered in production at the moment.

For more details, please have a look at my dev branch "support-uwebsockets" https://github.com/jkyberneees/ana/blob/support-uwebsockets/libs/uwebsockets.js.

I will keep an eye on the uWebSocket.js project HTTP interface.

Regards

s0kil commented 5 years ago

@jkyberneees Thank You.