4 ms·
While somewhat lengthy, I found this post to be a great resource for learning about async and epoll: https://ibraheem.ca/posts/too-many-web-servers/ https://ibr
by nadaviv 3y ago
While somewhat lengthy, I found this post to be a great resource for learning about async and epoll: https://ibraheem.ca/posts/too-many-web-servers/ https://ibraheem.ca/posts/too-many-web-servers/
It starts with a simple single-request-at-a-time HTTP server implemented in Rust, then progresses to examples with multi-threading, non-blocking, epoll-based multiplexing, futures and async/await, showing the limitations and advantages at each step.
Previous discussion: https://news.ycombinator.com/item?id=37176960 https://news.ycombinator.com/item?id=37176960