{"action":"created","issue":{"url":"https://api.github.com/repos/ratchetphp/Ratchet/issues/622","repository_url":"https://api.github.com/repos/ratchetphp/Ratchet","labels_url":"https://api.github.com/repos/ratchetphp/Ratchet/issues/622/labels{/name}","comments_url":"https://api.github.com/repos/ratchetphp/Ratchet/issues/622/comments","events_url":"https://api.github.com/repos/ratchetphp/Ratchet/issues/622/events","html_url":"https://github.com/ratchetphp/Ratchet/issues/622","id":301668256,"node_id":"MDU6SXNzdWUzMDE2NjgyNTY=","number":622,"title":"Load balancing. ","user":{"login":"MUmer1124","id":32255353,"node_id":"MDQ6VXNlcjMyMjU1MzUz","avatar_url":"https://avatars1.githubusercontent.com/u/32255353?v=4","gravatar_id":"","url":"https://api.github.com/users/MUmer1124","html_url":"https://github.com/MUmer1124","followers_url":"https://api.github.com/users/MUmer1124/followers","following_url":"https://api.github.com/users/MUmer1124/following{/other_user}","gists_url":"https://api.github.com/users/MUmer1124/gists{/gist_id}","starred_url":"https://api.github.com/users/MUmer1124/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/MUmer1124/subscriptions","organizations_url":"https://api.github.com/users/MUmer1124/orgs","repos_url":"https://api.github.com/users/MUmer1124/repos","events_url":"https://api.github.com/users/MUmer1124/events{/privacy}","received_events_url":"https://api.github.com/users/MUmer1124/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":3,"created_at":"2018-03-02T06:39:43Z","updated_at":"2018-12-14T02:51:37Z","closed_at":"2018-12-14T02:51:37Z","author_association":"NONE","body":"Hi all.\r\n\r\nI implement web socket server over Ratchet lib working fine with small amount to connections.\r\nBut we need to dedicated connections required 1500 figure then in the case server fall down & stop respond after 600 connections received.\r\n\r\nFor the above problem, we have an solution, please follow & then suggested me how it is possible.\r\n\r\n1. Implement web socket server.\r\n2. Use Haproxy to enable load balancer techniques to scalable\r\n3. Implement Distributed cache (Redis) to share amony different instances running by load balancer.\r\nIn Redis cache we store connection objects which returns when new connection established. Implement a logic forward message to right socket.\r\nSee below snapshot, It write only to give an rough idea.\r\n\r\n![1519972656659](https://user-images.githubusercontent.com/32255353/36886438-34c1326c-1e0e-11e8-9e1f-cbdc80a9c823.JPEG)\r\n\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/ratchetphp/Ratchet/issues/comments/447195607","html_url":"https://github.com/ratchetphp/Ratchet/issues/622#issuecomment-447195607","issue_url":"https://api.github.com/repos/ratchetphp/Ratchet/issues/622","id":447195607,"node_id":"MDEyOklzc3VlQ29tbWVudDQ0NzE5NTYwNw==","user":{"login":"mbonneau","id":748287,"node_id":"MDQ6VXNlcjc0ODI4Nw==","avatar_url":"https://avatars3.githubusercontent.com/u/748287?v=4","gravatar_id":"","url":"https://api.github.com/users/mbonneau","html_url":"https://github.com/mbonneau","followers_url":"https://api.github.com/users/mbonneau/followers","following_url":"https://api.github.com/users/mbonneau/following{/other_user}","gists_url":"https://api.github.com/users/mbonneau/gists{/gist_id}","starred_url":"https://api.github.com/users/mbonneau/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mbonneau/subscriptions","organizations_url":"https://api.github.com/users/mbonneau/orgs","repos_url":"https://api.github.com/users/mbonneau/repos","events_url":"https://api.github.com/users/mbonneau/events{/privacy}","received_events_url":"https://api.github.com/users/mbonneau/received_events","type":"User","site_admin":false},"created_at":"2018-12-14T02:51:37Z","updated_at":"2018-12-14T02:51:37Z","author_association":"MEMBER","body":"Closed due to inactivity."}}
{"actor":{"display_login":"mbonneau"}}