News for hackers. Stuff that matters.
Re:We 30x'd our Node parallelism by kevstev on Friday December 13, 2019 @12:12PM (#21783365)
It will get queued, until one of the 4 requests in front of it has its task, to return the file, complete.
Re:We 30x'd our Node parallelism by jwalton on Friday December 13, 2019 @08:31PM (#21787188)
Well... yes. If you're using `express.static()`, or if all five requests are getting different things from the disk. If you're using something that caches your static content in-memory, then the first request will use the thread pool to read that content, but the other four requests won't touch the thread pool - it's all async IO at that point, so it's all happening "concurrently" in a single thread, being multiplexed right here: https://github.com/libuv/libuv/blob/1ce6393a5780538ad8601cae...