I am creating a chat web application that will have to make an AJAX request for every message sent or received. I would like the data to be encrypted, and I tend to run AJAX (with a long poll) over HTTPS.
However, since the request frequency here is much higher than with basic web browsing, I would like to better understand the overhead (network usage, time, server processor, client processor) when setting up an encrypted connection for each HTTPS request.
Besides any general information / advice, I am interested in:
- As a very rough approximation, how much extra time does an HTTPS request make compared to HTTP? Suppose the content length is 1 byte and the average PC.
- Will each AJAX request after the first have something significant caching, allowing it to establish a connection faster? If so, how much faster?
Thanks in advance: -)
source
share