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

Google Cloud Pub/Sub

449
371
+ 1
19
Socket.IO

10.2K
8.5K
+ 1
775
Add tool

Google Cloud Pub/Sub vs Socket.IO: What are the differences?

Developers describe Google Cloud Pub/Sub as "Global service for real-time and reliable messaging and streaming data". Cloud Pub/Sub is a fully-managed real-time messaging service that allows you to send and receive messages between independent applications. You can leverage Cloud Pub/Sub鈥檚 flexibility to decouple systems and components hosted on Google Cloud Platform or elsewhere on the Internet. On the other hand, Socket.IO is detailed as "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.

Google Cloud Pub/Sub and Socket.IO can be categorized as "Realtime Backend / API" tools.

Socket.IO is an open source tool with 46.9K GitHub stars and 8.54K GitHub forks. Here's a link to Socket.IO's open source repository on GitHub.

According to the StackShare community, Socket.IO has a broader approval, being mentioned in 560 company stacks & 395 developers stacks; compared to Google Cloud Pub/Sub, which is listed in 75 company stacks and 17 developer stacks.

Advice on Google Cloud Pub/Sub 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 路 317.4K 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 Google Cloud Pub/Sub
Pros of Socket.IO
  • 9
    Easy to set-up and start with
  • 4
    Https://github.com/googleapis/nodejs-pubsub
  • 2
    FYI it has a github repo. please add it
  • 2
    A great choice for microservice architecture
  • 2
    Efficient and practical for complex systems
  • 214
    Real-time
  • 141
    Event-based communication
  • 141
    Node.js
  • 102
    WebSockets
  • 101
    Open source
  • 26
    Binary streaming
  • 21
    No internet dependency
  • 9
    Fallback to polling if WebSockets not supported
  • 9
    Large community
  • 6
    Push notification
  • 5
    Ease of access and setup

Sign up to add or upvote prosMake informed product decisions

Cons of Google Cloud Pub/Sub
Cons of Socket.IO
  • 2
    Need integration with stackdriver for monitoring
  • 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