5 ms·
This seems very impressive, but I wonder why we would want to switch to it from socket.io in our use case. We have built an open source platform that takes car
by EGreg 11y ago
This seems very impressive, but I wonder why we would want to switch to it from socket.io in our use case.
We have built an open source platform that takes care of all the usual stuff you need when building realtime social apps. From the client side caching down to the pubsub, message ordering, security, and pushing updates via socket.io back to the client and updating the caches. It is designed to work in a distributed way so things are partitioned based on the stream you subscribe to. If you aren't online you can subscribe to get offline notifications delivered to your device or other endpoints (like custom nodes that would act on notifications like IFTTT).
So, given that we have the infrastructure - we use PHP for request handling, MySQL for persistence, Node for background service to do socket push and notifications... what does this offer over socket.io? We implement our own rules for subscribing to streams.
- cryptica 11y agoI'm the main author of SC. Your system does sound similar to SC - It seems to be a pretty standard realtime architecture - Those who started building their realtime systems with Socket.io (as you did) often end up with something similar to what you describe except it takes a lot of work to get there... A lot of people who use SC decided to make the switch because they started implementing their own pub/sub stack (as you did) and then decided that it would be easier to just use something open source instead of writing their own. There is a lot more to a realtime stack than just the bidirectional transport. If you already have a fully working system and you don't need any new features, then you don't necessarily need to migrate to the shiny new tool ;p
- EGreg 11y agoThanks for the answer! I was suspecting as much for our use case but wanted to clarify.
- jadbox 11y agoDoes SC require the need for a DB?
- jondubois 11y agoNo but there is an optional CRUD module for RethinkDB https://github.com/socketcluster/sc-crud-rethink https://github.com/socketcluster/sc-crud-rethink
- Gratsby 11y agoI'm curious because I have a relatively new socket.io based application (we went into production in the last month). How difficult is the migration path? (If it's something i can do in an afternoon, I'd be willing to try it out)