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.
Wouldn't this risk increasing tail latency tho? Whatever's put into the queue first might sit there for a long time.
-
-
Ah I see, it's an *option*. Seems cool to be able to play with various queueing strategies ^^
-
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 :)
- 2 more replies
New conversation -
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.
