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

Gunicorn

859
728
+ 1
76
Sanic

66
107
+ 1
9
Add tool

Gunicorn vs Sanic: What are the differences?

Gunicorn: 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; Sanic: Python 3.5+ web server that's written to go fast. Sanic is a Flask-like Python 3.5+ web server that's written to go fast. It's based on the work done by the amazing folks at magicstack. On top of being Flask-like, Sanic supports async request handlers.

Gunicorn and Sanic belong to "Web Servers" category of the tech stack.

"Python" is the top reason why over 26 developers like Gunicorn, while over 2 developers mention "Asyncio" as the leading cause for choosing Sanic.

Gunicorn and Sanic are both open source tools. Sanic with 12.4K GitHub stars and 1.16K forks on GitHub appears to be more popular than Gunicorn with 5.96K GitHub stars and 1.12K GitHub forks.

According to the StackShare community, Gunicorn has a broader approval, being mentioned in 184 company stacks & 51 developers stacks; compared to Sanic, which is listed in 5 company stacks and 6 developer stacks.

Get Advice from developers at your company using Private StackShare. Sign up for Private StackShare.
Learn More
Pros of Gunicorn
Pros of Sanic
  • 34
    Python
  • 30
    Easy setup
  • 7
    Reliable
  • 3
    Fast
  • 2
    Light
  • 4
    Asyncio
  • 2
    Fast
  • 2
    Easy to use server
  • 1
    Websockets

Sign up to add or upvote prosMake informed product decisions

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

Sanic is a Flask-like Python 3.5+ web server that's written to go fast. It's based on the work done by the amazing folks at magicstack. On top of being Flask-like, Sanic supports async request handlers.

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

What companies use Gunicorn?
What companies use Sanic?
See which teams inside your own company are using Gunicorn or Sanic.
Sign up for Private StackShareLearn More

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

What tools integrate with Gunicorn?
What tools integrate with Sanic?
What are some alternatives to Gunicorn and Sanic?
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.
Flask
Flask is intended for getting started very quickly and was developed with best intentions in mind.
Waitress
It is meant to be a production-quality pure-Python WSGI server with very acceptable performance. It has no dependencies except ones which live in the Python standard library. It runs on CPython on Unix and Windows under Python 2.7+ and Python 3.4+. It is also known to run on PyPy 1.6.0 on UNIX.
gevent
It is a coroutine -based Python networking library that uses greenlet to provide a high-level synchronous API on top of the libev or libuv event loop.
See all alternatives