LoginSignup
3
3

More than 5 years have passed since last update.

Amazon API gatewayをtokyoリージョンで試してみました

Posted at

tokyoリージョンにAPI gatewayがやってきたので、どのくらい速くなるのか試してみました。
AWS Lambdaでnodejsを使用して{"hello":"world"}と出力されるようにtokyo,oregonで仕込みました。それぞれをtokyoとoregonのAPI gatewayにgetメソッドで仕込んで呼び出しました。
レスポンスにかかった時間は以下の通り。

tokyo -> tokyo(ms) tokyo -> oregon(ms) oregon -> oregon(ms) oregon -> tokyo(ms)
1 282 730 547 984
2 67 491 131 552
3 70 551 116 818
4 53 542 138 387
5 70 490 119 796
6 60 576 386 845
7 78 389 115 586
8 87 525 114 490
9 63 482 434 516
10 51 557 119 779
おそらく太平洋を渡っている回数 0 2 2 4

色々考察はできそうですが、当たり前のようにtokyo->tokyo以外選択の余地はないのでどうでもいいかんじです。

3
3
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
3
3