Need advice about which tool to choose?Ask the StackShare community!
Pusher vs SignalR: What are the differences?
Introduction
Pusher and SignalR are both technologies used for real-time communication in web applications. While they serve the same purpose, they have some key differences that set them apart from each other.
Scalability: Pusher is a cloud-based service that handles all the real-time communication infrastructure, making it highly scalable. On the other hand, SignalR requires additional configuration and infrastructure setup to achieve scalability, as it needs to be hosted on a server.
Platform Compatibility: Pusher provides libraries and SDKs for various platforms, including web, mobile, and IoT devices, making it compatible with a wide range of platforms out of the box. SignalR, on the other hand, primarily focuses on providing support for .NET platforms, making it more suitable for developers using Microsoft technologies.
Ease of Setup: Pusher is known for its simplicity and ease of setup. It offers a ready-to-use cloud-based service that requires minimal configuration, making it easy for developers to get started quickly. SignalR, on the other hand, requires more configuration and setup, as it needs to be hosted on a server. This can be a bit more complex for developers who are not familiar with server-side technologies.
Real-time Data Syncing: Pusher uses a publish-subscribe model, where clients subscribe to specific channels and receive relevant data updates in real-time. SignalR, on the other hand, supports multiple communication patterns, including real-time data syncing, but also provides features like RPC (Remote Procedure Call) and persistent connections.
Authentication and Security: Pusher provides built-in authentication and security mechanisms, making it easier for developers to secure their real-time communication channels. SignalR, on the other hand, requires additional configuration and implementation of authentication and security measures, which can be more complex and time-consuming.
Community and Ecosystem: Pusher has a large and active community of developers, with extensive documentation and resources available. It also offers integrations with popular frameworks and services, making it easy to integrate with existing tech stacks. SignalR, on the other hand, has a smaller community and a more narrow focus on .NET technologies, which can limit the availability of resources and community support.
In summary, Pusher and SignalR differ in terms of scalability, platform compatibility, ease of setup, real-time data syncing, authentication and security, as well as the size and activity of their respective communities.
I am building an IoT application that will utilize connected air quality sensors to provide real-time indoor air quality in offices. I want to be able to share this data with a few different databases, etc.
Wondering if anyone has any advice on which real-time streaming API would be best for this sort of application, or even how I should think about it?
For IoT, we support MQTT along with websockets and SSE. The pattern you're suggesting that involves harvesting data from devices and soaking into a database is easy to achieve with one of the Ably integrations (Serverless functions/webhook) . Here are some tutorials to do things like this: https://ably.com/tutorials/reactor-event-zapier#step2-mqtt-ably
We use Pusher at www.justlearn.com. It works fine. When you reach more users, Pusher gets expensive. We use Pusher for live chat between users. Their software is easy to use. We have had issues with auth on Pusher.
Pros of Pusher
- An easy way to give customers realtime features55
- Websockets40
- Simple34
- Easy to get started with27
- Free plan25
- Heroku Add-on12
- Easy and fast to configure and to understand11
- JSON9
- Happy6
- Azure Add-on6
- Support5
- Push notification4
Pros of SignalR
- Supports .NET server32
- Real-time25
- Free18
- Fallback to SSE, forever frame, long polling16
- WebSockets15
- Simple10
- Open source9
- Ease of use8
- JSON8
- Cool5
- Azure0
Sign up to add or upvote prosMake informed product decisions
Cons of Pusher
- Costly11
Cons of SignalR
- Expertise hard to get2
- Requires jQuery2
- Weak iOS and Android support1
- Big differences between ASP.NET and Core versions1