Lope Lope - 10 months ago 48
Swift Question

Comunication between multiple servers using Perfect

I am developing server app that requires 2 types of server. 1 master server that will handle load balancing, authentication etc and multiple instances of work servers that will handle actual application logic. I need to be able to communicate between those two type of server. What would be best approach to do that? When I faced this problem last time I used websocket connection and it was working fine, but maybe there is better way (simpler, more efficient, more standard, I don't know) that can be used. I am not backend developer, so I have no idea how this things are usually handled

Answer Source

I ended up using good ol' TCP sockets. It was bit of a pain to set up because of lack of documentation, but it seems to be working fine.