3

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?

Jesse Nickles
  • 250
  • 1
  • 12
Serdar Koçak
  • 57
  • 2
  • 7
  • Nginx is more robust (it's not even close). The Litespeed crew were caught posting fake benchmarks around the web showing Nginx "slower" because they had disabled FastCGI cache during the tests... extremely dishonest. Their main target is cPanel and shared hosting companies, hence their focus on WordPress marketing: https://www.reddit.com/r/selfhosted/comments/f06vse/litespeed_servers_seem_like_a_marketing_scam_are/ – Jesse Nickles Jun 06 '21 at 20:16
  • Update: a few third parties have benchmarked Nginx and Litespeed in the past few years, see my recent response: https://stackoverflow.com/questions/60701073/any-benchmarks-showing-litespeed-faster-than-nginx-servers/69124776#69124776 – Jesse Nickles Sep 19 '21 at 17:27

1 Answers1

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.

LucasRolff
  • 169
  • 2
  • 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 05 '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 05 '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 05 '20 at 10:54
  • Lucas, I mean you may want to disclose that your company, Hosting4Real, is a Litespeed partner and they have promoted your services on their blog previously. But besides that, and your evidence-free answer, sure I guess Litespeed must be faster than Nginx, which is why every single high-traffic website uses Nginx lol. Tired of the dishonesty... – Jesse Nickles Jun 06 '21 at 20:32
  • Hi Jesse! > Hosting4Real, is a Litespeed partner If you have enough services with LiteSpeed, you can apply for becoming a partner, which gives you discounts on the licenses. Anyone would do that if they use/pay for a service, and they can give a discount by filling out a form :) > and they have promoted your services on their blog previously They mentioned my name in a blogpost due to modsec implementation solved an issue. – LucasRolff Jun 07 '21 at 06:32
  • > sure I guess Litespeed must be faster than Nginx Benchmark it! > which is why every single high-traffic website uses Nginx lol Also many sites use PHP despite being slower than .net core :) Not sure what the point is. I mean litespeed *is* a paid piece of software. Not many people use nginx-plus either, but the free one. > Tired of the dishonesty Nothing dishonest. You can simply benchmark things yourself to verify it. By the way, I also run plenty of nginx servers. Each has their own use-case to which webserver is selected. That's the benefit of the "free" market. – LucasRolff Jun 07 '21 at 06:35