我即将开始在新西兰为新西兰市场开发一个网络应用程序,可扩展性是该市场的关键要求。我正在考虑使用 Google Apps Engine,我过去曾将其用于较小的项目,其中延迟不是一个大问题,因为一半的应用程序是客户端 Java 脚本。
然而,新项目需要快速的 AJAX 响应时间。当地的网络应用公司对专用服务器的收费约为 175 美元/月(比我想象的美国要高得多)。
如果我使用 Google Apps Engine(我猜托管在美国?)与在新西兰托管的本地托管公司相比,AJAX 请求的延迟之间是否可能存在显着差异?如果有的话有多大?
I am about to begin development of a web app in New Zealand for a NZ market for which scalability is a key requirement. I am contemplating using Google Apps Engine which I have used in the past for smaller projects where latency was not a big issue, because half the apps are client side Java script.
However, the new project requires fast AJAX response times. The local web-app companies charge about $175/month (much more than in the US I would imagine) for a dedicated server.
Is there likely to be a significant difference between the latency for AJAX requests if I use Google Apps Engine (hosted in the US I presume??) vs the local hosting company who host here in New Zealand? If so how big?
发布评论
评论(4)
在这种情况下,您可能感兴趣的服务是 CloudSleuth。他们测量多个位置的页面加载时间。但位置选择亚洲/大洋洲。然后深入了解 GAE 以查看不同位置的页面加载时间。不幸的是,最接近的是悉尼,目前 GAE 的页面加载时间几乎为 20 秒。
A service which may interest you in this context is CloudSleuth. They measure page load times from multiple locations. But select Asia/Oceania for Location. Then drill down for GAE to see page load time from various location. Unfortunately the closest will be Sydney, where page load for GAE currently is almost 20s.
根据您的解释,您希望使用 App Engine 作为后端,除了您的应用程序加载和服务请求所需的时间之外,不应存在任何延迟问题。但正如他们所说,没有比您自己做的测试更好的测试了,所以继续使用 App Engine 并亲自看看吧!
快乐编码!
From your explanation you would like to use App Engine as your backend, there should not be any latency problems other that the time your app would take to load and serve a request. But as they say, there is no better test like the one you do it yourself, so go ahead play with App Engine and see it for yourself!
Happy coding!
在其他条件相同的情况下,新西兰境内的请求延迟将不可避免地低于发送至美国并返回的请求的延迟。不过,有几个缓解因素需要考虑:
最后的问题是,这额外的 100 毫秒左右是否可以接受。通常情况下,答案是肯定的,而且值得权衡的是不必自己处理机器配置、维护等。
It's unavoidably the case that the latency for a request within New Zealand is going to be lower than the latency for a request to the US and back, all else being equal. There are several mitigating factors to consider, though:
In the end, the question is whether or not the extra 100 milliseconds or so is acceptable. More often than not, the answer is yes, and it's worth the tradeoff of not having to handle machine provisioning, maintenance, etc etc yourself.
App Engine 不是全球分布的。
整个应用程序默认托管在北美各地。
如果您支付服务费用,则可以请求在欧洲托管,但无法选择任何其他区域(来自 https://developers.google.com/appengine/docs/python/gettingstartedpython27/uploading)。
App Engine is not globally distributed.
The whole application is hosted around North America by default.
It you pay for the service you may request hosting within Europe instead, but there is no option to select any other regions (from https://developers.google.com/appengine/docs/python/gettingstartedpython27/uploading).