this post was submitted on 16 Jun 2023
17 points (100.0% liked)

Programming

13932 readers
1 users here now

All things programming and coding related. Subcommunity of Technology.


This community's icon was made by Aaron Schneider, under the CC-BY-NC-SA 4.0 license.

founded 2 years ago
MODERATORS
 

I've recently been wondering if Lemmy should switch out NGINX for Caddy, while I hadn't had experience with Caddy it looks like a great & fast alternative, What do you all think?

EDIT: I meant beehaw not Lemmy as a whole

(page 2) 15 comments
sorted by: hot top controversial new old
[–] diamond@beehaw.org 1 points 2 years ago (3 children)

People comment a lot on performance, but I think Caddy can (and should) hold up perfectly fine. It might be worth it to experiment with running servers half on Caddy and half on NGINX, then see how the traffic is being handled by both to compare.

I do think the much cleaner config makes up for the maybe slight performance loss, though. It's just so much less work to set up and maintain compared to NGINX. The last time I've used NGINX was years ago, when I decided to drop it entirely in favor of Caddy. I do think NGINX is only "standard" because it came before Caddy, and that most applications should not prefer it over Caddy.

load more comments (3 replies)
[–] argv_minus_one@beehaw.org 1 points 2 years ago (2 children)

Why is nginx preferred over Apache these days? I believe nginx was originally preferred because Apache had scaling issues with its original forking concurrency model, but that was replaced a long time ago, so…why use nginx today?

load more comments (2 replies)
[–] rowinofwin@beehaw.org 0 points 2 years ago (1 children)

I don't know about Caddy, but if they aren't using Varnish or similar they should consider it. A caching server can be helpful for frequently repeating fairly stable parts of websites and has a fairly significant performance benefit.

[–] CinnamonTheCat@beehaw.org 1 points 2 years ago

I think considering alternatives is important. Even if the 'default' option is good enough. I always enjoy looking around for new ways to go about things.

load more comments
view more: ‹ prev next ›