How to replicate a server

Status
Not open for further replies.
Would starting the server on a bunch of computers and then have the client try "next server in list" if the connection failed? The servers wouldn't be cooperating then however, but you'd only have to add a little code.

If you want them to load balance then you'll need to make sure that the servers forwards all the messages they get. That could get ugly. (Or you could just put different chat-rooms/chanells on the different servers of course.)
 
I'm sort of working on a similar project (a decentralized internet radio server). This is what I've come up with:

1. Work the server logic directly into the client. That way, you'll avoid the need to replicate/deploy server nodes.

2. When a new server joins the clan, it must somehow announce itself. This is perhaps the hardest part, because the decentralized model does not have a central message server. My suggestion is to have the currently online servers log somewhere that could be later queried.

(Unfortunately, this would add a dependance to a central server again. As activity on this server would be both small in size and rare in frequency, however, it may not matter as much)

3. Each server should keep a list of all other running servers, or at least its close relatives. Information on adds/drops should be passed from server to server to keep the lists current.

4. Using the information provided by the lists, the servers schedule each other's usage time for optimal bandwith/load handling.
 
Status
Not open for further replies.