Architecture reveiw:
Instead of using multiple socat commands for the data mirroring between the diffrent virtual serial bus links, we will rather use only the arduino serial bus and then expose another websocket server for the monitoring servers. This way it is much easier to scale and the code is still decoupled between the game server and the monitor server logic. We can rollback, change the game and the monitor server event formats independently. We can also remove the monitor server entirely, but I've choosed to leave it there in case we want to enrich the data before sending it to the monitor client, besides we can imaging a local caching mechanism for the monitor server or another spin of our pgsql db for it as well, this is why having a server is still a good idea.
Veuillez vous inscrire ou vous connecter pour commenter