3 ms·
Nope. lighttpd is simple and light. nginx is very powerful and fast. nginx could send static file with one syscall and zero-copy if OS supports it. It could e
by blacklion 3y ago
Nope. lighttpd is simple and light.
nginx is very powerful and fast.
nginx could send static file with one syscall and zero-copy if OS supports it. It could exploit all system async mechanisms - POSIX AIO, kqueue, whatever you have. Linux was worst in this regards before io_uring, and FreeBSD or Solaris were much, much better platform for nginx.
For example, Igor Sysoev (mastermide behind nginx) pushed patches to FreeBSD kernel to shave off one syscall per file on this system.
Now, when everything is HTTPS, Linux have io_uring and Igor left nginx after F5 acquisition, it is not very useful - nginx is stagnating, support for KTLS is absent, support for io_uring on Linux is absent (though there are some forks and patches for this)...
But compare nginx and lighttpd is simply stupid, it is apples-to-oranges comparison.
Each one has its niche, of course.
- Thaxll 3y agolighttpd came out in the mid 2000's with a better polling model than Apache, that was my point. It was using epoll back then which Apache did not. Even Youtube used Lighttpd at some point. Both are http servers, and lighttpd came out before Nginx, they both tried to solve the c10k problem.