A lot of years studying Computer Science, probability, queue theory, distributed systems, unix, ...
so that we could make the @nodejs http Agent a LIFO instead of a FIFO to significantly increase throughput.
This is probably worthwhile an article at some point.
-
Show this thread
-
-
Replying to @matteocollina @delvedor
Wouldn't this risk increasing tail latency tho? Whatever's put into the queue first might sit there for a long time.
1 reply 0 retweets 0 likes -
Ah I see, it's an *option*. Seems cool to be able to play with various queueing strategies ^^
1 reply 0 retweets 0 likes -
Replying to @yoshuawuyts @matteocollina
Nope, it is the scheduling for the free sockets, not the actual requests :) By using a LIFO you will keep a lower number of open sockets and encounter fewer timeouts :)
1 reply 0 retweets 1 like -
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.
