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

Sanic

66
107
+ 1
9
Socket.IO

9.1K
7.5K
+ 1
777
Add tool

Sanic vs Socket.IO: What are the differences?

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; Socket.IO: Realtime application framework (Node.JS server). Socket.IO enables real-time bidirectional event-based communication. It works on every platform, browser or device, focusing equally on reliability and speed.

Sanic and Socket.IO are primarily classified as "Web Servers" and "Realtime Backend / API" tools respectively.

"Asyncio" is the primary reason why developers consider Sanic over the competitors, whereas "Real-time" was stated as the key factor in picking Socket.IO.

Sanic and Socket.IO are both open source tools. Socket.IO with 46.7K GitHub stars and 8.53K forks on GitHub appears to be more popular than Sanic with 12.3K GitHub stars and 1.15K GitHub forks.

PedidosYa, Trello, and triGo GmbH are some of the popular companies that use Socket.IO, whereas Sanic is used by Polyaxon, Oh BiBi, and AdCombo. Socket.IO has a broader approval, being mentioned in 555 company stacks & 385 developers stacks; compared to Sanic, which is listed in 5 company stacks and 6 developer stacks.

Advice on Sanic and Socket.IO
Needs advice
on
Socket.IOSocket.IOFirebaseFirebase
and
ApolloApollo

We are starting to work on a web-based platform aiming to connect artists (clients) and professional freelancers (service providers). In-app, timeline-based, real-time communication between users (& storing it), file transfers, and push notifications are essential core features. We are considering using Node.js, ExpressJS, React, MongoDB stack with Socket.IO & Apollo, or maybe using Real-Time Database and functionalities of Firebase.

See more
Replies (3)
Timothy Malstead
Junior Full Stack Developer at Freelance | 7 upvotes 路 252K views
Recommends
FirebaseFirebase

I would recommend looking hard into Firebase for this project, especially if you do not have dedicated full-stack or backend members on your team.

The real time database, as you mentioned, is a great option, but I would also look into Firestore. Similar to RTDB, it adds more functions and some cool methods as well. Also, another great thing about Firebase is you have easy access to storage and dead simple auth as well.

Node.js Express MongoDB Socket.IO and Apollo are great technologies as well, and may be the better option if you do not wish to cede as much control to third parties in your application.

Overall, I say if you wish to focus more time developing your React application instead of other parts of your stack, Firebase is a great way to do that.

See more
Recommends
AblyAbly

Hello Noam 馃憢,

I suggest taking a look at Ably, it has all the realtime features you need and the platform is designed to guarantee critical functionality at scale.

Here is an in depth comparison between Ably and Firebase

See more
Recommends
8base8base

Hey Noam,

I would recommend you to take a look into 8base. It has features you've requested, also relation database and GraphQL API which will help you to develop rapidly.

Thanks, Ilya

See more
Get Advice from developers at your company using Private StackShare. Sign up for Private StackShare.
Learn More
Pros of Sanic
Pros of Socket.IO
  • 4
    Asyncio
  • 2
    Fast
  • 2
    Easy to use server
  • 1
    Websockets
  • 214
    Real-time
  • 143
    Event-based communication
  • 142
    Node.js
  • 102
    Open source
  • 102
    WebSockets
  • 26
    Binary streaming
  • 22
    No internet dependency
  • 9
    Fallback to polling if WebSockets not supported
  • 8
    Large community
  • 5
    Ease of access and setup
  • 4
    Push notification

Sign up to add or upvote prosMake informed product decisions

Cons of Sanic
Cons of Socket.IO
    Be the first to leave a con
    • 11
      Bad documentation
    • 4
      Githubs that complement it are mostly deprecated
    • 3
      Doesn't work on React Native
    • 2
      Websocket Errors
    • 2
      Small community

    Sign up to add or upvote consMake informed product decisions

    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 Socket.IO?

    It enables real-time bidirectional event-based communication. It works on every platform, browser or device, focusing equally on reliability and speed.

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

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

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

    What tools integrate with Sanic?
    What tools integrate with Socket.IO?

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

    Blog Posts

    What are some alternatives to Sanic and Socket.IO?
    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