Quantcast
Channel: Active questions tagged rest - Stack Overflow
Viewing all articles
Browse latest Browse all 3655

What are some efficient ways to manage web socket connections?

$
0
0

I am working on an application that is solely based on web sockets for all kinds of data transmission to the server. However, I am concerned that on scaling it might be difficult to manage all connections on a small server, considering I am out to saving server costs.

  1. Assuming that the app will scale to level of millions of users, I do not want the stale connections to take up memory and CPU.
  2. Also the client has to send data from time to time to the server, just like google maps updates our locations when we are navigating from our origin to our destination.

How do I manage my server system resources efficiently and still acheive almost real-time data updation? Are there any good ways to manage connnection/re-use connections/dump and re-connect, anything that will help reduce server load and cost on server side.


Viewing all articles
Browse latest Browse all 3655

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>