Need advice about which tool to choose?Ask the StackShare community!


+ 1

+ 1
Add tool

HAProxy vs Traefik: What are the differences?

Developers describe HAProxy as "The Reliable, High Performance TCP/HTTP Load Balancer". HAProxy (High Availability Proxy) is a free, very fast and reliable solution offering high availability, load balancing, and proxying for TCP and HTTP-based applications. On the other hand, Traefik is detailed as "Load Balancer for Microservices". Træfɪk is a modern HTTP reverse proxy and load balancer made to deploy microservices with ease. It supports several backends (Docker, Swarm, Mesos/Marathon, Kubernetes, Consul, Etcd, Zookeeper, BoltDB, Rest API, file...) to manage its configuration automatically and dynamically.

HAProxy and Traefik can be categorized as "Load Balancer / Reverse Proxy" tools.

"Load balancer" is the primary reason why developers consider HAProxy over the competitors, whereas "Kubernetes integration" was stated as the key factor in picking Traefik.

Traefik is an open source tool with 23K GitHub stars and 2.36K GitHub forks. Here's a link to Traefik's open source repository on GitHub.

According to the StackShare community, HAProxy has a broader approval, being mentioned in 452 company stacks & 205 developers stacks; compared to Traefik, which is listed in 46 company stacks and 17 developer stacks.

Get Advice from developers at your company using Private StackShare. Sign up for Private StackShare.
Learn More
Pros of HAProxy
Pros of Traefik
  • 128
    Load balancer
  • 99
    High performance
  • 68
    Very fast
  • 56
    Proxying for tcp and http
  • 55
    SSL termination
  • 30
    Open source
  • 27
  • 20
  • 18
  • 12
    Very popular
  • 7
    Suited for very high traffic web sites
  • 7
    Runs health checks on backends
  • 5
  • 4
    Ready to Docker
  • 3
    Powers many world's most visited sites
  • 2
    Work with NTLM
  • 2
    Ssl offloading
  • 2
  • 19
    Kubernetes integration
  • 16
    Watch service discovery updates
  • 12
    Swarm integration
  • 12
    Letsencrypt support
  • 11
    Several backends
  • 4
    Ready-to-use dashboard
  • 4
    Rancher integration
  • 2
    Easy setup
  • 1
    Mantl integration
  • 1
    Mesos integration

Sign up to add or upvote prosMake informed product decisions

Cons of HAProxy
Cons of Traefik
  • 3
    Becomes your single point of failure
  • 7
    Complicated setup
  • 6
    Not very performant (fast)

Sign up to add or upvote consMake informed product decisions

- No public GitHub repository available -

What is HAProxy?

HAProxy (High Availability Proxy) is a free, very fast and reliable solution offering high availability, load balancing, and proxying for TCP and HTTP-based applications.

What is Traefik?

A modern HTTP reverse proxy and load balancer that makes deploying microservices easy. Traefik integrates with your existing infrastructure components and configures itself automatically and dynamically.

Need advice about which tool to choose?Ask the StackShare community!

What companies use HAProxy?
What companies use Traefik?
See which teams inside your own company are using HAProxy or Traefik.
Sign up for Private StackShareLearn More

Sign up to get full access to all the companiesMake informed product decisions

What tools integrate with HAProxy?
What tools integrate with Traefik?

Sign up to get full access to all the tool integrationsMake informed product decisions

Blog Posts

GitHubGitGoogle Analytics+30
DockerSlackAmazon EC2+17
What are some alternatives to HAProxy and Traefik?
nginx [engine x] is an HTTP and reverse proxy server, as well as a mail proxy server, written by Igor Sysoev. According to Netcraft nginx served or proxied 30.46% of the top million busiest sites in Jan 2018.
Originally built at Lyft, Envoy is a high performance C++ distributed proxy designed for single services and applications, as well as a communication bus and “universal data plane” designed for large microservice “service mesh” architectures.
Squid reduces bandwidth and improves response times by caching and reusing frequently-requested web pages. Squid has extensive access controls and makes a great server accelerator. It runs on most available operating systems, including Windows and is licensed under the GNU GPL.
Varnish Cache is a web application accelerator also known as a caching HTTP reverse proxy. You install it in front of any server that speaks HTTP and configure it to cache the contents. Varnish Cache is really, really fast. It typically speeds up delivery with a factor of 300 - 1000x, depending on your architecture.
Pound was developed to enable distributing the load among several Web-servers and to allow for a convenient SSL wrapper for those Web servers that do not offer it natively.
See all alternatives
Interest over time
How developers use HAProxy and Traefik
Avatar of Trello
Trello uses HAProxyHAProxy

We use HAProxy to load balance between our webservers. It balances TCP between the machines round robin and leaves everything else to Node.js, leaving the connections open with a reasonably long time to live to support WebSockets and re-use of a TCP connection for AJAX polling.

Avatar of The Independent
The Independent uses HAProxyHAProxy

HAProxy manages internal and origin load balancing using KeepaliveD. Two small servers host the entire site, never moving about 15% load even during the largest load spikes.

Avatar of Equinix-metal
Equinix-metal uses HAProxyHAProxy

We use HAProxy to balance traffic at various points in our stack, includgin nginx nodes on different physical machines, and api nodes on the backend.

Avatar of ssshake
ssshake uses HAProxyHAProxy

I use HAproxy primarily for application routing and SSL termination. I also use its logs and statistics to visualize incoming traffic in Kibana.

Avatar of Clarabridge Engage
Clarabridge Engage uses HAProxyHAProxy

We use HAProxy to load balance web requests for our web application, but also for some internal load balancing of microservices.