LoginSignup
0
0

More than 1 year has passed since last update.

一番レイテンシーの低いAWSリージョンはどこ?ざっと計測するには

Last updated at Posted at 2021-11-12

簡易的な計測方法

API Gateway の API を各リージョンに作って、それにリクエストして・・・となると若干手間がかかってしまいます。そこで、DynamoDB がクレデンシャルもいらない、以下のオープンなリージョナルエンドポイントを公開しているので、そことの通信をもとに計測できます。
- https://dynamodb.us-west-2.amazonaws.com
- https://dynamodb.ap-northeast-1.amazonaws.com

使うライブラリ

measure-region-latency に計測スクリプトを置いたので、これを使えば全リージョンに対してレイテンシーを計測できます。

結果サンプル

Response time percentiles (approximated)
 Type     Name                               50%    66%    75%    80%    90%    95%    98%    99%  99.9% 99.99%   100% # reqs
--------|-----------------------------|---------|------|------|------|------|------|------|------|------|------|------|------|
 GET      af-south-1 region                 1300   1300   1300   1300   1300   1500   1500   1500   1500   1500   1500     20
 GET      ap-east-1 region                   730    750    760    760    790    810    810    810    810    810    810     20
 GET      ap-northeast-1 region              530    560    570    570    630    670    670    670    670    670    670     20
 GET      ap-northeast-2 region              630    640    670    690    710    720    720    720    720    720    720     20
 GET      ap-northeast-3 region              540    550    570    580    600    670    670    670    670    670    670     20
 GET      ap-south-1 region                 1000   1100   1100   1100   1200   1400   1400   1400   1400   1400   1400     20
 GET      ap-southeast-1 region              830    850    880    910    950   1000   1000   1000   1000   1000   1000     20
 GET      ap-southeast-2 region              700    710    720    720    730    740    740    740    740    740    740     20
 GET      ca-central-1 region                440    460    470    500    560    560    560    560    560    560    560     20
 GET      eu-central-1 region                710    730    740    750    760    770    770    770    770    770    770     20
 GET      eu-north-1 region                  810    850    860    870    900   1100   1100   1100   1100   1100   1100     17
 GET      eu-south-1 region                  770    800    810    810    820    850    850    850    850    850    850     20
 GET      eu-west-1 region                   700    720    740    740    770   1200   1200   1200   1200   1200   1200     20
 GET      eu-west-2 region                   700    720    720    730    800   1700   1700   1700   1700   1700   1700     20
 GET      eu-west-3 region                   690    700    710    720    740    760    760    760    760    760    760     20
 GET      me-south-1 region                  990   1000   1000   1000   1100   1100   1100   1100   1100   1100   1100     16
 GET      sa-east-1 region                   840    850    920    930    940    970    970    970    970    970    970     15
 GET      us-east-1 region                   390    410    410    410    430    530    530    530    530    530    530     20
 GET      us-east-2 region                   400    410    430    430    550    620    620    620    620    620    620     20
 GET      us-gov-east-1 region               390    390    420    430    520    530    530    530    530    530    530     15
 GET      us-gov-west-1 region               140    140    170    180    200    220    220    220    220    220    220     15
 GET      us-west-1 region                   200    210    210    220    230    270    270    270    270    270    270     20
 GET      us-west-2 region                   150    200    200    200    270    410    410    410    410    410    410     20
--------|-----------------------------|---------|------|------|------|------|------|------|------|------|------|------|------|
 None     Aggregated                         680    740    800    830   1000   1200   1300   1300   1700   1700   1700    438

小話

など、サービスごとに独自のルートドキュメントの仕様があるみたいなので、全部探してみるのも面白そうです。

その他クラウドサービスについて

GCP, Azure でも同じようなことができるのか探し中です。それぞれのリージョナルエンドポイントをご存知の方がいらっしゃいましたら、教えてもらえればライブラリに追加しておきます。プルリクエストも歓迎です。

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0