NATS聽vs聽SignalR聽vs聽Socket.IO

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

NATS

229
342
+ 1
51
SignalR

387
954
+ 1
106
Socket.IO

8.7K
7.1K
+ 1
773
Advice on NATS, SignalR, and Socket.IO
Needs advice
on
Socket.IO
Firebase
and
Apollo

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 路 218.5K views
Recommends
Firebase

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
Ably

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
8base

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 NATS
Pros of SignalR
Pros of Socket.IO
  • 20
    Fastest pub-sub system out there
  • 14
    Rock solid
  • 10
    Easy to grasp
  • 3
    Light-weight
  • 3
    Easy, Fast, Secure
  • 1
    Robust Security Model
  • 24
    Supports .NET server
  • 16
    Real-time
  • 13
    Free
  • 13
    Fallback to SSE, forever frame, long polling
  • 12
    WebSockets
  • 7
    Simple
  • 7
    JSON
  • 6
    Open source
  • 4
    Ease of use
  • 4
    Cool
  • 213
    Real-time
  • 142
    Event-based communication
  • 141
    Node.js
  • 102
    Open source
  • 101
    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 NATS
Cons of SignalR
Cons of Socket.IO
  • 1
    Persistence with Jetstream supported
  • 1
    No Order
  • 1
    No Persistence
  • 2
    Expertise hard to get
  • 1
    Big differences between ASP.NET and Core versions
  • 1
    Requires jQuery
  • 1
    Weak iOS and Android support
  • 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

- No public GitHub repository available -

What is NATS?

Unlike traditional enterprise messaging systems, NATS has an always-on dial tone that does whatever it takes to remain available. This forms a great base for building modern, reliable, and scalable cloud and distributed systems.

What is SignalR?

SignalR allows bi-directional communication between server and client. Servers can now push content to connected clients instantly as it becomes available. SignalR supports Web Sockets, and falls back to other compatible techniques for older browsers. SignalR includes APIs for connection management (for instance, connect and disconnect events), grouping connections, and authorization.

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 NATS?
What companies use SignalR?
What companies use Socket.IO?

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

What tools integrate with NATS?
What tools integrate with SignalR?
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 NATS, SignalR, and Socket.IO?
Kafka
Kafka is a distributed, partitioned, replicated commit log service. It provides the functionality of a messaging system, but with a unique design.
gRPC
gRPC is a modern open source high performance RPC framework that can run in any environment. It can efficiently connect services in and across data centers with pluggable support for load balancing, tracing, health checking...
MQTT
It was designed as an extremely lightweight publish/subscribe messaging transport. It is useful for connections with remote locations where a small code footprint is required and/or network bandwidth is at a premium.
NSQ
NSQ is a realtime distributed messaging platform designed to operate at scale, handling billions of messages per day. It promotes distributed and decentralized topologies without single points of failure, enabling fault tolerance and high availability coupled with a reliable message delivery guarantee. See features & guarantees.
RabbitMQ
RabbitMQ gives your applications a common platform to send and receive messages, and your messages a safe place to live until received.
See all alternatives