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.
More on VPC and Network Design
Walk through a production VPC layout for a multi-tier app.BeginnerHow do you size VPC CIDRs to avoid painting yourself into a corner?IntermediateOne NAT gateway or one per AZ?BeginnerWhat are the biggest levers to reduce NAT gateway cost?IntermediateWhich VPC endpoints do you create by default in a private EKS or ECS VPC?IntermediateHow do you lock down what can go through a VPC endpoint?Advanced