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 Risposta
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
MODERATORE
philaws
con risposta un anno fa
  • 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.

Accesso non effettuato. Accedi per postare una risposta.

Una buona risposta soddisfa chiaramente la domanda, fornisce un feedback costruttivo e incoraggia la crescita professionale del richiedente.

Linee guida per rispondere alle domande