my dog learned polymorphism
The moose likes Security and the fly likes performance issue !! Http Vs Https Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Engineering » Security
Bookmark "performance issue !! Http Vs Https" Watch "performance issue !! Http Vs Https" New topic

performance issue !! Http Vs Https

Rajeev Ravindran
Ranch Hand

Joined: Aug 27, 2002
Posts: 455
hi all,

could any1 tell me about the performance issue with Https ? We have an application running on Http and Https, we need to display an jpg file at one stage of the application functionality. if it is https it works fine but if it is https for the image to be displayed it wll take atlast a minute. Could anyone tell me wat is the reason behind this..

any help on this is highly appretiated.

Paul Sturrock

Joined: Apr 14, 2004
Posts: 10336

HTTPS will always be slower than HTTP, there is nothing you can do about that, simply because there is more traffic for each request in HTTPS.

JavaRanch FAQ HowToAskQuestionsOnJavaRanch
Ulf Dittmer

Joined: Mar 22, 2005
Posts: 42965
HTTPS does have an overhead, but nowhere near as much as one minute for an image (unless, maybe, the image is in the GB size range).
In my experience, if you have to worry about the performance difference between HTTP and HTTPS, we're talking about GBs of data per day. And if you're there, run, don't walk, to hire a performance expert, if you don't have one on staff already.
Naapa Sekhar Ramesh

Joined: Nov 07, 2001
Posts: 12
HTTPS data is encripted at the server and decripted at the client (Browser). This encription and decription takes a considerable time. And more over the data after encription becomes more in size. Thats why you are finding the delay.

I agree. Here's the link:
subject: performance issue !! Http Vs Https
It's not a secret anymore!