logoalt Hacker News

creata • today at 4:26 AM • 0 replies • view on HN

No, I mean that Tokio, Go, etc., were built with general-purpose web servers in mind, and they decided that lightweight threads were necessary for that purpose because OS threads had too much overhead to be used per-request.

NGINX uses a state machine per task, which as far as I know is kind of what Rust's async functions end up desugaring to.