VPC, CloudFront and Route 53
VPC: your private network
- A VPC (Virtual Private Cloud) is your own private network inside AWS.
- Public subnets hold things the internet can reach, such as a load balancer.
- Private subnets hold things that must stay hidden, such as databases.
- An Internet Gateway connects the VPC to the internet.
A VPC is like your own private office network, but in the cloud. You decide which parts face the internet (the reception) and which stay private (the locker room). Putting databases in private subnets means nobody on the internet can even try to connect to them - only your servers inside the VPC can.
Delivering a website fast
- Elastic Load Balancer: spreads visitors across several servers.
- Auto Scaling: adds servers when traffic grows and removes them when it drops.
- CloudFront: a CDN that keeps copies of your images and pages close to users.
- Route 53: the DNS service that points your domain name (like myshop.in) to your site.
These services together make a site fast and reliable for users anywhere. Route 53 turns your domain name into an address. CloudFront serves images and pages from locations near the user, so a visitor in Chennai doesn't wait for a server far away. The load balancer and auto scaling keep the site up during traffic spikes, like a festival sale.
Example
User → Route 53 (myshop.in)
→ CloudFront (cached images, fast)
→ Load Balancer
→ EC2 servers in 2 Availability Zones (Auto Scaling)
→ RDS database in a private subnetPut servers in at least two Availability Zones. If one zone has a problem, your site stays up.
Key points
- A VPC is your private network; public and private subnets separate exposure.
- Load balancers and auto scaling handle traffic and failures.
- CloudFront caches content near users; Route 53 handles DNS.
- Use at least two Availability Zones.
📝 Test yourself
1. Where should a database usually be placed?
2. Which service is the AWS CDN?
3. Fill in the name of the AWS DNS service:
Route
