DEV Community

Cover image for Beginners Guide To CDN
Harith Javed Bakhrani
Harith Javed Bakhrani

Posted on

Beginners Guide To CDN

Before we get into the details of a CDN, we need to know this life fact: DISTANCE MATTERS!

Yes, the distance between the server and the client matters. The further away the client will be from the server, the longer it would take for the server to respond to the client.

distance between the server and the client matters, the further away the client would be, the longer it would take.

Having this fact in mind, what the CDN providers do is that they place their servers all over the WORLD 🌍!

They would be having servers in Africa, servers in Europe, servers in America, and basically in all countries and regions.

So let's say a user from Africa requests some data from a website hosted in America, the request would first go to a server that is nearest to the client to check to see if the data is present there, if it's not, then it will go all the way to America and fetch the data from the main server and then cache it on it's way back before handing it to the client.

Diagram showing illustration of how CDN works

As long as the data is cached, it will be served from the CDN server to all the users requiring the same data. This not only speeds up the delivery but also frees up your main server from resources so that it can attend to more critical requests!

Image of AssemblyAI tool

Challenge Submission: SpeechCraft - AI-Powered Speech Analysis for Better Communication

SpeechCraft is an advanced real-time speech analytics platform that transforms spoken words into actionable insights. Using cutting-edge AI technology from AssemblyAI, it provides instant transcription while analyzing multiple dimensions of speech performance.

Read full post

Top comments (0)

Billboard image

Try REST API Generation for MS SQL Server.

DevOps for Private APIs. With DreamFactory API Generation, you get:

  • Auto-generated live APIs mapped from database schema
  • Interactive Swagger API documentation
  • Scripting engine to customize your API
  • Built-in role-based access control

Learn more

👋 Kindness is contagious

Engage with a sea of insights in this enlightening article, highly esteemed within the encouraging DEV Community. Programmers of every skill level are invited to participate and enrich our shared knowledge.

A simple "thank you" can uplift someone's spirits. Express your appreciation in the comments section!

On DEV, sharing knowledge smooths our journey and strengthens our community bonds. Found this useful? A brief thank you to the author can mean a lot.

Okay