Skip to content

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

Open
@mshustov

Description

@mshustov

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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions