Skip to content
Back to Architecture Library
Networking & Traffic

Subnets

A range of IP addresses in your VPC.

Misconceptions

  • •A subnet can span multiple Availability Zones (it is always tied to one AZ)
  • •Private subnets cannot reach the internet at all (they can via NAT Gateways)

Trade-offs

  • •Security vs. Simplicity
  • •Network Segmentation vs. Routing Complexity

The Mental Model

Subnets allow you to group resources based on security and operational needs. Public subnets have a route to an Internet Gateway, while private subnets do not, making them ideal for databases and backend logic.

Interactive Simulation
VPC Scope (10.0.0.0/16)
Public Subnet
0.0.0.0/0 → IGW
Private Subnet
No External Route

Architecture Primitives v1.0

Architect's Tip

When scaling for subnets, always consider the impact on downstream dependencies like databases and message queues.