Need advice about which tool to choose?Ask the StackShare community!
Apollo vs SocketCluster: What are the differences?
Developers describe Apollo as "GraphQL server for Express, Connect, Hapi, Koa and more". Build a universal GraphQL API on top of your existing REST APIs, so you can ship new application features fast without waiting on backend changes. On the other hand, SocketCluster is detailed as "An open, scalable realtime engine for Node.js". SocketCluster is a fast, highly scalable HTTP + realtime server engine which lets you build multi-process realtime servers that make use of all CPU cores on a machine/instance. It removes the limitations of having to run your Node.js server as a single thread and makes your backend resilient by automatically recovering from worker crashes and aggregating errors into a central log.
Apollo can be classified as a tool in the "Platform as a Service" category, while SocketCluster is grouped under "Realtime Backend / API".
"From the creators of Meteor" is the top reason why over 8 developers like Apollo, while over 8 developers mention "Cluster mode is awesome" as the leading cause for choosing SocketCluster.
Apollo and SocketCluster are both open source tools. Apollo with 7.53K GitHub stars and 935 forks on GitHub appears to be more popular than SocketCluster with 5.35K GitHub stars and 283 GitHub forks.
CircleCI, Swat.io, and Flexport are some of the popular companies that use Apollo, whereas SocketCluster is used by notthatbad technologies UG, Livevents, and StaffConnect. Apollo has a broader approval, being mentioned in 131 company stacks & 127 developers stacks; compared to SocketCluster, which is listed in 6 company stacks and 3 developer stacks.
We wanted to save as much time as possible when writing our back-end, therefore Apollo was out of the question, we went for an auto-generated API instead. Hasura looked good in the beginning, but we wanted to retain the ability to add a few manual resolvers and modifications to auto-generated ones, which ruled out Hasura. Postgraphile with its Plug-In architecture was the right choice for us, we never regretted it!
Pros of Apollo
- From the creators of Meteor12
- Great documentation8
- Open source3
- Real time if use subscription2
Pros of SocketCluster
- Cluster mode is awesome12
- WebSockets8
- Scalability7
- Security4
- Real-time4
- JWT based Authentication4
- Pub-Sub API3
- Open source3
- Client Libraries2
Sign up to add or upvote prosMake informed product decisions
Cons of Apollo
- File upload is not supported1
- Increase in complexity of implementing (subscription)1