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
답변함 일 년 전
  • 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.

로그인하지 않았습니다. 로그인해야 답변을 게시할 수 있습니다.

좋은 답변은 질문에 명확하게 답하고 건설적인 피드백을 제공하며 질문자의 전문적인 성장을 장려합니다.

질문 답변하기에 대한 가이드라인

관련 콘텐츠