Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

サーバーを複数台持った場合の懸念 #29

Open
yutteee opened this issue Mar 10, 2023 · 2 comments
Open

サーバーを複数台持った場合の懸念 #29

yutteee opened this issue Mar 10, 2023 · 2 comments
Labels
優先度:低 暇なとき

Comments

@yutteee
Copy link
Collaborator

yutteee commented Mar 10, 2023

もしプロダクトが肥大して、サーバーを複数台持つことになった場合、どのようにサーバーを立てるのか。

現状のコードだと待機画面にいる人がそれぞれ別のサーバーに接続していた場合に、その2人がマッチングしないという問題点がある。

@yutteee yutteee added the 優先度:低 暇なとき label Mar 10, 2023
@yutteee
Copy link
Collaborator Author

yutteee commented Apr 1, 2023

redisを使えば複数台サーバーでもwebsocketの通信が行える
https://qiita.com/satofujino/items/7bf4b99e2176f63ca7ef

@yutteee
Copy link
Collaborator Author

yutteee commented May 5, 2023

webSocketとredisでオートマッチングを実現する例
https://zenn.dev/yokojp/articles/f5080e3d4e94d9
https://qiita.com/mayukorin/items/f7034b33e1ca78c1dc11

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
優先度:低 暇なとき
Projects
None yet
Development

No branches or pull requests

1 participant