DNSLoad BalancerCDNNATFirewallInfrastructureNetworking

Infrastructure Primitives

Learn the infrastructure building blocks — DNS resolution, load balancers, CDNs, NAT, and firewalls that form the backbone of every scalable system.

28 min read10 sections
01

The Big Picture — What Are Infrastructure Primitives?

Infrastructure primitives are the invisible building blocks that make the internet work. Every time you load a website, stream a video, or call an API, a chain of infrastructure components routes, balances, caches, secures, and delivers your request. You never see them, but without them, nothing works at scale.

🏙️

The City Analogy

Think of the internet as a city. DNS is the phonebook — it translates names ('Amazon HQ') into addresses ('410 Terry Ave'). The load balancer is a traffic police officer — it directs cars to the least congested road. The CDN is a chain of local warehouses — instead of shipping every package from a central factory, you stock popular items in warehouses near each neighborhood. NAT is the office receptionist — the outside world sees one phone number, but internally there are hundreds of extensions. The firewall is the security gate — it checks every person entering the building and blocks anyone unauthorized.

These aren't optional add-ons. They're the foundation. Every system you design in an interview or at work will use some combination of these primitives. Understanding them deeply is what separates someone who can draw boxes on a whiteboard from someone who can actually build .

🔥 Key Insight

Infrastructure primitives are not about any single technology. They're about the roles that must be filled in any distributed system: name resolution, traffic distribution, content delivery, address translation, and security enforcement.

1 / 10