[HN Gopher] HTTPS Reverse Proxy: Caddy Outperforms Nginx 4x
___________________________________________________________________
HTTPS Reverse Proxy: Caddy Outperforms Nginx 4x
Author : codazoda
Score : 14 points
Date : 2022-11-23 22:10 UTC (50 minutes ago)
(HTM) web link (manishrjain.com)
(TXT) w3m dump (manishrjain.com)
| progval wrote:
| > With 4 concurrent requests, NGINX was able to run 100
| calls/second, with a 90%-ile latency of 48ms. Under the same
| conditions, Caddy ran 400 calls/second, with a 90%-ile latency of
| 16ms.
|
| If you are processing only hundreds of queries a second, then
| both are either seriously misconfigured, or the bottleneck is
| elsewhere.
| datalopers wrote:
| Yeah there's no way this is a Caddy nor nginx raw performance
| but ridiculously poor backend coding.
|
| At a glance the issue the difference though is caddy reverse
| proxy defaults to keepalive and nginx upstream does not.
| tlack wrote:
| Has anyone else switched to Caddy and seen similar performance
| improvements? I've been blindly using Nginx for years but have no
| love for that configuration file..
| rwaksmunski wrote:
| Backend connections are not keepalive with that nginx config and
| benchmark is ran on a shared digital ocean VM. I suspect the
| author is clueless about proxies, operating systems and
| benchmarks.
| divbzero wrote:
| Instead of commenting on the author, perhaps we could share an
| example of the appropriate nginx config:
| upstream http_backend { server 127.0.0.1:8080;
| keepalive 16; } server { ...
| location /http/ { proxy_pass http://http_backend;
| proxy_http_version 1.1; proxy_set_header
| Connection ""; ... } }
|
| https://nginx.org/en/docs/http/ngx_http_upstream_module.html...
| pablo1 wrote:
| Have always used nginx, but I'm interested in the newer
| alternatives out there like caddy, traefik or envoy.
|
| Is there a up-to-date comparison somewhere? Any personal
| experiences? Would be interested to hear if there are any reasons
| to switch. Performance has not been an issue for me, but there
| might be other good reasons.
___________________________________________________________________
(page generated 2022-11-23 23:00 UTC)