Performance of application placed in the same subnet Database subnet

0

Hello, I am wondering does placing application instances in the same subnet with Database subnet increase performance of database reads in anyway? In the physical world components placed in the same subnet communicate with layer 2 (Switches) only, so one overhead of routing is removed. But I am not sure how this applies to Amazon VPC.

Thank you. Amanuel

1回答
0

Yes, if your application servers are in the same subnet, they will not have to connect across availability zone and as such have better latency to the database. However understand that if your database experiences any infrastructure issue that causes a failover the database can be moved to another subnet in the db-subnet-group.

AWS
モデレーター
philaws
回答済み 1年前
  • Hi Phil, Thank you for the response. Just to avoid confusion let's take Availability Zone out of the question. The App instance and DB to be in the same or different Subnet (Both in the same AZ) would it make a difference in network performance?

    Thank you Amanuel

  • I see what you are asking. Different subnets in the same az should not have any performance penalty. Of course you can confirm this with ping testing.

ログインしていません。 ログイン 回答を投稿する。

優れた回答とは、質問に明確に答え、建設的なフィードバックを提供し、質問者の専門分野におけるスキルの向上を促すものです。

質問に答えるためのガイドライン

関連するコンテンツ