a year ago
My project relies on websockets for real time data management and i wanna know what problems would come up when a lot of people connect with websockets at the same time
20 Replies
a year ago
is your service connecting to 3rd party websocket services, or is your service the web socket server?
Anyways, my project just uses websockets to update data in real time on the client side
a year ago
then the bottleneck would be your code
I haven't had any problems yet, i was just wondering how to future proof it
a year ago
write efficent code, and that will both future proof it and take less memory
Ty for the help since it did make me think about which parts i need to fix
I mean, you still can, however it's not as easy to do that as in js, for example
Note + Follow up on this thread:
I've been using an express server with socket.io and it works great as long as the connection is relatively short (less than 30min), after-which your Network Egress explodes and requests become extremely slow.
Let me know if there's a solution for this? I am thinking of using an external socket server just for this use-case.
a year ago
i would have to recommend you setup tracing so that you can have data on what is "slow"
Could it be caused from a surplus of connections and memory buildup? Were you able to fix it?