Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Why is there more latency when accessing an App Engine service with a custom domain?

I've added a custom domain to an App Engine project. The TTFB of requests to that project's service on the *.appspot.com domain is under 15ms. Accessing the service via the custom domain, however, takes about 80ms. What can I do to fix this?

like image 683
Ricky Kazuo Miller Avatar asked Mar 22 '18 03:03

Ricky Kazuo Miller


People also ask

What does App Engine manage domains?

By default, when you map a domain to your app, App Engine issues a managed certificate for SSL for HTTPS connections. For more information on using SSL with your custom domain, including how to use your own SSL certificates, see Securing your custom domains with SSL.

Is App Engine a server?

App Engine is a fully managed, serverless platform for developing and hosting web applications at scale. You can choose from several popular languages, libraries, and frameworks to develop your apps, and then let App Engine take care of provisioning servers and scaling your app instances based on demand.


1 Answers

According to someone who works at Google, if you set up a custom domain for an App Engine project hosted in Japan, requests are then routed via Taiwan, which increases latency. I haven't heard an explanation of why they do that, but regardless, GCP has known about this issue for about three years and don't seem to think it's a big problem https://issuetracker.google.com/issues/64458939

like image 189
Ricky Kazuo Miller Avatar answered Oct 04 '22 22:10

Ricky Kazuo Miller