<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0">
<channel>
<title>Coder Legion - Recent posts tagged subnet</title>
<link>https://coderlegion.com/tag/subnet</link>
<description>Powered by Question2Answer</description>
<item>
<title>Internet-Free Infrastructure: How Two Servers Talk Without Using the Internet</title>
<link>https://coderlegion.com/25364/internet-free-infrastructure-how-two-servers-talk-without-using-the-internet</link>
<description>&lt;p&gt;Imagine you're building a SaaS platform.&lt;/p&gt;
&lt;p&gt;Nothing unusual.&lt;/p&gt;
&lt;p&gt;A web application.&lt;/p&gt;
&lt;p&gt;A PostgreSQL database.&lt;/p&gt;
&lt;p&gt;A Redis cache.&lt;/p&gt;
&lt;p&gt;Everything runs in the cloud.&lt;/p&gt;
&lt;p&gt;The architecture looks something like this:&lt;/p&gt;
&lt;pre&gt;&lt;code class=&quot;language-text&quot;&gt;Users
  ↓
Application Server
  ↓
PostgreSQL
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;Simple.&lt;/p&gt;
&lt;p&gt;A user sends a request.&lt;/p&gt;
&lt;p&gt;The application queries the database.&lt;/p&gt;
&lt;p&gt;The database responds.&lt;/p&gt;
&lt;p&gt;The application returns data.&lt;/p&gt;
&lt;p&gt;Feature shipped.&lt;/p&gt;
&lt;p&gt;Customers happy.&lt;/p&gt;
&lt;p&gt;Everyone moves on.&lt;/p&gt;
&lt;p&gt;For a while.&lt;/p&gt;
&lt;hr&gt;
&lt;h3 id=&quot;the-question-nobody-asks&quot;&gt;The Question Nobody Asks&lt;/h3&gt;
&lt;p&gt;Most engineers focus on:&lt;/p&gt;
&lt;pre&gt;&lt;code class=&quot;language-text&quot;&gt;Application Logic
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;or&lt;/p&gt;
&lt;pre&gt;&lt;code class=&quot;language-text&quot;&gt;Database Queries
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;or&lt;/p&gt;
&lt;pre&gt;&lt;code class=&quot;language-text&quot;&gt;API Design
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;But infrastructure engineers eventually ask a different question:&lt;/p&gt;
&lt;blockquote&gt;&lt;p&gt;&lt;em&gt;How does the application server actually reach the database server?&lt;/em&gt;&lt;/p&gt;
&lt;/blockquote&gt;
&lt;p&gt;Not conceptually.&lt;/p&gt;
&lt;p&gt;Literally.&lt;/p&gt;
&lt;p&gt;How does one machine know where another machine is?&lt;/p&gt;
&lt;p&gt;How does a packet travel from one server to another?&lt;/p&gt;
&lt;p&gt;And perhaps the most surprising question:&lt;/p&gt;
&lt;blockquote&gt;&lt;p&gt;&lt;em&gt;If both servers live in the cloud, why doesn't their communication go through the Internet?&lt;/em&gt;&lt;/p&gt;
&lt;/blockquote&gt;
&lt;hr&gt;
&lt;h3 id=&quot;the-common-misconception&quot;&gt;The Common Misconception&lt;/h3&gt;
&lt;p&gt;Many people imagine cloud infrastructure like this:&lt;/p&gt;
&lt;pre&gt;&lt;code class=&quot;language-text&quot;&gt;Application Server
        ↓
     Internet
        ↓
Database Server
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;It seems reasonable.&lt;/p&gt;
&lt;p&gt;After all, both servers exist somewhere inside AWS, Azure, or Google Cloud.&lt;/p&gt;
&lt;p&gt;Surely the traffic goes through the Internet.&lt;/p&gt;
&lt;p&gt;Right?&lt;/p&gt;
&lt;p&gt;Actually, no.&lt;/p&gt;
&lt;p&gt;In most production systems, internal communication never touches the public Internet.&lt;/p&gt;
&lt;p&gt;Instead, it looks like this:&lt;/p&gt;
&lt;pre&gt;&lt;code class=&quot;language-text&quot;&gt;Application Server
        ↓
 Private Network
        ↓
Database Server
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;No public Internet.&lt;/p&gt;
&lt;p&gt;No ISP.&lt;/p&gt;
&lt;p&gt;No external routers.&lt;/p&gt;
&lt;p&gt;No public IP addresses.&lt;/p&gt;
&lt;p&gt;Just private infrastructure.&lt;/p&gt;
&lt;p&gt;This distinction matters because it changes everything about:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Security&lt;/li&gt;
&lt;li&gt;Performance&lt;/li&gt;
&lt;li&gt;Reliability&lt;/li&gt;
&lt;li&gt;Cost&lt;/li&gt;
&lt;li&gt;Scalability&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;To understand why, we need to start with the first building block.&lt;/p&gt;
&lt;p&gt;The VPC.&lt;/p&gt;
&lt;hr&gt;
&lt;h3 id=&quot;the-cloud-is-a-giant-city&quot;&gt;The Cloud Is A Giant City&lt;/h3&gt;
&lt;p&gt;Imagine AWS as a massive country.&lt;/p&gt;
&lt;p&gt;Inside that country:&lt;/p&gt;
&lt;pre&gt;&lt;code class=&quot;language-text&quot;&gt;Netflix

Airbnb

Stripe

Shopify

Your Startup

Thousands of Others
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;All of them are running servers.&lt;/p&gt;
&lt;p&gt;All of them are storing data.&lt;/p&gt;
&lt;p&gt;All of them are deploying applications.&lt;/p&gt;
&lt;p&gt;Now imagine there were no boundaries.&lt;/p&gt;
&lt;p&gt;No isolation.&lt;/p&gt;
&lt;p&gt;No separation.&lt;/p&gt;
&lt;p&gt;Every server could see every other server.&lt;/p&gt;
&lt;p&gt;That would be a security nightmare.&lt;/p&gt;
&lt;p&gt;Cloud providers solve this problem using something called a:&lt;/p&gt;
&lt;pre&gt;&lt;code class=&quot;language-text&quot;&gt;Virtual Private Cloud
(VPC)
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;Think of a VPC as:&lt;/p&gt;
&lt;pre&gt;&lt;code class=&quot;language-text&quot;&gt;Your own private city
inside a giant country.
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;The cloud provider owns the country.&lt;/p&gt;
&lt;p&gt;You own the city.&lt;/p&gt;
&lt;p&gt;Inside that city:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Your servers can communicate&lt;/li&gt;
&lt;li&gt;Your databases can communicate&lt;/li&gt;
&lt;li&gt;Your caches can communicate&lt;/li&gt;
&lt;li&gt;Other companies cannot access them&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;The first thing cloud infrastructure gives you is not a server.&lt;/p&gt;
&lt;p&gt;It's a private network.&lt;/p&gt;
&lt;hr&gt;
&lt;h3 id=&quot;why-infrastructure-starts-with-a-network&quot;&gt;Why Infrastructure Starts With A Network&lt;/h3&gt;
&lt;p&gt;New engineers often think infrastructure begins here:&lt;/p&gt;
&lt;pre&gt;&lt;code class=&quot;language-text&quot;&gt;EC2 Instance

Virtual Machine

Server
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;It doesn't.&lt;/p&gt;
&lt;p&gt;Infrastructure usually begins here:&lt;/p&gt;
&lt;pre&gt;&lt;code class=&quot;language-text&quot;&gt;VPC
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;Because servers without networks are useless.&lt;/p&gt;
&lt;p&gt;Imagine buying a house.&lt;/p&gt;
&lt;p&gt;But there are:&lt;/p&gt;
&lt;pre&gt;&lt;code class=&quot;language-text&quot;&gt;No roads

No addresses

No transportation
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;The house exists.&lt;/p&gt;
&lt;p&gt;But nobody can reach it.&lt;/p&gt;
&lt;p&gt;Servers have the same problem.&lt;/p&gt;
&lt;p&gt;Before machines can communicate, they need a network.&lt;/p&gt;
&lt;p&gt;The VPC creates that network.&lt;/p&gt;
&lt;hr&gt;
&lt;h3 id=&quot;the-next-problem&quot;&gt;The Next Problem&lt;/h3&gt;
&lt;p&gt;Suppose your company grows.&lt;/p&gt;
&lt;p&gt;Now you have:&lt;/p&gt;
&lt;pre&gt;&lt;code class=&quot;language-text&quot;&gt;Application Servers

Database Servers

Redis

Background Workers

Message Queues

Monitoring Systems

Admin Tools
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;Everything lives inside one VPC.&lt;/p&gt;
&lt;p&gt;At first this sounds convenient.&lt;/p&gt;
&lt;p&gt;Until security enters the conversation.&lt;/p&gt;
&lt;p&gt;Should a database be reachable from everywhere?&lt;/p&gt;
&lt;p&gt;Probably not.&lt;/p&gt;
&lt;p&gt;Should every server have Internet access?&lt;/p&gt;
&lt;p&gt;Probably not.&lt;/p&gt;
&lt;p&gt;Should internal systems be exposed publicly?&lt;/p&gt;
&lt;p&gt;Definitely not.&lt;/p&gt;
&lt;p&gt;This is where subnets appear.&lt;/p&gt;
&lt;hr&gt;
&lt;h3 id=&quot;subnets-are-neighborhoods&quot;&gt;Subnets Are Neighborhoods&lt;/h3&gt;
&lt;p&gt;If a VPC is a city:&lt;/p&gt;
&lt;pre&gt;&lt;code class=&quot;language-text&quot;&gt;VPC = City
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;Then:&lt;/p&gt;
&lt;pre&gt;&lt;code class=&quot;language-text&quot;&gt;Subnet = Neighborhood
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;A company might create:&lt;/p&gt;
&lt;pre&gt;&lt;code class=&quot;language-text&quot;&gt;VPC
│
├── Public Subnet
│
├── Application Subnet
│
└── Database Subnet
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;Each subnet serves a purpose.&lt;/p&gt;
&lt;p&gt;For example:&lt;/p&gt;
&lt;pre&gt;&lt;code class=&quot;language-text&quot;&gt;Public Subnet

Load Balancer
&lt;/code&gt;&lt;/pre&gt;
&lt;pre&gt;&lt;code class=&quot;language-text&quot;&gt;Private Application Subnet

App Server 1
App Server 2
App Server 3
&lt;/code&gt;&lt;/pre&gt;
&lt;pre&gt;&lt;code class=&quot;language-text&quot;&gt;Private Database Subnet

PostgreSQL
Redis
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;Notice something important.&lt;/p&gt;
&lt;p&gt;The database sits deeper inside the infrastructure.&lt;/p&gt;
&lt;p&gt;Further away from the Internet.&lt;/p&gt;
&lt;p&gt;This is intentional.&lt;/p&gt;
&lt;p&gt;Because good infrastructure is built around reducing exposure.&lt;/p&gt;
&lt;hr&gt;
&lt;h3 id=&quot;the-database-doesn-t-need-the-internet&quot;&gt;The Database Doesn't Need The Internet&lt;/h3&gt;
&lt;p&gt;Many founders are surprised by this.&lt;/p&gt;
&lt;p&gt;A database usually doesn't need users.&lt;/p&gt;
&lt;p&gt;A database needs applications.&lt;/p&gt;
&lt;p&gt;That's a completely different requirement.&lt;/p&gt;
&lt;p&gt;Consider:&lt;/p&gt;
&lt;pre&gt;&lt;code class=&quot;language-text&quot;&gt;Customer
    ↓
Application
    ↓
Database
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;The customer never talks directly to PostgreSQL.&lt;/p&gt;
&lt;p&gt;Only the application does.&lt;/p&gt;
&lt;p&gt;So exposing the database publicly creates risk without creating value.&lt;/p&gt;
&lt;p&gt;This is why production databases often live in private subnets.&lt;/p&gt;
&lt;p&gt;The database can still be reached.&lt;/p&gt;
&lt;p&gt;But only by trusted systems.&lt;/p&gt;
&lt;hr&gt;
&lt;h3 id=&quot;every-server-gets-a-private-address&quot;&gt;Every Server Gets A Private Address&lt;/h3&gt;
&lt;p&gt;Now imagine an application server wants to reach PostgreSQL.&lt;/p&gt;
&lt;p&gt;How does it find the database?&lt;/p&gt;
&lt;p&gt;The same way you find a building.&lt;/p&gt;
&lt;p&gt;Addresses.&lt;/p&gt;
&lt;p&gt;Every server receives an IP address.&lt;/p&gt;
&lt;p&gt;Example:&lt;/p&gt;
&lt;pre&gt;&lt;code class=&quot;language-text&quot;&gt;Application

10.0.1.10
&lt;/code&gt;&lt;/pre&gt;
&lt;pre&gt;&lt;code class=&quot;language-text&quot;&gt;Database

10.0.2.20
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;These are private IP addresses.&lt;/p&gt;
&lt;p&gt;Not public ones.&lt;/p&gt;
&lt;p&gt;Nobody on the Internet can reach them.&lt;/p&gt;
&lt;p&gt;But machines inside the VPC can.&lt;/p&gt;
&lt;p&gt;Now the application knows:&lt;/p&gt;
&lt;pre&gt;&lt;code class=&quot;language-text&quot;&gt;Database

10.0.2.20
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;Problem solved?&lt;/p&gt;
&lt;p&gt;Not quite.&lt;/p&gt;
&lt;p&gt;Knowing an address isn't enough.&lt;/p&gt;
&lt;hr&gt;
&lt;h3 id=&quot;knowing-the-address-doesn-t-create-a-path&quot;&gt;Knowing The Address Doesn't Create A Path&lt;/h3&gt;
&lt;p&gt;Imagine someone gives you:&lt;/p&gt;
&lt;pre&gt;&lt;code class=&quot;language-text&quot;&gt;221B Baker Street
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;Great.&lt;/p&gt;
&lt;p&gt;You know the destination.&lt;/p&gt;
&lt;p&gt;But how do you get there?&lt;/p&gt;
&lt;p&gt;You need roads.&lt;/p&gt;
&lt;p&gt;Networks have the same problem.&lt;/p&gt;
&lt;p&gt;An IP address tells you:&lt;/p&gt;
&lt;pre&gt;&lt;code class=&quot;language-text&quot;&gt;Where
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;But not:&lt;/p&gt;
&lt;pre&gt;&lt;code class=&quot;language-text&quot;&gt;How
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;That responsibility belongs to routing.&lt;/p&gt;
&lt;hr&gt;
&lt;h3 id=&quot;routing-is-the-gps-of-the-cloud&quot;&gt;Routing Is The GPS Of The Cloud&lt;/h3&gt;
&lt;p&gt;Every network contains routing rules.&lt;/p&gt;
&lt;p&gt;These rules answer one question:&lt;/p&gt;
&lt;blockquote&gt;&lt;p&gt;&lt;em&gt;Where should this packet go next?&lt;/em&gt;&lt;/p&gt;
&lt;/blockquote&gt;
&lt;p&gt;A route table might contain:&lt;/p&gt;
&lt;pre&gt;&lt;code class=&quot;language-text&quot;&gt;Destination      Target

10.0.0.0/16      Local
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;Meaning:&lt;/p&gt;
&lt;pre&gt;&lt;code class=&quot;language-text&quot;&gt;Any traffic
inside this VPC
stays inside this VPC
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;Now imagine:&lt;/p&gt;
&lt;pre&gt;&lt;code class=&quot;language-text&quot;&gt;Application

10.0.1.10
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;sending a request to:&lt;/p&gt;
&lt;pre&gt;&lt;code class=&quot;language-text&quot;&gt;Database

10.0.2.20
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;The network checks the routing table.&lt;/p&gt;
&lt;pre&gt;&lt;code class=&quot;language-text&quot;&gt;Destination?

10.0.2.20
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;Result:&lt;/p&gt;
&lt;pre&gt;&lt;code class=&quot;language-text&quot;&gt;Inside VPC
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;Therefore:&lt;/p&gt;
&lt;pre&gt;&lt;code class=&quot;language-text&quot;&gt;Deliver Locally
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;The packet never leaves the cloud network.&lt;/p&gt;
&lt;p&gt;The Internet is never involved.&lt;/p&gt;
&lt;p&gt;The communication happens entirely inside private infrastructure.&lt;/p&gt;
&lt;hr&gt;
&lt;h3 id=&quot;the-request-s-actual-journey&quot;&gt;The Request's Actual Journey&lt;/h3&gt;
&lt;p&gt;When the application queries PostgreSQL:&lt;/p&gt;
&lt;pre&gt;&lt;code class=&quot;language-sql&quot;&gt;SELECT * FROM users;
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;What really happens is:&lt;/p&gt;
&lt;pre&gt;&lt;code class=&quot;language-text&quot;&gt;Application
   ↓
Private IP
   ↓
Route Table
   ↓
Database Subnet
   ↓
Database Server
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;No Internet.&lt;/p&gt;
&lt;p&gt;No DNS lookup to the public Internet.&lt;/p&gt;
&lt;p&gt;No external networking providers.&lt;/p&gt;
&lt;p&gt;Just internal routing.&lt;/p&gt;
&lt;p&gt;This is why internal communication is usually:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Faster&lt;/li&gt;
&lt;li&gt;More secure&lt;/li&gt;
&lt;li&gt;More predictable&lt;/li&gt;
&lt;li&gt;Less exposed to external failures&lt;/li&gt;
&lt;/ul&gt;
&lt;hr&gt;
&lt;h3 id=&quot;why-this-matters-to-founders&quot;&gt;Why This Matters To Founders&lt;/h3&gt;
&lt;p&gt;At first glance this sounds like technical trivia.&lt;/p&gt;
&lt;p&gt;It's not.&lt;/p&gt;
&lt;p&gt;Because infrastructure decisions directly affect business outcomes.&lt;/p&gt;
&lt;p&gt;Imagine two architectures.&lt;/p&gt;
&lt;h4 id=&quot;architecture-a&quot;&gt;Architecture A&lt;/h4&gt;
&lt;pre&gt;&lt;code class=&quot;language-text&quot;&gt;Application
     ↓
Internet
     ↓
Database
&lt;/code&gt;&lt;/pre&gt;
&lt;h4 id=&quot;architecture-b&quot;&gt;Architecture B&lt;/h4&gt;
&lt;pre&gt;&lt;code class=&quot;language-text&quot;&gt;Application
     ↓
Private Network
     ↓
Database
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;The second architecture provides:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Better security&lt;/li&gt;
&lt;li&gt;Lower attack surface&lt;/li&gt;
&lt;li&gt;Lower latency&lt;/li&gt;
&lt;li&gt;Fewer compliance concerns&lt;/li&gt;
&lt;li&gt;Better scalability&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;The customer never notices.&lt;/p&gt;
&lt;p&gt;But the company benefits every day.&lt;/p&gt;
&lt;p&gt;This is one of the reasons mature SaaS platforms invest heavily in infrastructure design.&lt;/p&gt;
&lt;p&gt;Not because customers ask for VPCs.&lt;/p&gt;
&lt;p&gt;Because customers expect reliability.&lt;/p&gt;
&lt;hr&gt;
&lt;h3 id=&quot;the-most-important-lesson&quot;&gt;The Most Important Lesson&lt;/h3&gt;
&lt;p&gt;When most people think about cloud infrastructure, they think about servers.&lt;/p&gt;
&lt;p&gt;Experienced engineers think about networks.&lt;/p&gt;
&lt;p&gt;Because before applications communicate:&lt;/p&gt;
&lt;pre&gt;&lt;code class=&quot;language-text&quot;&gt;Networks must exist.
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;Before databases respond:&lt;/p&gt;
&lt;pre&gt;&lt;code class=&quot;language-text&quot;&gt;Routes must exist.
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;Before systems scale:&lt;/p&gt;
&lt;pre&gt;&lt;code class=&quot;language-text&quot;&gt;Infrastructure boundaries must exist.
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;The Internet is only one network.&lt;/p&gt;
&lt;p&gt;Most production systems spend far more time communicating inside private networks than across the public Internet.&lt;/p&gt;
&lt;p&gt;And understanding that idea is the first step toward understanding modern cloud infrastructure.&lt;/p&gt;
&lt;hr&gt;
&lt;h3 id=&quot;frequently-asked-questions&quot;&gt;Frequently Asked Questions&lt;/h3&gt;
&lt;h4 id=&quot;what-is-a-vpc-&quot;&gt;What is a VPC?&lt;/h4&gt;
&lt;p&gt;A Virtual Private Cloud (VPC) is an isolated private network inside a cloud provider where your infrastructure resources can communicate securely.&lt;/p&gt;
&lt;hr&gt;
&lt;h4 id=&quot;what-is-a-subnet-&quot;&gt;What is a subnet?&lt;/h4&gt;
&lt;p&gt;A subnet is a smaller network segment inside a VPC used to organize and isolate infrastructure resources.&lt;/p&gt;
&lt;hr&gt;
&lt;h4 id=&quot;why-do-servers-use-private-ip-addresses-&quot;&gt;Why do servers use private IP addresses?&lt;/h4&gt;
&lt;p&gt;Private IP addresses allow internal communication without exposing systems directly to the public Internet.&lt;/p&gt;
&lt;hr&gt;
&lt;h4 id=&quot;does-traffic-between-servers-always-go-through-the-internet-&quot;&gt;Does traffic between servers always go through the Internet?&lt;/h4&gt;
&lt;p&gt;No.&lt;/p&gt;
&lt;p&gt;In most cloud architectures, communication between internal services stays inside the provider's private network.&lt;/p&gt;
&lt;hr&gt;
&lt;h4 id=&quot;what-is-a-route-table-&quot;&gt;What is a route table?&lt;/h4&gt;
&lt;p&gt;A route table contains rules that determine where network traffic should be sent.&lt;/p&gt;
&lt;hr&gt;
&lt;h4 id=&quot;why-are-databases-usually-placed-in-private-subnets-&quot;&gt;Why are databases usually placed in private subnets?&lt;/h4&gt;
&lt;p&gt;Because databases typically only need to communicate with application servers, not with public users.&lt;/p&gt;
&lt;hr&gt;
&lt;h3 id=&quot;key-takeaways&quot;&gt;Key Takeaways&lt;/h3&gt;
&lt;ul&gt;
&lt;li&gt;Most production server-to-server communication never touches the public Internet.&lt;/li&gt;
&lt;li&gt;A VPC creates an isolated private network inside the cloud.&lt;/li&gt;
&lt;li&gt;Subnets divide a network into smaller security and operational boundaries.&lt;/li&gt;
&lt;li&gt;Servers communicate using private IP addresses.&lt;/li&gt;
&lt;li&gt;Route tables determine how packets travel through the network.&lt;/li&gt;
&lt;li&gt;Security starts with network design, not application code.&lt;/li&gt;
&lt;li&gt;Cloud infrastructure is fundamentally a networking problem before it becomes a server problem.&lt;/li&gt;
&lt;li&gt;Understanding VPCs, subnets, private IPs, and routes is the foundation of modern cloud architecture.&lt;/li&gt;
&lt;/ul&gt;
</description>
<category>Articles</category>
<guid isPermaLink="true">https://coderlegion.com/25364/internet-free-infrastructure-how-two-servers-talk-without-using-the-internet</guid>
<pubDate>Tue, 25 Aug 2026 17:21:06 +0000</pubDate>
</item>
</channel>
</rss>