Websockets + Spring boot + Kubernetes

I am creating a multiplayer game on Facebook and am currently evaluating my technical stack.

I will need to use websockets in my game, and I would like to use Spring Boot. Now, I can’t find information on whether the websocket server in Kubernet will work well? For example, if I deploy 5 server instances in Kubernetes modules, will you correctly load balancing / forwarding for web cards between game clients loaded in browsers and servers in Kubernetes, and is there any additional work to enable it? Each pod / server will be inactive, and the current game information for each player will be saved / read from redis or some other db memory.

If this does not work, how can I get around it and use Kubernetes? Maybe adding one instance of rabbitmq to the web site-only stack?

+4
source share

All Articles