DEV Community

Discussion on: Simple Chat over only HTTP without WebSocket and WebRTC, using Piping Server

Collapse
 
lennartschoch profile image
Lennart Schoch • Edited

What Paulo is saying is right. While your approach will result in a working application, I strongly discourage using long polling (whenever it can be avoided) especially on the client side. It will put a lot of unnecessary load on your server and will prevent it from scaling well. There is a reason why websockets are pretty much a best practice for chat application :)