Does anyone else have the same confusion as I do between CDN and DNS?
What is Content Delivery Network? Why do we need this
Content Delivery Network (CDN) is a network of servers distributed across various locations worldwide. The main goal of a CDN is to deliver web content (such as images, videos, scripts, and other files) to users more efficiently and reliably.
Without a Content Delivery Network (CDN), content is usually served directly from the origin server where the website is hosted.
If you don't have a CDN, here are the disadvantages:
Single Point of Failure: If there is a failure or the origin server experiences downtime or becomes overloaded due to high traffic, users may face slow loading times or may not be able to access the website at all.
Increased Latency: Users far away from the origin server experience higher latency because their requests have to travel long distances.
A CDN helps address these issues by spreading content across servers closer to users, cutting down latency, enhancing performance, and boosting reliability.
When a user requests content from a website, the CDN delivers that content from the server that is geographically closest to the user, rather than from the website's origin server.
What is Domain Name Server ?
The Domain Name System (DNS) is like the internet's address book. It translates human-readable domain names (like domain.com) into IP addresses (like 216.3.128.12) that computers use to locate and communicate with each other over a network.
How it works Actually
When you type a domain name into your web browser, your device sends a DNS query to a DNS resolver, which then looks up the corresponding IP address for that domain name and returns it to your device, allowing your browser to connect to the correct server.
Example:
Type " www.domain.com " into your web browser.
Your Device sends a DNS query to a DNS resolver (usually provided by your ISP (i.e., Internet Service Provider or third-party DNS service like Google DNS or Cloudflare DNS).
The resolver then looks up the IP address associated with www.domain.com and returns it to your device.
Your browser the uses that IP address to connect to the server hosting the website.
💡Simply DNS used as Telephone directory 📑and CDN uses as Phone set 📞in house where user can receive the call 📲from near by phone set in house.
Subscribe to my newsletter
Read articles from Sri directly inside your inbox. Subscribe to the newsletter, and don't miss out.
Written by