logoalt Hacker News

fluoridationlast Monday at 5:25 PM1 replyview on HN

Wow. Talk about inefficiency. It just said the same thing I did, but using twenty times as many characters.

>Yes and no: There's still a rather large latency improvement even when you're using plain HTTP (not that you should go without encryption).

Of course. An unencrypted HTTP request takes a single roundtrip to complete. The client sends the request and receives the response. The only additional cost is to set up the connection, which is also saved when the connection is kept open with a websocket.


Replies

cloudfudgelast Monday at 6:50 PM

Yes and no. Have you considered that the problem is that a TLS handshake takes more than one round trip to complete?

/s