Alternatives to Sanic logo

Alternatives to Sanic

Flask, AIOHTTP, Tornado, NGINX, and Apache HTTP Server are the most popular alternatives and competitors to Sanic.
66
107
+ 1
9

What is Sanic and what are its top alternatives?

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.
Sanic is a tool in the Web Servers category of a tech stack.
Sanic is an open source tool with 15.6K GitHub stars and 1.4K GitHub forks. Here’s a link to Sanic's open source repository on GitHub

Top Alternatives to Sanic

  • Flask

    Flask

    Flask is intended for getting started very quickly and was developed with best intentions in mind. ...

  • AIOHTTP

    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

    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

    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

    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

    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

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

  • OpenResty

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

Sanic alternatives & related posts

Flask logo

Flask

14.1K
11.9K
1.5K
A microframework for Python based on Werkzeug, Jinja 2 and good intentions
14.1K
11.9K
+ 1
1.5K
PROS OF FLASK
  • 313
    Lightweight
  • 269
    Python
  • 214
    Minimal
  • 145
    Open source
  • 98
    Documentation
  • 66
    Easy to use
  • 54
    Easy to setup and get it going
  • 53
    Well designed
  • 48
    Easy to develop and maintain applications
  • 45
    Easy to get started
  • 18
    Beautiful code
  • 16
    Rapid development
  • 14
    Powerful
  • 13
    Expressive
  • 12
    Awesome
  • 11
    Love it
  • 11
    Flexibilty
  • 11
    Speed
  • 10
    Get started quickly
  • 10
    Simple to use
  • 10
    Easy to integrate
  • 9
    Perfect for small to large projects with superb docs.
  • 9
    For it flexibility
  • 9
    Customizable
  • 8
    Productive
  • 8
    Flexibilty and easy to use
  • 7
    Flask
  • 6
    Not JS
  • 6
    User friendly
  • 5
    Secured
  • 4
    Unopinionated
  • 1
    Secure
  • 1
    Orm
CONS OF FLASK
  • 10
    Not JS
  • 7
    Context
  • 4
    Not fast
  • 1
    Don't has many module as in spring

related Flask posts

James Man
Software Engineer at Pinterest · | 42 upvotes · 845.6K views
Shared insights
on
FlaskFlaskReactReact
at

One of our top priorities at Pinterest is fostering a safe and trustworthy experience for all Pinners. As Pinterest’s user base and ads business grow, the review volume has been increasing exponentially, and more content types require moderation support. To solve greater engineering and operational challenges at scale, we needed a highly-reliable and performant system to detect, report, evaluate, and act on abusive content and users and so we created Pinqueue.

Pinqueue-3.0 serves as a generic platform for content moderation and human labeling. Under the hood, Pinqueue3.0 is a Flask + React app powered by Pinterest’s very own Gestalt UI framework. On the backend, Pinqueue3.0 heavily relies on PinLater, a Pinterest-built reliable asynchronous job execution system, to handle the requests for enqueueing and action-taking. Using PinLater has significantly strengthened Pinqueue3.0’s overall infra with its capability of processing a massive load of events with configurable retry policies.

Hundreds of millions of people around the world use Pinterest to discover and do what they love, and our job is to protect them from abusive and harmful content. We’re committed to providing an inspirational yet safe experience to all Pinners. Solving trust & safety problems is a joint effort requiring expertise across multiple domains. Pinqueue3.0 not only plays a critical role in responsively taking down unsafe content, it also has become an enabler for future ML/automation initiatives by providing high-quality human labels. Going forward, we will continue to improve the review experience, measure review quality and collaborate with our machine learning teams to solve content moderation beyond manual reviews at an even larger scale.

See more

Hey, so I developed a basic application with Python. But to use it, you need a python interpreter. I want to add a GUI to make it more appealing. What should I choose to develop a GUI? I have very basic skills in front end development (CSS, JavaScript). I am fluent in python. I'm looking for a tool that is easy to use and doesn't require too much code knowledge. I have recently tried out Flask, but it is kinda complicated. Should I stick with it, move to Django, or is there another nice framework to use?

See more
AIOHTTP logo

AIOHTTP

109
117
0
Asynchronous HTTP Client/Server for asyncio and Python
109
117
+ 1
0
PROS OF AIOHTTP
    Be the first to leave a pro
    CONS OF AIOHTTP
      Be the first to leave a con

      related AIOHTTP posts

      Jelena Dedovic

      Investigating Tortoise ORM and GINO ORM...

      I need to introduce some async ORM with the current stack: Tornado with asyncio loop, AIOHTTP, with PostgreSQL and MSSQL. This project revolves heavily around realtime and due to the realtime requirements, blocking during database access is not acceptable.

      Considering that these ORMs are both young projects, I wondered if anybody had some experience with similar stack and these async ORMs?

      See more
      Tornado logo

      Tornado

      317
      368
      165
      A Python web framework and asynchronous networking library, originally developed at FriendFeed
      317
      368
      + 1
      165
      PROS OF TORNADO
      • 37
        Open source
      • 31
        So fast
      • 27
        Great for microservices architecture
      • 20
        Websockets
      • 17
        Simple
      • 13
        Asynchronous
      • 10
        Python
      • 7
        Lightweight
      • 3
        Handles well persistent connexions
      CONS OF TORNADO
      • 2
        Event loop is complicated

      related Tornado posts

      Around the time of their Series A, Pinterest’s stack included Python and Django, with Tornado and Node.js as web servers. Memcached / Membase and Redis handled caching, with RabbitMQ handling queueing. Nginx, HAproxy and Varnish managed static-delivery and load-balancing, with persistent data storage handled by MySQL.

      See more
      NGINX logo

      NGINX

      93.9K
      44.1K
      5.5K
      A high performance free open source web server powering busiest sites on the Internet.
      93.9K
      44.1K
      + 1
      5.5K
      PROS OF NGINX
      • 1.4K
        High-performance http server
      • 896
        Performance
      • 728
        Easy to configure
      • 606
        Open source
      • 529
        Load balancer
      • 286
        Scalability
      • 285
        Free
      • 222
        Web server
      • 173
        Simplicity
      • 134
        Easy setup
      • 29
        Content caching
      • 19
        Web Accelerator
      • 14
        Capability
      • 13
        Fast
      • 11
        Predictability
      • 10
        High-latency
      • 7
        Reverse Proxy
      • 6
        Supports http/2
      • 4
        The best of them
      • 4
        Lots of Modules
      • 4
        Enterprise version
      • 4
        Great Community
      • 3
        High perfomance proxy server
      • 3
        Streaming media
      • 3
        Embedded Lua scripting
      • 3
        Reversy Proxy
      • 3
        Streaming media delivery
      • 2
        Fast and easy to set up
      • 2
        Lightweight
      • 2
        Slim
      • 2
        saltstack
      • 1
        Virtual hosting
      • 1
        Blash
      • 1
        GRPC-Web
      • 1
        Ingress controller
      • 1
        Narrow focus. Easy to configure. Fast
      • 1
        Along with Redis Cache its the Most superior
      • 0
        A
      CONS OF NGINX
      • 8
        Advanced features require subscription

      related NGINX posts

      Recently I have been working on an open source stack to help people consolidate their personal health data in a single database so that AI and analytics apps can be run against it to find personalized treatments. We chose to go with a #containerized approach leveraging Docker #containers with a local development environment setup with Docker Compose and nginx for container routing. For the production environment we chose to pull code from GitHub and build/push images using Jenkins and using Kubernetes to deploy to Amazon EC2.

      We also implemented a dashboard app to handle user authentication/authorization, as well as a custom SSO server that runs on Heroku which allows experts to easily visit more than one instance without having to login repeatedly. The #Backend was implemented using my favorite #Stack which consists of FeathersJS on top of Node.js and ExpressJS with PostgreSQL as the main database. The #Frontend was implemented using React, Redux.js, Semantic UI React and the FeathersJS client. Though testing was light on this project, we chose to use AVA as well as ESLint to keep the codebase clean and consistent.

      See more
      Gabriel Pa
      Shared insights
      on
      TraefikTraefikNGINXNGINX
      at

      We switched to Traefik so we can use the REST API to dynamically configure subdomains and have the ability to redirect between multiple servers.

      We still use nginx with a docker-compose to expose the traffic from our APIs and TCP microservices, but for managing routing to the internet Traefik does a much better job

      The biggest win for naologic was the ability to set dynamic configurations without having to restart the server

      See more
      Apache HTTP Server logo

      Apache HTTP Server

      59.1K
      17.9K
      1.4K
      The most popular web server on the Internet since April 1996
      59.1K
      17.9K
      + 1
      1.4K
      PROS OF APACHE HTTP SERVER
      • 477
        Web server
      • 305
        Most widely-used web server
      • 218
        Virtual hosting
      • 148
        Fast
      • 138
        Ssl support
      • 45
        Since 1996
      • 28
        Asynchronous
      • 5
        Robust
      • 4
        Proven over many years
      • 1
        Mature
      • 1
        Perfect Support
      • 1
        Perfomance
      • 0
        Many available modules
      • 0
        Many available modules
      CONS OF APACHE HTTP SERVER
      • 2
        Hard to set up

      related Apache HTTP Server posts

      Tim Abbott
      Shared insights
      on
      NGINXNGINXApache HTTP ServerApache HTTP Server
      at

      We've been happy with nginx as part of our stack. As an open source web application that folks install on-premise, the configuration system for the webserver is pretty important to us. I have a few complaints (e.g. the configuration syntax for conditionals is a pain), but overall we've found it pretty easy to build a configurable set of options (see link) for how to run Zulip on nginx, both directly and with a remote reverse proxy in front of it, with a minimum of code duplication.

      Certainly I've been a lot happier with it than I was working with Apache HTTP Server in past projects.

      See more
      Marcel Kornegoor
      Shared insights
      on
      NGINXNGINXApache HTTP ServerApache HTTP Server

      nginx or Apache HTTP Server that's the question. The best choice depends on what it needs to serve. In general, Nginx performs better with static content, where Apache and Nginx score roughly the same when it comes to dynamic content. Since most webpages and web-applications use both static and dynamic content, a combination of both platforms may be the best solution.

      Since both webservers are easy to deploy and free to use, setting up a performance or feature comparison test is no big deal. This way you can see what solutions suits your application or content best. Don't forget to look at other aspects, like security, back-end compatibility (easy of integration) and manageability, as well.

      A reasonably good comparison between the two can be found in the link below.

      See more
      Microsoft IIS logo

      Microsoft IIS

      12.6K
      5.4K
      232
      A web server for Microsoft Windows
      12.6K
      5.4K
      + 1
      232
      PROS OF MICROSOFT IIS
      • 82
        Great with .net
      • 53
        I'm forced to use iis
      • 25
        Use nginx
      • 18
        Azure integration
      • 14
        Best for ms technologyes ms bullshit
      • 10
        Fast
      • 6
        Performance
      • 6
        Reliable
      • 4
        Powerful
      • 3
        Webserver
      • 3
        Simple to configure
      • 2
        Easy setup
      • 1
        Охуенный
      • 1
        Shipped with Windows Server
      • 1
        Ssl integration
      • 1
        1
      • 1
        Security
      • 1
        I am not forced to use iis anymore :)
      CONS OF MICROSOFT IIS
      • 1
        Had to stuck on MS stack

      related Microsoft IIS posts

      I am currently in school for computer science and am doing a class project about web servers. Our assignment is to research and select one of these web servers. Could you please let me know which one you would choose among NGINX, Microsoft IIS, and Apache HTTP Server and why?

      See more
      Apache Tomcat logo

      Apache Tomcat

      12.1K
      8.5K
      200
      An open source software implementation of the Java Servlet and JavaServer Pages technologies
      12.1K
      8.5K
      + 1
      200
      PROS OF APACHE TOMCAT
      • 79
        Easy
      • 72
        Java
      • 48
        Popular
      • 1
        Spring web
      CONS OF APACHE TOMCAT
        Be the first to leave a con

        related Apache Tomcat posts

        Остап Комплікевич

        I need some advice to choose an engine for generation web pages from the Spring Boot app. Which technology is the best solution today? 1) JSP + JSTL 2) Apache FreeMarker 3) Thymeleaf Or you can suggest even other perspective tools. I am using Spring Boot, Spring Web, Spring Data, Spring Security, PostgreSQL, Apache Tomcat in my project. I have already tried to generate pages using jsp, jstl, and it went well. However, I had huge problems via carrying already created static pages, to jsp format, because of syntax. Thanks.

        See more

        Java Spring JUnit

        Apache HTTP Server Apache Tomcat

        MySQL

        See more
        OpenResty logo

        OpenResty

        2.2K
        189
        0
        Turning Nginx into a Full-fledged Web App Server
        2.2K
        189
        + 1
        0
        PROS OF OPENRESTY
          Be the first to leave a pro
          CONS OF OPENRESTY
            Be the first to leave a con

            related OpenResty posts

            Chris McFadden
            VP, Engineering at SparkPost · | 7 upvotes · 253.3K views
            Shared insights
            on
            NGINXNGINXOpenRestyOpenRestyLuaLua
            at

            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

            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’s 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