{"action":"created","issue":{"url":"https://api.github.com/repos/TopCloud/socketcluster/issues/43","labels_url":"https://api.github.com/repos/TopCloud/socketcluster/issues/43/labels{/name}","comments_url":"https://api.github.com/repos/TopCloud/socketcluster/issues/43/comments","events_url":"https://api.github.com/repos/TopCloud/socketcluster/issues/43/events","html_url":"https://github.com/TopCloud/socketcluster/issues/43","id":55577220,"number":43,"title":"How to get updates from an external (php) application ?","user":{"login":"seme1","id":8105948,"avatar_url":"https://avatars.githubusercontent.com/u/8105948?v=3","gravatar_id":"","url":"https://api.github.com/users/seme1","html_url":"https://github.com/seme1","followers_url":"https://api.github.com/users/seme1/followers","following_url":"https://api.github.com/users/seme1/following{/other_user}","gists_url":"https://api.github.com/users/seme1/gists{/gist_id}","starred_url":"https://api.github.com/users/seme1/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/seme1/subscriptions","organizations_url":"https://api.github.com/users/seme1/orgs","repos_url":"https://api.github.com/users/seme1/repos","events_url":"https://api.github.com/users/seme1/events{/privacy}","received_events_url":"https://api.github.com/users/seme1/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-01-27T05:16:55Z","updated_at":"2015-01-30T21:50:40Z","closed_at":null,"body":"My application is written in php. I experimented with Ratchet (http://socketo.me/) for running a websocket server. However, I am finding SocketCluster much more attractive mainly due to its scalability features. With Ratchet, I used ZeroMQ message for communication between my php application and Ratchet. They have put up a simple guide here http://socketo.me/docs/push on how to do so. It was very simple to achieve.\r\n\r\nIs it possible to have a similar implementation with SocketCluster ? What is the best way for communicating between an external app and SocketCluster ? "},"comment":{"url":"https://api.github.com/repos/TopCloud/socketcluster/issues/comments/72276331","html_url":"https://github.com/TopCloud/socketcluster/issues/43#issuecomment-72276331","issue_url":"https://api.github.com/repos/TopCloud/socketcluster/issues/43","id":72276331,"user":{"login":"seme1","id":8105948,"avatar_url":"https://avatars.githubusercontent.com/u/8105948?v=3","gravatar_id":"","url":"https://api.github.com/users/seme1","html_url":"https://github.com/seme1","followers_url":"https://api.github.com/users/seme1/followers","following_url":"https://api.github.com/users/seme1/following{/other_user}","gists_url":"https://api.github.com/users/seme1/gists{/gist_id}","starred_url":"https://api.github.com/users/seme1/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/seme1/subscriptions","organizations_url":"https://api.github.com/users/seme1/orgs","repos_url":"https://api.github.com/users/seme1/repos","events_url":"https://api.github.com/users/seme1/events{/privacy}","received_events_url":"https://api.github.com/users/seme1/received_events","type":"User","site_admin":false},"created_at":"2015-01-30T21:50:40Z","updated_at":"2015-01-30T21:50:40Z","body":"I am no expert in Redis, but it seems like the SC-Redis plugin require a Redis server to be running. When comparing this to the solution implemented by Ratchet, it looks to me that ZeroMQ is better. \r\n\r\nWouldn't be possible to have one of the workers (or maybe the store ??) listens to ZeroMQ msgs/channels and work as a relay between external apps and SC? On the other end in Php (or any other language), the developer would push/publish/subscribe to the ZeroMQ worker which in return would simply bypass the received msgs to the real workers (which handle the actual subscriptions and channels)?\r\n\r\nThe benefit of the above is that there is no need to run a Redis server (and maybe worry about its scalability later on ??). It would be optimal if the loadbalancer in SC can also balance the load of the ZeroMQ worker and launch new instances (or process) when there is a need to do so (just like it does with normal workers)."}}