FAForever / faf-java-server

Spring Boot based server for Forged Alliance Forever
12 stars 6 forks source link

Broadcast game results #104

Closed Brutus5000 closed 5 years ago

Brutus5000 commented 5 years ago

Not sure about the overall requirement, but GW and/or external matchmaker services need to get the game results for the games they started. I would suggest we broadcast them to all connected clients.

micheljung commented 5 years ago

Then we would broadcast the game results to 1000 clients of which 999 have no interest in it.

I think it's finally time to implement a pub/sub mechanism. AFAIK, STOMP provides this out of the box. We should compare this to a manual implementation and decide from there.

Katharsas commented 5 years ago

Note: Authentication and Authorization via Spring Security for plain Websocket (without STOMP) was kind of a pain to deal with for me, because i think you need to manually intercept Websocket CONNECT messages and place user information into the Websocket session. So if you need authentication (which you probably don't need for now but maybe in the long run), using STOMP or HTTP is probably better than plain websocket.