by shenedu · 13y ago · 0 comments
The thread model used by http-kit: a dedicated thread(server-loop), only doing events IO and parsing, when done, queued the request for a thread poll to take it, thread pool compute the response, queue it for the server-loop thread to write it back to client.
Since epoll and kqueue's readiness selection is O(1), idle connections does not hurt latency at all.
No comments yet.