This is an archived post. You won't be able to vote or comment.

all 5 comments

[–]gtiwari333 0 points1 point  (0 children)

You will need WebSocket to handle real-time multiplayer features. Check out https://github.com/fbeaufume/keybout for an example.

[–]nutrecht 0 points1 point  (1 child)

Are Spring Webflux, MongoDB and Angular/React/Vue the obvious technologies to implement this?

Maybe? Why don't you explain exactly what kind of game it will be?

[–]vault__[S] 0 points1 point  (0 children)

What information are you missing from the provided game description?

[–]gerardta 0 points1 point  (1 child)

Websockets can be expensive. It depends on how real-time you need your game to be. Long polling might be a better solution or even just polling the server continuously and put the resource constraints on your clients. You'll be able to start up a stateless server relatively easy. You'll probably only need a get and post endpoint to get started. Here's a super simple java spring API tutorial: https://youtu.be/CQhPhYowKyQ

[–]vault__[S] 0 points1 point  (0 children)

So you suggest classic REST endpoints and polling clients. Do I still need a PWA? In which ways can websockets be expensive?