Lurker News

Comments (240) 58 threads

Show all comments

Showing thread 48 of 58

nikivi5 replies#
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.
hairyhenderson1 reply#
Use Caddy wherever you'd otherwise use Apache HTTPD, nginx, IIS, traefik, Kong, etc...
molszanski#
Why traefik? They both seem to be amazing modern web servers
dubcanada#
It's comparable to Nginx and Apache, not a Go/Node http/https server.
tyingq#
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.
cthalupa#
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.