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

Show parent comments

6

u/Ravavyr Jun 13 '19

The host owns the server and on shared hosts you often don't have access to configure sockets to work on it. That's why the host matters.

-7

u/duheee Jun 13 '19

you don't configure sockets. sigh ... jesus.

0

u/[deleted] Jun 13 '19

[removed] — view removed comment

-1

u/duheee Jun 14 '19

The httpd needs to support it though, not the 'app'.

i do not know what "httpd" is in this context. The apache web server? tomcat itself? because in my normal plain spring boot application, i start it up, listen on a socket and the underlying server (undertow, tomcat or jetty) just facilitates the servlet framework setup. it is me (well, spring) who listens for the websocket upgrade request on a particular path. whoever is hosting me has absolutely nothing to do with anything. even if I am not running my own websserver, but in a shared tomcat instance, it is still me who gets the websocket upgrade request.

i dont need httpd (whatever that is) to do anything, just move out of the way and let me handle it.

→ More replies (0)