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

Envoy

296
544
+ 1
9
NGINX

113.2K
60.9K
+ 1
5.5K
Add tool

Envoy vs nginx: What are the differences?

Envoy and Nginx are both open-source, high-performance web servers, but they cater to different needs. Envoy is a service mesh proxy designed for microservices architectures, offering advanced features like load balancing, circuit breaking, and health checks. Nginx excels at static content delivery and traditional web serving, known for its stability and ease of use. Here are the key differences between the two.

  1. Architecture: Envoy and nginx have different architectures. Envoy is designed as a service proxy and follows a sidecar architecture, where it runs alongside each service application instance. On the other hand, nginx is a reverse proxy server that typically runs on a separate server and handles incoming client requests. This architectural difference allows Envoy to provide more advanced features like service discovery, load balancing, and circuit-breaking.
  2. API Abstraction: Envoy and nginx have different levels of API abstraction. Envoy is designed to provide a more granular control over the underlying network communication, providing a rich set of configuration options through its API. In contrast, nginx provides a more abstract and simplified API, which makes it easier to configure for basic use cases but may limit the flexibility for more complex deployments.
  3. Extensibility: Envoy and nginx offer different levels of extensibility. Envoy has a modular architecture that allows users to plug in custom filters and extensions at various network layers, enabling the implementation of custom logic and integration with different systems. Nginx also supports some level of extensibility through modules, but the options are more limited compared to Envoy.
  4. Protocol Support: Envoy and nginx have different levels of protocol support. Envoy is built to handle modern protocols like gRPC and HTTP/2 out of the box, along with HTTP/1.1 and TCP. Nginx also supports these protocols but may require additional configuration or modules to handle newer protocols like gRPC effectively.
  5. Observability and Debugging: Envoy and nginx provide different observability and debugging capabilities. Envoy has built-in support for distributed tracing, request-level logs, and metrics, making it easier to monitor and analyze the behavior of your services. Nginx also provides logging and metrics capabilities but may require additional setup or third-party tools for tracing and advanced monitoring.
  6. Community and Ecosystem: Envoy and nginx have different community sizes and ecosystems. Envoy has gained significant traction in the cloud-native community and has a large and active community supporting its development and maintenance. Nginx has been around for a longer time and also has a strong community, but its ecosystem is more focused on traditional web server use cases.

In summary, Envoy, a service mesh proxy, shines in the dynamic world of microservices, offering advanced functionalities like load balancing and health checks. Nginx, on the other hand, reigns supreme in the realm of static content delivery, known for its stability and ease of use.

Advice on Envoy 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 · 716.4K 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 · 682.5K 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
Manage your open source components, licenses, and vulnerabilities
Learn More
Pros of Envoy
Pros of NGINX
  • 9
    GRPC-Web
  • 1.4K
    High-performance http server
  • 894
    Performance
  • 730
    Easy to configure
  • 607
    Open source
  • 530
    Load balancer
  • 289
    Free
  • 288
    Scalability
  • 226
    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
    Embedded Lua scripting
  • 3
    Streaming media delivery
  • 3
    Streaming media
  • 3
    Reversy Proxy
  • 2
    Blash
  • 2
    GRPC-Web
  • 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 Envoy
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

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

    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!

    Jobs that mention Envoy and NGINX as a desired skillset
    What companies use Envoy?
    What companies use NGINX?
    Manage your open source components, licenses, and vulnerabilities
    Learn More

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

    What tools integrate with Envoy?
    What tools integrate with NGINX?

    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
    5
    3460
    GitHubDockerReact+17
    41
    37180
    GitHubSlackNGINX+15
    28
    21083
    What are some alternatives to Envoy and NGINX?
    Istio
    Istio is an open platform for providing a uniform way to integrate microservices, manage traffic flow across microservices, enforce policies and aggregate telemetry data. Istio's control plane provides an abstraction layer over the underlying cluster management platform, such as Kubernetes, Mesos, etc.
    linkerd
    linkerd is an out-of-process network stack for microservices. It functions as a transparent RPC proxy, handling everything needed to make inter-service RPC safe and sane--including load-balancing, service discovery, instrumentation, and routing.
    Trailblazer
    Trailblazer is a thin layer on top of Rails. It gently enforces encapsulation, an intuitive code structure and gives you an object-oriented architecture. In a nutshell: Trailblazer makes you write logicless models that purely act as data objects, don't contain callbacks, nested attributes, validations or domain logic. It removes bulky controllers and strong_parameters by supplying additional layers to hold that code and completely replaces helpers.
    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.
    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.
    See all alternatives