Current time: 07-18-2019, 03:34 PM Hello There, Guest! (LoginRegister)

Post Reply 
 
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
how to speed up requests from other end of planet?
02-14-2019, 09:59 PM
Post: #1
how to speed up requests from other end of planet?
My server is in Europe. When user from Japan or Australia comes, there is almost 500ms SSL handshake.

On the other site, Google Analytics has still short SSL handshake. How does Google do it. What is the technique?

[Image: 3iLzAU0.png]

My idea is to use dedicated hosting for each significant region (Europe, North America, SE Asia) and then what... I don't know what to search for.
Find all posts by this user
Quote this message in a reply
02-15-2019, 03:26 AM
Post: #2
RE: how to speed up requests from other end of planet?
2 techniques:

1 - Google uses a CDN (their own, but a still CDN) which puts servers around the world close to users so visitors in Japan connect to a server in Japan. You can do the same with a commercial CDN (Cloudflare, Akamai, Fastly, etc).

2 - Google's TLS handshake is tuned so it only needs one round trip. Yours looks like it may be using 2. A CDN will likely already be tuned but if you want to optimize your server's negotiation, start at https://istlsfastyet.com
Visit this user's website Find all posts by this user
Quote this message in a reply
02-18-2019, 02:10 AM
Post: #3
RE: how to speed up requests from other end of planet?
> 1 - Google uses a CDN (their own, but a still CDN)

I thought, that you can CDN only static assets like pictures, css, js. That you cannot "content-delivery" your PHP scripts. Can you?

> Google's TLS handshake is tuned so it only needs one round trip.

Thank you. For me, this was the most useful advice of this post so far. I will configure server for one TLS round trip.
Find all posts by this user
Quote this message in a reply
02-18-2019, 03:00 AM
Post: #4
RE: how to speed up requests from other end of planet?
You can run dynamic requests through a CDN as well. The CDN doesn't actually cache the response if it isn't cacheable and it makes the request back to the origin but the browser <-> CDN connection setup is much faster (and the CDN can maintain persistent connections back to the origin if it makes sense. These days the best architecture is to serve all of the dynamic and static content over the same domain, terminated at a CDN. That way HTTP/2 can provide the most benefit.

(that said, the Google analytics js is static and cached at the edge so it is actually served from the CDN).
Visit this user's website Find all posts by this user
Quote this message in a reply
02-18-2019, 05:16 AM
Post: #5
RE: how to speed up requests from other end of planet?
Hi - pmeenan is right.
All of those providers terminate as close as possible to the end users. They use dynamic DNS to allow the browser to connect to a datacenter as close as possible to them.

SSL handshakes can take a few packets back and forth. So take a normal ping from A<->B and multiply that by a few and your getting closer to your 500ms.

Possible options that you have:
1) cloudflare - there service will terminate your SSL much closer to the end user and then fetch the content from your origin server(s)
2) cloudfront (+ ELB) - you can now server dynamic content over AWS's cloudfront which can connect out to external or internal origins - I haven't done this yet -so I'm not sure if an ELB is also required.
Find all posts by this user
Quote this message in a reply
Post Reply 


Forum Jump:


User(s) browsing this thread: 1 Guest(s)