NGINX vs OpenResty

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

NGINX

85K
36.2K
+ 1
5.5K
OpenResty

2.2K
162
+ 1
0
Add tool

nginx vs OpenResty: What are the differences?

nginx: A high performance free open source web server powering busiest sites on the Internet. 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; OpenResty: Turning Nginx into a Full-fledged Web App Server. OpenResty (aka. ngx_openresty) is a full-fledged web application server by bundling the standard Nginx core, lots of 3rd-party Nginx modules, as well as most of their external dependencies.

nginx and OpenResty can be categorized as "Web Servers" tools.

nginx and OpenResty are both open source tools. It seems that nginx with 9.1K GitHub stars and 3.43K forks on GitHub has more adoption than OpenResty with 7.12K GitHub stars and 984 GitHub forks.

Airbnb, Uber Technologies, and Spotify are some of the popular companies that use nginx, whereas OpenResty is used by Shopify, Kong, and Pagar.me. nginx has a broader approval, being mentioned in 8670 company stacks & 2556 developers stacks; compared to OpenResty, which is listed in 37 company stacks and 5 developer stacks.

Decisions about NGINX and OpenResty
Grant Steuart
  • Server rendered HTML output from PHP is being migrated to the client as Vue.js components, future plans to provide additional content, and other new miscellaneous features all result in a substantial increase of static files needing to be served from the server. NGINX has better performance than Apache for serving static content.
  • The change to NGINX will require switching from PHP to PHP-FPM resulting in a distributed architecture with a higher complexity configuration, but this is outweighed by PHP-FPM being faster than PHP for processing requests.
  • The NGINX + PHP-FPM setup now allows for horizontally scaling of resources rather vertically scaling the previously combined Apache + PHP resources.
  • PHP shell tasks can now efficiently be decoupled from the application reducing main application footprint and allow for scaling of tasks on an individual basis.
See more
Pros of NGINX
Pros of OpenResty
  • 1.5K
    High-performance http server
  • 901
    Performance
  • 732
    Easy to configure
  • 608
    Open source
  • 530
    Load balancer
  • 286
    Scalability
  • 285
    Free
  • 222
    Web server
  • 174
    Simplicity
  • 133
    Easy setup
  • 29
    Content caching
  • 19
    Web Accelerator
  • 14
    Capability
  • 13
    Fast
  • 11
    Predictability
  • 10
    High-latency
  • 6
    Supports http/2
  • 6
    Reverse Proxy
  • 6
    Fast and lightweight
  • 4
    The best of them
  • 4
    Lots of Modules
  • 4
    Great Community
  • 4
    Enterprise version
  • 3
    Embedded Lua scripting
  • 3
    Reversy Proxy
  • 3
    Streaming media delivery
  • 3
    Streaming media
  • 3
    High perfomance proxy server
  • 2
    Lightweight
  • 2
    saltstack
  • 2
    Fast and easy to set up
  • 2
    Slim
  • 1
    GRPC-Web
  • 1
    Narrow focus. Easy to configure. Fast
  • 1
    Ingress controller
  • 1
    Along with Redis Cache its the Most superior
  • 1
    Virtual hosting
  • 0
    A
    Be the first to leave a pro

    Sign up to add or upvote prosMake informed product decisions

    Cons of NGINX
    Cons of OpenResty
    • 5
      Advanced features require subscription
      Be the first to leave a con

      Sign up to add or upvote consMake informed product decisions

      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.

      What is OpenResty?

      OpenResty (aka. ngx_openresty) is a full-fledged web application server by bundling the standard Nginx core, lots of 3rd-party Nginx modules, as well as most of their external dependencies.

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

      What companies use NGINX?
      What companies use OpenResty?

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

      What tools integrate with NGINX?
      What tools integrate with OpenResty?

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

      Blog Posts

      What are some alternatives to NGINX and OpenResty?
      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.
      lighttpd
      lighttpd has a very low memory footprint compared to other webservers and takes care of cpu-load. Its advanced feature-set (FastCGI, CGI, Auth, Output-Compression, URL-Rewriting and many more) make lighttpd the perfect webserver-software for every server that suffers load problems.
      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.
      Caddy
      Caddy 2 is a powerful, enterprise-ready, open source web server with automatic HTTPS written in Go.
      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.
      See all alternatives
      Interest over time
      News about OpenResty
      More news