{"id":17984064,"url":"https://github.com/wlun001/scaling-ws","last_synced_at":"2026-05-19T14:31:57.972Z","repository":{"id":50057003,"uuid":"295731166","full_name":"WLun001/scaling-ws","owner":"WLun001","description":"Example of scaling real-time servers, such as Websocket","archived":false,"fork":false,"pushed_at":"2021-06-20T06:53:20.000Z","size":689,"stargazers_count":3,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"solution-nats-ws-part2","last_synced_at":"2025-04-04T02:14:12.864Z","etag":null,"topics":["golang","horizontal-scaling","nats","real-time","vue","websocket"],"latest_commit_sha":null,"homepage":"https://blog.yongweilun.me/scaling-real-time-servers-with-nats-part-1-ckf5559jt021qors14c2zan0u","language":"Vue","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/WLun001.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2020-09-15T13:07:37.000Z","updated_at":"2023-07-06T00:45:41.000Z","dependencies_parsed_at":"2022-09-03T02:01:44.380Z","dependency_job_id":null,"html_url":"https://github.com/WLun001/scaling-ws","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/WLun001/scaling-ws","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/WLun001%2Fscaling-ws","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/WLun001%2Fscaling-ws/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/WLun001%2Fscaling-ws/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/WLun001%2Fscaling-ws/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/WLun001","download_url":"https://codeload.github.com/WLun001/scaling-ws/tar.gz/refs/heads/solution-nats-ws-part2","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/WLun001%2Fscaling-ws/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":278187830,"owners_count":25944822,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-10-03T02:00:06.070Z","response_time":53,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["golang","horizontal-scaling","nats","real-time","vue","websocket"],"created_at":"2024-10-29T18:19:21.863Z","updated_at":"2025-10-03T15:56:14.794Z","avatar_url":"https://github.com/WLun001.png","language":"Vue","funding_links":[],"categories":[],"sub_categories":[],"readme":"## Get started\n\n- For initial problem, checkout `problem` branch\n- For nats solution, checkout `solution-nats-ws` branch\n- For final solution, checkout `solution-nats-ws-part2` branch\n\n\n## How to run\n### `solution-nats-ws-part2` branch\n```bash\n# on terminal\n# start web ui\ncd web\nnpm i \u0026\u0026 npm run serve\n\n# open another terminal\n# start nats-server\n# make sure it is installed\nnats-server -c nats.conf\n\n# open another terminal\n# start api server\nmake start-api\n```\nOpen two tabs on `http://localhost:8080`\n\n\n### `problem` branch\n```bash\n# on terminal\n# start web ui\ncd web\nnpm i \u0026\u0026 npm run serve\n\n# open another terminal\n# start ws server\ngo run main.go --addr :4000 --skipWs\n\n# open another terminal\n# start api server\ngo run main.go\n```\nOpen two tabs on `http://localhost:8080`\n\n### `solution-nats-ws` branch\n```bash\n# on terminal\n# start web ui\ncd web\nnpm i \u0026\u0026 npm run serve\n\n# open another terminal\n# start nats-server\n# make sure it is installed\nnats-server\n\n# open another terminal\n# start api server\nmake start-api\n\n# open another terminal\n# start ws server\nmake start-ws\n```\nOpen two tabs on `http://localhost:8080`\n\n\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwlun001%2Fscaling-ws","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fwlun001%2Fscaling-ws","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwlun001%2Fscaling-ws/lists"}