2

Most top-level (high-traffic) websites use Nginx web servers. This community has many members who are experts about systems and servers, so I want to ask for feedback on which server can handle top-level websites better in your experience?

Personally I have always used Nginx for all my projects. Most developers are always saying that "LEMP is the fastest stack" but the benchmarks published by Litespeed claim they are 4x or 10x faster than an Nginx web server stack...

https://www.litespeedtech.com/compare-http2-performance-litespeed-vs-nginx?utm_source=cyberpanel&utm_medium=forums

If that's true then why don't top-level websites prefer Litespeed?

3

What do you think about those benchmarks? 4x, 10x faster?

Well, the benchmarks are quite real - the benchmark is done using LiteSpeed webserver 5.4 (which is rather "new") which got a big overhaul in terms of http/2 and https performance.

If we compare nginx to LiteSpeed webserver 5.3, then nginx and litespeed are a whole lot closer in terms of performance (LiteSpeed still being a bit faster at least based on my benchmarks as well).

For HTML files, one place where LiteSpeed does really well is handling gracefully whether the client asks for gzipped content or not - where nginx for some reason likes to store things uncompressed when using fastcgi_cache, and it's kind of odd because you'd assume the webserver would be built towards the majority of traffic (which in many web applications will be compressed content).

People are always saying "LEMP is the fastest stack."

Likely because they haven't really been looking for the "fastest stack" but simply compare Apache and nginx, and then sure it's the fastest if you compare Apache and nginx.

Why these top-level websites don't prefer Litespeed?

When you look in the past, not only for webservers but also for other software such as browsers - it can take years before people start to catch up and consider using a different browser or in this case which webserver stack to use. There was also a long period of time where a far majority of websites would use Apache over nginx.

Big sites are often hard to just change software on, because you want to make sure that everything continues to work - downtime might be tons of money lost.

So because you have to invest time in it, it might mean that the benefits don't outweigh the time you have to spend switching to another setup, or maybe you want to change, but simply don't have the time or resources to do it.

But again, I think it's important to point out that LiteSpeed webserver 5.4 is rather recent, and that's where it's really killing the competition, and it for sure will take time before people consider the switch.

But it's for sure an interesting topic.

Personally, I think nginx got to the point where they feel they're the "top of the line" solution and the innovation/effort to continue to make it better is getting less and less.

| improve this answer | |
  • thank you for the detailed information. I really appreciate it! I tried the Openlitespeed before and I don't like it. To be honest, I want to give a chance to see Litespeed performance. – Serdar Koçak Sep 5 '19 at 12:41
  • Performance-wise, the enterprise version does a whole lot better than OpenLiteSpeed does (at least currently), so you'd indeed see better scalability there. Additionally the fact you have true .htaccess support without having to restart the webserver, as well as being able to read apache configuration directly if you want, means it makes it super easy to "drop in" for an existing apache environment. I've personally got rid of most of my nginx servers for OLS or LSWS :) – LucasRolff Sep 5 '19 at 20:17
  • @LucasRolff Openlitespeed also has htaccess support. I dont know when it is added but it was there when I switched 3-4 months ago. – Sahriar Saikat Feb 5 at 10:54

Not the answer you're looking for? Browse other questions tagged or ask your own question.