Interview Prep/AWS/VPC and Network Design

Transit Gateway vs VPC Lattice vs PrivateLink for service connectivity?

AdvancedProductionVPC and Network Design
Answer
  • Transit Gateway: layer-3 routing between whole networks; needs non-overlapping CIDRs; charges per attachment hour and per GB.
  • PrivateLink: expose one service (behind an NLB) to consumers privately; works with overlapping CIDRs; one-directional.
  • VPC Lattice: application-layer service network across VPCs and accounts with IAM auth policies, path routing and weighted targets; works with overlapping CIDRs; no network plumbing.

We use TGW for broad network connectivity and on-prem, PrivateLink for SaaS-style exposure, and Lattice when teams want service-to-service connectivity with IAM auth without the network team in the loop.

aws All AWS questions Roadmap: AWS core services

More on VPC and Network Design