Keepalived vs NGINX

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

Keepalived

36
59
+ 1
6
NGINX

112K
59.9K
+ 1
5.5K
Add tool

Keepalived vs nginx: What are the differences?

<Write Introduction here>
  1. Configuration: Keepalived is primarily used for high availability solutions with Its main function being to monitor the health of servers and switches, ensuring uptime for critical services. On the other hand, Nginx is a web server and reverse proxy that focuses on efficiently serving web content and managing HTTP traffic.

  2. Load Balancing: Keepalived supports both Layer 4 (TCP/UDP) and Layer 7 (HTTP) load balancing, making it suitable for a wider range of applications. Nginx, however, excels in Layer 7 load balancing, providing advanced features for routing traffic based on various criteria.

  3. Monitoring: Keepalived offers extensive monitoring capabilities for server health and service availability, enabling automatic failover and maintaining high service uptime. Nginx, while able to handle a large number of concurrent connections efficiently, lacks native support for comprehensive server monitoring and failover mechanisms.

  4. High Availability Features: Keepalived specializes in providing high availability solutions through techniques like VRRP (Virtual Router Redundancy Protocol) and VSMTP, ensuring services remain online even in the event of server failures. Nginx, although capable of handling high traffic loads, does not inherently provide the same level of automatic failover and redundancy features.

  5. Application Support: Keepalived is commonly used for critical network services such as DNS, email, and database servers that require continuous availability. Nginx, on the other hand, is widely used for web applications, caching, and as a reverse proxy for HTTP servers, catering more to web-specific needs.

  6. Scalability: Keepalived can be scaled horizontally by adding more instances to distribute the workload and improve fault tolerance, ensuring high availability across multiple nodes. In contrast, Nginx helps in scaling web applications by efficiently handling concurrent connections and distributing traffic, but its focus remains more on web server functionalities rather than high availability scaling.

In Summary, Keepalived and Nginx differ in their focus on high availability solutions for network services and efficient web traffic management, respectively, with variations in load balancing capabilities, monitoring features, and application support.

Advice on Keepalived and NGINX

I am diving into web development, both front and back end. I feel comfortable with administration, scripting and moderate coding in bash, Python and C++, but I am also a Windows fan (i love inner conflict). What are the votes on web servers? IIS is expensive and restrictive (has Windows adoption of open source changed this?) Apache has the history but seems to be at the root of most of my Infosec issues, and I know nothing about nginx (is it too new to rely on?). And no, I don't know what I want to do on the web explicitly, but hosting and data storage (both cloud and tape) are possibilities. Ready, aim fire!

See more
Replies (1)
Simon Aronsson
Developer Advocate at k6 / Load Impact · | 4 upvotes · 639.5K views
Recommends
on
NGINXNGINX

I would pick nginx over both IIS and Apace HTTP Server any day. Combine it with docker, and as you grow maybe even traefik, and you'll have a really flexible solution for serving http content where you can take sites and projects up and down without effort, easily move it between systems and dont have to handle any dependencies on your actual local machine.

See more
Needs advice
on
Apache HTTP ServerApache HTTP Server
and
NGINXNGINX

From a StackShare Community member: "We are a LAMP shop currently focused on improving web performance for our customers. We have made many front-end optimizations and now we are considering replacing Apache with nginx. I was wondering if others saw a noticeable performance gain or any other benefits by switching."

See more
Replies (3)
Recommends
on
NGINXNGINX

I use nginx because it is very light weight. Where Apache tries to include everything in the web server, nginx opts to have external programs/facilities take care of that so the web server can focus on efficiently serving web pages. While this can seem inefficient, it limits the number of new bugs found in the web server, which is the element that faces the client most directly.

See more
Leandro Barral
Recommends
on
NGINXNGINX

I use nginx because its more flexible and easy to configure

See more
Christian Cwienk
Software Developer at SAP · | 1 upvotes · 608.6K views
Recommends
on
Apache HTTP ServerApache HTTP Server

I use Apache HTTP Server because it's intuitive, comprehensive, well-documented, and just works

See more
Get Advice from developers at your company using StackShare Enterprise. Sign up for StackShare Enterprise.
Learn More
Pros of Keepalived
Pros of NGINX
  • 2
    Load Balancer
  • 2
    Extremely fast (IPVS)
  • 1
    2 nodes HA cluster management
  • 1
    Virtual IP HA with VRRP
  • 1.4K
    High-performance http server
  • 893
    Performance
  • 730
    Easy to configure
  • 607
    Open source
  • 530
    Load balancer
  • 288
    Free
  • 288
    Scalability
  • 225
    Web server
  • 175
    Simplicity
  • 136
    Easy setup
  • 30
    Content caching
  • 21
    Web Accelerator
  • 15
    Capability
  • 14
    Fast
  • 12
    High-latency
  • 12
    Predictability
  • 8
    Reverse Proxy
  • 7
    The best of them
  • 7
    Supports http/2
  • 5
    Great Community
  • 5
    Lots of Modules
  • 5
    Enterprise version
  • 4
    High perfomance proxy server
  • 3
    Reversy Proxy
  • 3
    Streaming media delivery
  • 3
    Streaming media
  • 3
    Embedded Lua scripting
  • 2
    GRPC-Web
  • 2
    Blash
  • 2
    Lightweight
  • 2
    Fast and easy to set up
  • 2
    Slim
  • 2
    saltstack
  • 1
    Virtual hosting
  • 1
    Narrow focus. Easy to configure. Fast
  • 1
    Along with Redis Cache its the Most superior
  • 1
    Ingress controller

Sign up to add or upvote prosMake informed product decisions

Cons of Keepalived
Cons of NGINX
    Be the first to leave a con
    • 10
      Advanced features require subscription

    Sign up to add or upvote consMake informed product decisions

    - No public GitHub repository available -

    What is Keepalived?

    The main goal of this project is to provide simple and robust facilities for loadbalancing and high-availability to Linux system and Linux based infrastructures.

    What is 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.

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

    What companies use Keepalived?
    What companies use NGINX?
    See which teams inside your own company are using Keepalived or NGINX.
    Sign up for StackShare EnterpriseLearn More

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

    What tools integrate with Keepalived?
    What tools integrate with NGINX?

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

    Blog Posts

    What are some alternatives to Keepalived and NGINX?
    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.
    Consul
    Consul is a tool for service discovery and configuration. Consul is distributed, highly available, and extremely scalable.
    Zookeeper
    A centralized service for maintaining configuration information, naming, providing distributed synchronization, and providing group services. All of these kinds of services are used in some form or another by distributed applications.
    etcd
    etcd is a distributed key value store that provides a reliable way to store data across a cluster of machines. It’s open-source and available on GitHub. etcd gracefully handles master elections during network partitions and will tolerate machine failure, including the master.
    Eureka
    Eureka is a REST (Representational State Transfer) based service that is primarily used in the AWS cloud for locating services for the purpose of load balancing and failover of middle-tier servers.
    See all alternatives