HAProxy vs Varnish

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

HAProxy

2.2K
1.9K
+ 1
553
Varnish

11.4K
1.9K
+ 1
359
Add tool

HAProxy vs Varnish: 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, Varnish is detailed as "High-performance HTTP accelerator". 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.

HAProxy belongs to "Load Balancer / Reverse Proxy" category of the tech stack, while Varnish can be primarily classified under "Web Cache".

"Load balancer", "High performance" and "Very fast" are the key factors why developers consider HAProxy; whereas "High-performance", "Very Fast" and "Very Stable" are the primary reasons why Varnish is favored.

Varnish is an open source tool with 908 GitHub stars and 216 GitHub forks. Here's a link to Varnish's open source repository on GitHub.

Pinterest, 9GAG, and Twitch are some of the popular companies that use Varnish, whereas HAProxy is used by Instagram, Dropbox, and Medium. Varnish has a broader approval, being mentioned in 1007 company stacks & 140 developers stacks; compared to HAProxy, which is listed in 457 company stacks and 211 developer stacks.

Get Advice from developers at your company using Private StackShare. Sign up for Private StackShare.
Learn More
Pros of HAProxy
Pros of Varnish
  • 130
    Load balancer
  • 100
    High performance
  • 69
    Very fast
  • 57
    Proxying for tcp and http
  • 55
    SSL termination
  • 30
    Open source
  • 27
    Reliable
  • 20
    Free
  • 18
    Well-Documented
  • 12
    Very popular
  • 7
    Suited for very high traffic web sites
  • 7
    Runs health checks on backends
  • 6
    Scalable
  • 5
    Ready to Docker
  • 4
    Powers many world's most visited sites
  • 2
    Simple
  • 2
    Work with NTLM
  • 2
    Ssl offloading
  • 103
    High-performance
  • 66
    Very Fast
  • 56
    Very Stable
  • 43
    Very Robust
  • 36
    HTTP reverse proxy
  • 20
    Open Source
  • 17
    Web application accelerator
  • 10
    Easy to config
  • 4
    Widely Used
  • 3
    Great community
  • 1
    Essential software for HTTP

Sign up to add or upvote prosMake informed product decisions

Cons of HAProxy
Cons of Varnish
  • 3
    Becomes your single point of failure
    Be the first to leave a con

    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 Varnish?

    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.

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

    What companies use HAProxy?
    What companies use Varnish?
    See which teams inside your own company are using HAProxy or Varnish.
    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 Varnish?

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

    Blog Posts

    May 6 2020 at 6:34AM

    Pinterest

    JavaScriptC++Varnish+6
    3
    2455
    GitHubGitSlack+30
    25
    15783
    DockerSlackAmazon EC2+17
    18
    5675
    What are some alternatives to HAProxy and Varnish?
    NGINX
    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.
    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.
    Envoy
    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
    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.
    Pound
    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