Better scalability options (replace @colyseus/proxy?)
See original GitHub issueIssue Description
Currently, we need the @colyseus/proxy in order to scale while keeping the matchmaker aware of all nodes in the “cluster”.
The problems the proxy has are:
- Single point of failure (all connections go through the proxy)
- If the proxy restarts, all connections are going to be lost and need to be re-established
- It seems that
"node-http-proxy"
has a memory-leak (@colyseus/proxy
depends onnode-http-proxy
)
Ideally, Colyseus should allow better scalability options rather than heavily relying on @colyseus/proxy
.
Previous discussion: https://github.com/colyseus/colyseus/issues/179
Issue Analytics
- State:
- Created 2 years ago
- Reactions:19
- Comments:6 (1 by maintainers)
Top Results From Across the Web
Scalability - Colyseus & Arena Cloud Documentation
This document is a work-in-progress. To scale Colyseus into multiple processes or servers, you'll need to have Redis, MongoDB, and a dynamic proxy....
Read more >Seat reservation expired when many servers using the same ...
Hello, I'm using Colyseus for managing multiplayer logic in my ... Colyseus needs a better option for scalability besides using this proxy.
Read more >0.11 - Colyseus & Arena Cloud Documentation
The version 0.11 improves match-making and scalability, and introduces ... Replace your onAuth(options) method in your room with onAuth(client, options) .
Read more >Deployment - Colyseus & Arena Cloud Documentation
Here's how to use Apache as a proxy to your Node.js Colyseus app. ... so there's no need to change the colyseus library...
Read more >Scaling Node.js Socket Server with Nginx and Redis
We can run multiple instances of a Node application and use an Nginx server to proxy all requests/connections to a Node server. By...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
@endel I found interesting project based on C++, is a proxy server, you can take a look https://pushpin.org/. Maybe it can be integrated with Colyseus
Hey Guys,
I’m currently deploying Colyseus in a Kubernetes cluster, and am running into issues with the proxy while stress testing.
I’d be able to implement the proxy in C++. To replicate the current functionality I think I can manage, but with regards to handeling reconnect in case a proxy crashes/connection drops I’m not sure how to deal with it.
Is this something you guys would be interested in?