Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

IMO Ngnix takes advantage of the fact that most of the web workload is I/O bound. It’s tight loop main thread coupled with asynchronous delegation enables it to stay single threaded. It doesn’t spawn new thread per request which means it doesn’t need additional memory to handle new requests.

This is a very good article which goes into details, highly recommended

http://aosabook.org/en/nginx.html



Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: