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

Aman
已提問 1 年前檢視次數 540 次
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.

您尚未登入。 登入 去張貼答案。

一個好的回答可以清楚地回答問題並提供建設性的意見回饋,同時有助於提問者的專業成長。

回答問題指南