I'm receiving duplicate messages in my clustered node.js/socket.io/redis pub/sub application
- 阅读更多 关于 I'm receiving duplicate messages in my clustered node.js/socket.io/redis pub/sub application
问题 I'm using Node.js, Socket.io with Redisstore, Cluster from the Socket.io guys, and Redis. I've have a pub/sub application that works well on just one Node.js node. But, when it comes under heavy load is maxes out just one core of the server since Node.js isn't written for multi-core machines. As you can see below, I'm now using the Cluster module from Learnboost, the same people who make Socket.io. But, when I fire up 4 worker processes, each browser client that comes in and subscribes gets 4