Whilst using App Engine Flex in the *australia-southeast1* region, I’ve 
noticed a significant degradation in *latency* when I try to hit my 
services through configured custom domains. 

For example, average latency for requests between the two might look like:

https://[MY_APP].appspot.com/[SOME_ENDPOINT] = 30ms
https://[MY_CUSTOM_DOMAIN]/[SOME_ENDPOINT] = 500ms

The later is not really an acceptable average for my users - it really 
impacts their user experience - so for the meantime, I’ve reverted to using 
the appspot domain.

I can confirm that regardless which URL I use, the server itself processes 
the requests in the same average time.

So I suppose my question is - Why? Why is there so much latency introduced 
when using custom domains?

My theory is that it has something to do with the DNS A Records that app 
engine requests you to use for the custom domain. When trying to ping them 
I get the following results:

PING 216.239.32.21 (216.239.32.21): 56 data bytes
64 bytes from 216.239.32.21: icmp_seq=0 ttl=44 time=138.100 ms
64 bytes from 216.239.32.21: icmp_seq=1 ttl=44 time=137.941 ms
64 bytes from 216.239.32.21: icmp_seq=2 ttl=44 time=138.883 ms
64 bytes from 216.239.32.21: icmp_seq=3 ttl=44 time=140.659 ms
64 bytes from 216.239.32.21: icmp_seq=4 ttl=44 time=137.879 ms
64 bytes from 216.239.32.21: icmp_seq=5 ttl=44 time=172.411 ms
64 bytes from 216.239.32.21: icmp_seq=6 ttl=44 time=167.350 ms

​

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/google-appengine.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/google-appengine/67ac51bc-2a87-4824-b7c4-06f81168fd76%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to