2021年3月3日水曜日

AWS Region, Latency and Price

I'm living in Osaka, Japan and wanted to know the relation between latency and region distance, and pricing.

The figure below is a bubble chart with distance from Osaka and latency. This is a very rough search but somehow showing interesting results for me.


Condition

Distance is just a direct distance from city to city, obtained from google search "distance from Osaka to XXX" (not data centers).

Latency  is ping result from here:  https://www.cloudping.info/

Price is for ec2 m5.large instance.

Regions in US Gov and China are not included.


Results

The relation of distance and latency is mostly linear. This is not surprising nor notable. But for EU regions like London, Paris is rather showing high latency. This might be my searching way of distance is for just a direct distance, therefore it is not fit the real data sending paths.

NOTE: This is the google result of "distance from Osaka to London" ... showing the direct path through the deserts of China,  Kazakhstan. (It cannot be?)

For the question which region is cost-effective if latency is not a high priority, Hong Kong Region is 10% lower with x4 latency. And Oregon Region is 20 % lower price x 10 latency. If latency is acceptable, or if you can do all things within other regions, I think choosing these lower-priced regions works.

RegionDistanceAVE-LatencyPrice
Asia Pacific (Osaka-Local)015.00.124
Asia Pacific (Tokyo)40022.30.124
Asia Pacific (Seoul)82844.30.118
Asia Pacific (Hong Kong)2,48760.70.101
Asia Pacific (Singapore)4,96383.00.12
Asia Pacific (Mumbai)6,344146.30.132
Asia Pacific (Sydney)7,792137.70.12
Middle East (Bahrain)7,960270.30.118
Europe (Stockholm)8,086256.30.102
Canada (Central)8,350183.70.107
US-West (Oregon)8,386145.30.096
US-West (California)8,917128.30.112
Europe (Frankfurt)9,231261.30.115
Europe (London)9,493243.70.111
Europe (Ireland)9,616261.00.107
Europe (Paris)9,628268.70.112
US East (Ohio)10,777173.00.096
US-East (Virginia)11,246182.30.096
South America (São Paulo)18,747294.00.153


Conclusion


Relations between AWS Regions, latency, and pricing are calculated easily by getting data. Latency is almost dependent on distances from the client. It will work when the most cost-effective architecture is required.

===
In the blog post of classmethod.jp, a comparison of Athena query time between Tokyo region and Virginia region. 
data: S3 in Tokyo Region, 387.7MiB of 1.35 million records.
Query time : 
Tokyo Region:  17.93sec, 17.97sec, 17.55sec  
Virginia Region: 23.07sec, 23.62sec, 21.63sec







0 件のコメント:

コメントを投稿