Skip to Main Content

Cloud Platform

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Websocket Server in Compute Instance response to client has major latency

User_6I0SYApr 8 2022

I am working on building a nodejs web app with a game on it. I am using websocket to connect to the server and send data for the multiplayer for it. I have been able to connect from the client to the server and send messages. However, when I send a message from the server to the client after a period of time the latency increase insanely. This doesn't happen immediately. After a few seconds/minutes of play the ping starts increasing by 20 each frame. Eventually it reaches 20,000+ ms of delay. I have notices that the more fps I send from the server, the faster this lag occurs. This leads me to think It might be a limit to how much data or messages I can send. I have checked the npm ws package that I use and there isn't a limit on that, and I have checked cloudflare and it doesn't look like it is blocking anything. This leads me to believe its a problem with a firewall or something on the compute instance. I am using a Ubuntu instanceAny ideas on what this problem could be? It really is annoying. I can't get a good multiplayer match without it :(

Comments
Post Details
Added on Apr 8 2022
0 comments
304 views