Closed nyannyacha closed 7 months ago
Note: Please keep a close eye on stage infra to ensure that there are no runtime issues after merging this PR. (But I don't expect any issues.)
@nyannyacha Can you prefix this PR as a feat
(so it will create a minor release)
:tada: This PR is included in version 1.44.0 :tada:
The release is available on GitHub release
Your semantic-release bot :package::rocket:
What kind of change does this PR introduce?
Refactor
Description
This PR changes the stream type used to communicate between workers to
DuplexStream
instead ofUnixStream
to improve request throughput.It was tested on a local machine, so it's imprecise, but it showed an improvement of about 10% in request throughput per second.
List of arguments to be created due to the introduction of this PR
--tcp-nodelay
flag disables Nagle's algorithm. (Default istrue
)Figure1. UnixStream, Debug
Figure2. DuplexStream, Debug
Figure3. UnixStream, Release
Figure4. DuplexStream, Release
Figure5. DuplexStream, Debug (examples/chunked-text, TCP_NODELAY OFF)
Figure6. DuplexStream, Debug (examples/chunked-text, TCP_NODELAY ON)