Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

What makes it faster than the native runtime fetch api? #1

Closed
AllanOricil opened this issue Apr 19, 2023 · 1 comment
Closed

What makes it faster than the native runtime fetch api? #1

AllanOricil opened this issue Apr 19, 2023 · 1 comment

Comments

@AllanOricil
Copy link

I dont get it how you were able to create something that is faster than the native runtime api.

@dgrelaud
Copy link
Member

dgrelaud commented Apr 19, 2023

What makes it faster than the native runtime fetch api?

The main source: Keep-alive by default.
Rock-req is light-enough to be almost as fast as the native http.request of NodeJS if an http agent is used with HTTP keep-alive.

Since Node19, NodeJS has decided to define a default keep-alive: nodejs/node#37184
But many NodeJS projects still use Node 16 and 18.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants