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

Sanic

94
132
+ 1
10
Apache Tomcat

16.3K
12.2K
+ 1
201
Add tool

Sanic vs Apache Tomcat: What are the differences?

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

What is Apache Tomcat? An open source software implementation of the Java Servlet and JavaServer Pages technologies. Apache Tomcat powers numerous large-scale, mission-critical web applications across a diverse range of industries and organizations.

Sanic and Apache Tomcat can be primarily classified as "Web Servers" tools.

"Asyncio" is the top reason why over 2 developers like Sanic, while over 76 developers mention "Easy" as the leading cause for choosing Apache Tomcat.

Sanic and Apache Tomcat are both open source tools. It seems that Sanic with 12.4K GitHub stars and 1.16K forks on GitHub has more adoption than Apache Tomcat with 3.51K GitHub stars and 2.4K GitHub forks.

ebay, MIT, and Zillow are some of the popular companies that use Apache Tomcat, whereas Sanic is used by Polyaxon, Oh BiBi, and AdCombo. Apache Tomcat has a broader approval, being mentioned in 566 company stacks & 430 developers stacks; compared to Sanic, which is listed in 5 company stacks and 6 developer stacks.

Decisions about Sanic and Apache Tomcat

I was in a situation where I have to configure 40 RHEL servers 20 each for Apache HTTP Server and Tomcat server. My task was to 1. configure LVM with required logical volumes, format and mount for HTTP and Tomcat servers accordingly. 2. Install apache and tomcat. 3. Generate and apply selfsigned certs to http server. 4. Modify default ports on Tomcat to different ports. 5. Create users on RHEL for application support team. 6. other administrative tasks like, start, stop and restart HTTP and Tomcat services.

I have utilized the power of ansible for all these tasks, which made it easy and manageable.

See more
Get Advice from developers at your company using StackShare Enterprise. Sign up for StackShare Enterprise.
Learn More
Pros of Sanic
Pros of Apache Tomcat
  • 5
    Asyncio
  • 2
    Fast
  • 2
    Easy to use server
  • 1
    Websockets
  • 79
    Easy
  • 72
    Java
  • 49
    Popular
  • 1
    Spring web

Sign up to add or upvote prosMake informed product decisions

Cons of Sanic
Cons of Apache Tomcat
    Be the first to leave a con
    • 2
      Blocking - each http request block a thread
    • 1
      Easy to set up

    Sign up to add or upvote consMake informed product decisions

    - No public GitHub repository available -

    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.

    What is Apache Tomcat?

    Apache Tomcat powers numerous large-scale, mission-critical web applications across a diverse range of industries and organizations.

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

    Jobs that mention Sanic and Apache Tomcat as a desired skillset
    What companies use Sanic?
    What companies use Apache Tomcat?
    See which teams inside your own company are using Sanic or Apache Tomcat.
    Sign up for StackShare EnterpriseLearn More

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

    What tools integrate with Sanic?
    What tools integrate with Apache Tomcat?

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

    Blog Posts

    What are some alternatives to Sanic and Apache Tomcat?
    Flask
    Flask is intended for getting started very quickly and was developed with best intentions in mind.
    AIOHTTP
    It is an Async http client/server framework. It supports both client and server Web-Sockets out-of-the-box and avoids Callback. It provides Web-server with middlewares and pluggable routing.
    Tornado
    By using non-blocking network I/O, Tornado can scale to tens of thousands of open connections, making it ideal for long polling, WebSockets, and other applications that require a long-lived connection to each user.
    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.
    See all alternatives