5 ms·
How does this compare to NGINX? Especially around performance and security?
by electic 10y ago
How does this compare to NGINX? Especially around performance and security?
- hacksonx 10y agoI would refer you to this https://caddyserver.com/docs/faq https://caddyserver.com/docs/faq for a detailed break down of that. The second points answers your question with the stand out point for me being that Candy focuses on use for static files. Also, it serves all pages via HTTPS by default.
- spriggan3 10y agoNGINX is a battle tested C high performances general purpose server, while Caddy looks more like a collection of diverse Go libraries bundled together. I don't see a lot of protocols implemented by Caddy itself. There is also the question of Go garbage collector performance and its over head, there is no GC pauses with C. This is a great project though, the author is young and talented.
- ffggvv 10y ago> There is also the question of Go garbage collector performance and its over head, there is no GC pauses with C. Malloc/free are not cheap either.
- spriggan3 10y ago> Malloc/free are not cheap either. They are still way cheaper than GC pauses in Go.
- SEJeff 10y agoThe Go GC with 1.5+ (and especially the work going on currently for 1.7) makes it all but unnoticeable for the majority of non-soft realtime (think HFT) systems: https://talks.golang.org/2015/go-gc.pdf https://talks.golang.org/2015/go-gc.pdf For 99% of users, it is simply not noticeable anymore. Also note that I've worked at said HFT nanosecond latency types of firms the past 9 or so years.