Get Advice Icon

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

Gunicorn
Gunicorn

621
280
+ 1
58
OpenResty
OpenResty

2.1K
75
+ 1
0
Add tool

Gunicorn vs OpenResty: What are the differences?

Developers describe Gunicorn as "A Python WSGI HTTP Server for UNIX". Gunicorn is a pre-fork worker model ported from Ruby's Unicorn project. The Gunicorn server is broadly compatible with various web frameworks, simply implemented, light on server resources, and fairly speedy. On the other hand, OpenResty is detailed as "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.

Gunicorn and OpenResty can be primarily classified as "Web Servers" tools.

Gunicorn and OpenResty are both open source tools. OpenResty with 7.12K GitHub stars and 984 forks on GitHub appears to be more popular than Gunicorn with 5.96K GitHub stars and 1.12K GitHub forks.

Instagram, reddit, and hike are some of the popular companies that use Gunicorn, whereas OpenResty is used by Shopify, Kong, and Pagar.me. Gunicorn has a broader approval, being mentioned in 184 company stacks & 51 developers stacks; compared to OpenResty, which is listed in 37 company stacks and 5 developer stacks.

What is Gunicorn?

Gunicorn is a pre-fork worker model ported from Ruby's Unicorn project. The Gunicorn server is broadly compatible with various web frameworks, simply implemented, light on server resources, and fairly speedy.

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.
Get Advice Icon

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

Why do developers choose Gunicorn?
Why do developers choose OpenResty?
    Be the first to leave a pro
      Be the first to leave a con
        Be the first to leave a con
        What companies use Gunicorn?
        What companies use OpenResty?

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

        What tools integrate with Gunicorn?
        What tools integrate with OpenResty?
        What are some alternatives to Gunicorn and OpenResty?
        uWSGI
        The uWSGI project aims at developing a full stack for building hosting services.
        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.
        Apache HTTP Server
        The Apache HTTP Server is a powerful and flexible HTTP/1.1 compliant web server. Originally designed as a replacement for the NCSA HTTP Server, it has grown to be the most popular web server on the Internet.
        Microsoft IIS
        Internet Information Services (IIS) for Windows Server is a flexible, secure and manageable Web server for hosting anything on the Web. From media streaming to web applications, IIS's scalable and open architecture is ready to handle the most demanding tasks.
        Apache Tomcat
        Apache Tomcat powers numerous large-scale, mission-critical web applications across a diverse range of industries and organizations.
        See all alternatives
        Decisions about Gunicorn and OpenResty
        Go
        Go
        Lua
        Lua
        OpenResty
        OpenResty
        nginx
        nginx
        Logstash
        Logstash
        Prometheus
        Prometheus

        At Kong while building an internal tool, we struggled to route metrics to Prometheus and logs to Logstash without incurring too much latency in our metrics collection.

        We replaced nginx with OpenResty on the edge of our tool which allowed us to use the lua-nginx-module to run Lua code that captures metrics and records telemetry data during every request鈥檚 log phase. Our code then pushes the metrics to a local aggregator process (written in Go) which in turn exposes them in Prometheus Exposition Format for consumption by Prometheus. This solution reduced the number of components we needed to maintain and is fast thanks to NGINX and LuaJIT.

        See more
        Chris McFadden
        Chris McFadden
        VP, Engineering at SparkPost | 7 upvotes 63.1K views
        atSparkPostSparkPost
        Lua
        Lua
        OpenResty
        OpenResty
        nginx
        nginx

        We use nginx and OpenResty as our API proxy running on EC2 for auth, caching, and some rate limiting for our dozens of microservices. Since OpenResty support embedded Lua we were able to write a custom access module that calls out to our authentication service with the resource, method, and access token. If that succeeds then critical account info is passed down to the underlying microservice. This proxy approach keeps all authentication and authorization in one place and provides a unified CX for our API users. Nginx is fast and cheap to run though we are always exploring alternatives that are also economical. What do you use?

        See more
        Interest over time
        Reviews of Gunicorn and OpenResty
        No reviews found
        How developers use Gunicorn and OpenResty
        Avatar of Banyan
        Banyan uses GunicornGunicorn

        Gunicorn is WSGI container that we used to run our Tornado code as it supports Asynchronous operations on tornado.

        Avatar of MiW CryptAnalytics
        MiW CryptAnalytics uses GunicornGunicorn

        Gunicorn runs as the HTTP application server. Serves the django application in WSGI mode.

        Avatar of TOMIS
        TOMIS uses GunicornGunicorn

        uWSGI server that is easy to configure with Nginx and Django

        Avatar of Val Neekman
        Val Neekman uses GunicornGunicorn

        Gunicorn is used as the backend webserver

        Avatar of Patrick Ian
        Patrick Ian uses OpenRestyOpenResty

        Routing with nginx + in-house Lua plugins

        Avatar of Alec Cunningham
        Alec Cunningham uses GunicornGunicorn

        Runs my Django based API through nginx.

        How much does Gunicorn cost?
        How much does OpenResty cost?
        Pricing unavailable
        Pricing unavailable
        News about Gunicorn
        More news
        News about OpenResty
        More news