I tried SocketCluster for a highly scalable chat platform and it couldn't handle very big conversations. SocketCluster is good but the bottleneck here was NodeJS. I finnaly used Nginx PushStream to do the sub and the pub was handled by NodeJS (with the authentication). It has been used to host chat room with more than 70,000 concurrent clients, scaled on 7 m3.large EC2 instances and one relatively small Redis server.…
Show HN: SocketCluster.io – flexible open-source real-time server with pub/sub
31–40 of 41 posts
Re: Show HN: SocketCluster.io – flexible open-source real-time server with pub/sub
#32How is this different than this? https://news.ycombinator.com/item?id=11071916
I was wondering the same. What are the odds of two very similar projects with nearly identical headlines appearing on HN at nearly the same time?
Re: Show HN: SocketCluster.io – flexible open-source real-time server with pub/sub
#33I tried SocketCluster for a highly scalable chat platform and it couldn't handle very big conversations. SocketCluster is good but the bottleneck here was NodeJS. I finnaly used Nginx PushStream to do the sub and the pub was handled by NodeJS (with the authentication). It has been used to host chat room with more than 70,000 concurrent clients, scaled on 7 m3.large EC2 instances and one relatively small Redis server.…
Knowing nothing about anything, 70k clients on 7 servers does not sound immediately very impressive. That's roughly 10k clients per server, and this is 15 years after "C10k problem" was coined. Could someone comment if I'm missing something major here?
Re: Show HN: SocketCluster.io – flexible open-source real-time server with pub/sub
#34Earlier quoted context omitted.
Should say that we horizontally scale this thing pretty heavily using the sc-redis module. Elasticache + ELB + 4 EC2 Instances = support for 5000+ person conferences :D
This sounds interesting. Do you have a web-site? Open source?
Re: Show HN: SocketCluster.io – flexible open-source real-time server with pub/sub
#35I tried SocketCluster for a highly scalable chat platform and it couldn't handle very big conversations. SocketCluster is good but the bottleneck here was NodeJS. I finnaly used Nginx PushStream to do the sub and the pub was handled by NodeJS (with the authentication). It has been used to host chat room with more than 70,000 concurrent clients, scaled on 7 m3.large EC2 instances and one relatively small Redis server.…
With 2 c4.8xlarge instances behind ELB, we consistently see between 20 to 50K active connections on live meetings, and the servers sit at I see a lot of people having problems with this, but the issue is usually the resources they give to it, or the actual handling of socket events. If the socket server is just a relay there should be no reason a single m4.4xlarge instance cant handle 600K+ connections.
www.jayway.com/2015/04/13/600k-concurrent-websocket-connections-on-aws-using-node-js/
Re: Show HN: SocketCluster.io – flexible open-source real-time server with pub/sub
#36Earlier quoted context omitted.
I'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…
Does SC require the need for a DB?
Re: Show HN: SocketCluster.io – flexible open-source real-time server with pub/sub
#37Interesting these are coming around now. Some services (i.e. Pubnub) have been doing this (for money) for a long time and what I noticed were at the end of the day, the use cases were actually rather limited. Apart from stock quotes, bitcoin quotes and multiplayer games - polling just isn't that bad. And it's actually a very good place to start when developing as it's simple.
Re: Show HN: SocketCluster.io – flexible open-source real-time server with pub/sub
#38Does phoenix's / elixir channels compare with this well?
Re: Show HN: SocketCluster.io – flexible open-source real-time server with pub/sub
#39There were occasional spikes to 6% CPU use per core when people started spamming :p
Re: Show HN: SocketCluster.io – flexible open-source real-time server with pub/sub
#40I tried SocketCluster for a highly scalable chat platform and it couldn't handle very big conversations. SocketCluster is good but the bottleneck here was NodeJS. I finnaly used Nginx PushStream to do the sub and the pub was handled by NodeJS (with the authentication). It has been used to host chat room with more than 70,000 concurrent clients, scaled on 7 m3.large EC2 instances and one relatively small Redis server.…
So -- m3.large ec2 instances have a few problems with them. 1, your only running a 2 core machine (1 worker, and assuming 1 broker to distribute through redis). That is not nearly enough to handle really a real-time chat server where everyone is spamming it all the time. Another issue is the network performance of an m3.large instance -- its moderate (which is another word for not very good). With 2 c4.8xlarge instan…