Nginx VS traefik

Compare Nginx vs traefik and see what are their differences.

Nginx

An official read-only mirror of http://hg.nginx.org/nginx/ which is updated hourly. Pull requests on GitHub cannot be accepted and will be automatically closed. The proper way to submit changes to nginx is via the nginx development mailing list, see http://nginx.org/en/docs/contributing_changes.html (by nginx)
Web
InfluxDB - Power Real-Time Data Analytics at Scale
Get real-time insights from all types of time series data with InfluxDB. Ingest, query, and analyze billions of data points in real-time with unbounded cardinality.
www.influxdata.com
featured
SaaSHub - Software Alternatives and Reviews
SaaSHub helps you find the best software and product alternatives
www.saashub.com
featured
Nginx traefik
99 184
20,257 47,814
0.7% 0.8%
8.8 9.4
9 days ago 7 days ago
C Go
- MIT License
The number of mentions indicates the total number of mentions that we've tracked plus the number of user suggested alternatives.
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.

Nginx

Posts with mentions or reviews of Nginx. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2024-04-24.
  • Nginx 1.26.0 Stable Released
    2 projects | news.ycombinator.com | 24 Apr 2024
    Yeah, unless I'm looking at it wrong, there doesn't seem to be any meaningful difference between 1.25.5 and 1.26.0:

    https://github.com/nginx/nginx/compare/release-1.25.5...rele...

  • How to securely reverse-proxy ASP.NET Core web apps
    3 projects | dev.to | 4 Apr 2024
    However, it's very unlikely that .NET developers will directly expose their Kestrel-based web apps to the internet. Typically, we use other popular web servers like Nginx, Traefik, and Caddy to act as a reverse-proxy in front of Kestrel for various reasons:
  • Ask HN: Is nginx.org (the domain-name itself) gone?
    1 project | news.ycombinator.com | 22 Mar 2024
  • Freenginx: Core Nginx Developer Announces Fork of Popular Web Server
    1 project | news.ycombinator.com | 13 Mar 2024
    > I actually don't understand why I am seeing arguments like this all the time.

    Have a look at:

    https://github.com/nginx/nginx/blob/master/src/http/modules/...

    It's got the whole checklist: nginx idiosyncratic module system, inline parsing, custom utf conversion, buffer preallocation and adjustments, linked lists, comments about side effects of custom allocator, and probably other things.

    It's not easy to deal with source like that and any serious improvement to that area would effectively be a rewrite anyway.

    Since anything doing work in nginx is a module anyway, it wouldn't even have to be a full rewrite in one go.

  • The Internet is Maintained by 1 Software Developer
    1 project | dev.to | 25 Feb 2024
    According to this article, nGinx is being used to serve 34% of all websites in the world. I checked out who's contributing to nGinx, and just like I thought, the project has 8,208 commits, and 5,366 of those commits was made by 2 software developers; igorsoev and mdounin.
  • [06/52] Accessible Kubernetes with Terraform and DigitalOcean
    4 projects | dev.to | 23 Feb 2024
  • Freenginx.org
    11 projects | news.ycombinator.com | 14 Feb 2024
  • Performance benchmark of PHP runtimes
    7 projects | dev.to | 17 Jan 2024
    Nginx + Roadrunner (fcgi mode)
  • Web CGI programs aren't particularly slow these days
    1 project | news.ycombinator.com | 8 Jan 2024
    Apache’s mod_fastcgi’s last commit was 2 weeks ago:

    https://svn.apache.org/viewvc/httpd/httpd/trunk/

    It’s a fork of what you linked (and was more popular afaik back when fastcgi was state of the art, and apache was the undisputed champion of web servers).

    These days, nginx has more market share than apache, and its fastcgi module is one of the more recently updated ones in its source tree (5 months vs multiple years):

    https://github.com/nginx/nginx/tree/master/src/http/modules

    If I was going to build an embedded web server, I’d start with nostd rust, probably with though axum + tokio, since thats already memory safe-ish.

    If I needed fastcgi for some reason (dynamically loadable endpoints, or os-level isolation), there are at least four implementations of fastcgi for it. No idea if any are decent though.

  • Five Apache projects you probably didn't know about
    8 projects | dev.to | 21 Dec 2023
    APISIX is an API Gateway. It builds upon OpenResty, a Lua layer built on top of the famous nginx reverse-proxy. APISIX adds abstractions to the mix, e.g., Route, Service, Upstream, and offers a plugin-based architecture.

traefik

Posts with mentions or reviews of traefik. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2024-04-04.
  • Traefik Proxy v3.0.0 Released
    1 project | news.ycombinator.com | 29 Apr 2024
  • How to securely reverse-proxy ASP.NET Core web apps
    3 projects | dev.to | 4 Apr 2024
    However, it's very unlikely that .NET developers will directly expose their Kestrel-based web apps to the internet. Typically, we use other popular web servers like Nginx, Traefik, and Caddy to act as a reverse-proxy in front of Kestrel for various reasons:
  • Deploying Web Apps with Caddy: A Beginner's Guide Caddy
    5 projects | news.ycombinator.com | 27 Feb 2024
    Not as good though. Case in point: https://github.com/traefik/traefik/issues/5472#issuecomment-... (that's just from this morning)

    I'm speak objectively here. Of course, any built-in auto HTTPS that works (more or less) is better than none. Traefik uses an ACME library that was originally written for Caddy. After the original author left that project, Traefik team started maintaining it. Caddy's users' requirements exceeded what the library was capable of, but unfortunately there was friction in getting it to achieve our requirements. So I ended up writing a new ACME client library in Go and, together with upgrades in CertMagic (Caddy's auto-TLS lib), Caddy has the more flexible, robust, and capable auto-HTTPS functionality.

    That is to say, not all auto-HTTPS functionalities are the same.

  • Security Workshop Part 1 - Put up a gate
    1 project | dev.to | 3 Nov 2023
    We'll use Traefik, an open source cloud native gateway that can plug into a Kubernetes cluster. It has the concept of "middleware" that can process API requests before passing them through to a backend. We can configuring a rate limit for all of our API endpoints by matching on the request path:
  • Install plugin in k8s cluster running in Kind
    1 project | /r/Traefik | 2 Nov 2023
    I did the same question here and here
  • The Tailscale Universal Docker Mod
    22 projects | news.ycombinator.com | 8 Oct 2023
  • Set Default Config in traefik.toml and overwrite with specific container config
    1 project | /r/Traefik | 25 Sep 2023
    Sadly there is currently no way of doing so. https://github.com/traefik/traefik/issues/6999
  • Istio moved to CNCF Graduation stage
    13 projects | news.ycombinator.com | 12 Jul 2023
  • Docker Services question
    2 projects | /r/docker | 5 Jul 2023
    Traefik is another widely used system that has automatic configuration and offers support for more things like swarm/kubernetes/etc.
  • nginx alternatives
    2 projects | /r/webdev | 5 Jul 2023
    I have a webapp which I currently have deployed by running nginx in a container. Works as it should, however I am intersted in adding more observability to the webapp and found this reverse-proxy https://github.com/traefik/traefik which seems to expose some nice metrics which can be useful for observability.

What are some alternatives?

When comparing Nginx and traefik you can also consider the following projects:

Caddy - Fast and extensible multi-platform HTTP/1-2-3 web server with automatic HTTPS

Nginx Proxy Manager - Docker container for managing Nginx proxy hosts with a simple, powerful interface

envoy - Cloud-native high-performance edge/middle/service proxy

Squid - Squid Web Proxy Cache

ingress-nginx - Ingress-NGINX Controller for Kubernetes

nestjs-monorepo-microservices-proxy - Example of how to implement a Nestjs monorepo with no shared folder

Hiawatha - Hiawatha is an open source webserver with security, easy to use and lightweight as the three key features. Hiawatha supports among others (Fast)CGI, IPv6, URL rewriting and reverse proxy. It has security features no other webserver has, like blocking SQL injections, XSS and CSRF attacks and exploit attempts. The built-in monitoring tool makes it perfect for large scale deployments.

YARP - A toolkit for developing high-performance HTTP reverse proxy applications.

socks5-proxy-server - SOCKS5 proxy server