Interview Prep/Networking/IP Addressing, CIDR, Subnetting & Routing

What is the difference between VPC peering and Transit Gateway?

IntermediateConceptIP Addressing, CIDR, Subnetting & Routing
Answer

Peering is a one-to-one, non-transitive connection between two VPCs: A–B and B–C does not give A–C. It is cheap and has no bandwidth bottleneck. Transit Gateway is a regional hub where many VPCs and VPNs attach, with route tables that control reachability, and it supports transitivity.

Past a handful of VPCs, full-mesh peering becomes unmanageable and TGW wins, at the cost of per-attachment and per-GB charges.

All Networking questions Roadmap: Networking for DevOps

More on IP Addressing, CIDR, Subnetting & Routing