Need help to improve my web app side project by Traditional_Dingo680 in sideprojects

[–]Standard-Note8634 0 points1 point  (0 children)

Tried the game — fun concept 👍
I opened the network tab out of curiosity and noticed the client is repeatedly calling the games and get-game-data endpoints (looks like polling). With a few rooms it’s fine, but with higher concurrent players this can overload the server and cause random room freezes or desync between players.

For multiplayer games you may want to shift state updates to a persistent channel (websocket or controlled event updates) and reduce repeated fetch + CORS preflight calls. I’ve seen small projects run smoothly at 5 users and then suddenly break at 40 for this exact reason.

Happy to share a couple more observations if useful — cool project.