melia icon indicating copy to clipboard operation
melia copied to clipboard

Internal server communication

Open exectails opened this issue 8 years ago • 4 comments

The channel servers have to communicate with the login server, so it can properly display their status in the barracks.

In Aura the internal connections use the same protocol as the clients and just socket connect to each other on start up, which is a little messy. Instead we should design a clean library for this, as it surely won't be the last time the servers have to communicate, and Aura will be able to benefit from it as well.

exectails avatar Apr 01 '16 12:04 exectails

Using jSON for the Communication will be good. So you don't need doing directly not-secure socket connections, but Web Requests. Using RESTful API.

ovflowd avatar Sep 02 '16 15:09 ovflowd

I've recently thought about that as well, it would certainly make things easier and cleaner. It wouldn't have much of an impact on performance, and CPs and other tools could easily communicate with the server.

exectails avatar Sep 03 '16 11:09 exectails

@ovflowd This isn't reallly refactoring or maintenance, since there is no server communication at the moment. It's a new feature.

exectails avatar Sep 01 '21 08:09 exectails

Oh! Gonna add the proper labels then! I guess I added those accidentally!

ovflowd avatar Sep 01 '21 08:09 ovflowd

We now have basic communication between the servers, which allows us to send information such as server status updates, but there is room for improvement. We might want a dedicated server as the "coordinator" between the others, the communicator needs to be added to the web server, and we don't have a built-in way to make response requests yet, to query information from servers.

exectails avatar Jul 18 '23 10:07 exectails

The web server is now connected as well and is able to officially request responses in a reliable way. As such, this issue will be considered complete.

exectails avatar Jul 26 '23 23:07 exectails