so, when should you actually switch from polling to WebSockets?
Igor Kovalev
·4841 views
hey everyone, i've been thinking about real-time updates and the trade-offs between periodically polling a server for changes versus establishing a persistent WebSocket connection. polling is simpler to implement initially, but it can be inefficient with frequent requests and adds latency. WebSockets seem ideal for true real-time, but they introduce more complexity in terms of server management and state handling. what are your experiences, at what point does the inefficiency of polling outweigh the added complexity of WebSockets for your use cases?
34 comments