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

Investigate the effect of Nagle's algorithm of the request performance #18

Open
mshustov opened this issue Aug 5, 2022 · 0 comments
Open
Labels
enhancement New feature or request experiment

Comments

@mshustov
Copy link
Member

mshustov commented Aug 5, 2022

Nagle's algorithm delays data before it is sent via the network. It attempts to optimize throughput at the expense of latency.

In any non-pipelined stop-and-wait request-response application protocol where request data can be larger than a packet, this can artificially impose a few hundred milliseconds latency between the requester and the responder.

see https://en.wikipedia.org/wiki/Nagle%27s_algorithm

Consider disabling Nagle's algorithm with https://nodejs.org/api/http.html#requestsetnodelaynodelay

@slvrtrn slvrtrn added enhancement New feature or request experiment labels Aug 30, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request experiment
Projects
None yet
Development

No branches or pull requests

2 participants