Re:Show HN: Caddy 2
by nikivi on Monday May 04, 2020 @01:47PM
(#23071057)
At what point does one use Caddy over writing a server with few lines in Go/Node. A bit confused on the use case of Caddy.
[ Parent
| on HN ]
I see Caddy as your general use case production web server prior to hitting large scaling needs. I've never gotten it to perform as leanly or scale as well as nginx, but most people will probably not need the headroom nginx provides vs. caddy.
Caddy is significantly easier to manage and get running to a "good enough" stage for people that aren't familiar with nginx and apache, even for most medium sized production deployments.
But, if you've got a team that's comfortable with nginx or apache, and doesn't find themselves spending an undue amount of time fiddling around with managing them, I don't personally believe there's any reason to switch from them to caddy.
It's comparable to Nginx and Apache, not a Go/Node http/https server.
I imagine it's quite a lot more than a few lines of code to correctly handle HEAD requests, ssl/tls, etags, expires headers, and so on.
Caddy's TLS features are available in CertMagic (https://github.com/caddyserver/certmagic) for your daily Golang web app development. Highly recommended!
Re:Show HN: Caddy 2
by hairyhenderson on Monday May 04, 2020 @01:49PM
(#23071085)
Use Caddy wherever you'd otherwise use Apache HTTPD, nginx, IIS, traefik, Kong, etc...
Re:Show HN: Caddy 2
by molszanski on Monday May 04, 2020 @03:11PM
(#23072047)
Why traefik? They both seem to be amazing modern web servers