r/programming • • Jun 13 '19

WebSockets vs Long Polling

https://www.ably.io/blog/websockets-vs-long-polling/
581 Upvotes

199 comments sorted by

View all comments

425

u/[deleted] Jun 13 '19

[removed] — view removed comment

274

u/sysop073 Jun 13 '19

Go figure, since they were basically invented to eliminate the need for polling

60

u/hashtagframework Jun 13 '19

Go figure, my web host doesn't support WebSockets in the auto-scale configuration I use, but Long Polling still works fine.

119

u/saltybandana2 Jun 13 '19

the only reason you would use long polling is being unable to use websockets in a reasonable manner.

13

u/hashtagframework Jun 13 '19

Do you always have to support a long polling backup in case the client can't use websockets?

0

u/[deleted] Jun 13 '19

[deleted]

16

u/hashtagframework Jun 13 '19

What about clients using VPNs or behind restrictive firewalls? I was more concerned about the network limitations. Does the WebSocket tunnel just like a normal TCP keep-alive HTTP request? Are they prone to disconnects?

0

u/[deleted] Jun 13 '19

[deleted]

1

u/[deleted] Jun 13 '19

[removed] — view removed comment

2

u/tsujiku Jun 14 '19

Is "SSL interception" not a bit of an oxymoron?

It seems very antithetical to the entire idea of TLS.

→ More replies (0)