Logo

dev-resources.site

for different kinds of informations.

CDNs in Distributed Systems: Beyond Caching for Better Performance

Published at
1/12/2025
Categories
techtalks
distributedsystems
softwareengineering
systemdesign
Author
ujjwall-r
Author
9 person written this
ujjwall-r
open
CDNs in Distributed Systems: Beyond Caching for Better Performance

A CDN (Content Delivery Network) is a network of servers distributed across the globe. These servers store copies of website content and deliver them to users from the nearest location, improving speed and reliability while reducing the strain on the original website's server.

In this post, we will explore and understand the lesser-known but highly significant benefits of CDNs.

CDNs are not just for caching static content from the original server—they act as a layer over the internet, enhancing its design and performance.

Benefits of CDNs

CDNs form the underlying network substrate. The internet was not designed with today's performance expectations in mind. The more hops involved in a data transfer path from one system to another, the higher the cost, according to the original internet design. It did not account for factors like latency and congestion.

This is where CDNs play a crucial role by reducing latency or response time and increasing bandwidth.

How do CDNs improve latency?

CDNs are placed at multiple geographical locations and are accessed by nearby client systems.

Image description

A common method to find the closest server requested by a client is through global DNS load balancing. The request includes the client's IP address, and the DNS returns a list of nearby CDN servers along with their health status. (CDNs are essentially reverse proxies. Read more about server side caching in this article.)

CDN servers are also integrated into ISPs (Internet Service Providers). For instance, JioFibre and Airtel are popular ISPs in India.

Image description

CDNs use optimized routing algorithms within their overlay networks to select the fastest and least congested paths for data transfer. These algorithms leverage real-time updates on network health, such as traffic levels and server load, ensuring reduced latency and dynamic rerouting when congestion occurs.

For example, if a particular path becomes congested or experiences high latency due to heavy traffic, the routing algorithm dynamically reroutes the data through a faster, less congested path.

How do CDNs improve bandwidth?

To understand bandwidth improvement, consider the concept of RTT (Round Trip Time). CDNs decrease RTT. You can read about congestion window size and TCP optimization in my previous article.

Image description

CDNs leverage TCP-level optimizations. For instance, they can increase the congestion window size, thereby improving bandwidth.

Caching as a benefit of CDNs

CDNs cache the static content of the original server's responses. Learn more about server-side caching in my previous article.

This caching is multi-layered. The edge layer, or the first layer, is distributed across several geographical locations.

Naturally, the more edge clusters there are, the lower the likelihood of finding cached data in a specific edge cluster. This likelihood is referred to as the cache hit ratio. A lower cache hit ratio increases the load on the original server. To address this, additional intermediate layers of clusters are added. These intermediate layers are deployed in fewer geographical locations.

Conclusion

In summary, CDNs are not only used for caching static content but also for speeding up the delivery of dynamic resources from the original server.

Here are links to my previous posts, which I publish every Sunday on distributed systems:

Feel free to check them out and share your thoughts!

techtalks Article's
30 articles in total
Favicon
Какой ноутбук выбрать: личный опыт и рекомендации
Favicon
What’s Behind the U.S. Claims That TikTok Shares American User Data with China?
Favicon
Top 5 Tools & Technologies for LLM Development 2025
Favicon
CDNs in Distributed Systems: Beyond Caching for Better Performance
Favicon
Whats your TECH stack ?? How did you get into that??
Favicon
The Rise of Payable AI: Shaping the Future of Artificial Intelligence
Favicon
What Is Proof of Attribution? A Complete Guide to Its Role in Blockchain and AI
Favicon
Best Ethical Hacking Certification for Beginners
Favicon
Ethical Hacking Course with AI after 12th in Delhi
Favicon
Benefits of Using an AI Benefits of Using an AI Agent Development Platform for Customer Interaction
Favicon
Top 5 Strategies to Ensure Secure AI Model Training in 2025
Favicon
Top Cyber Security Jobs in India for 2025
Favicon
The Rise of AceHack: From a Spark to a Movement
Favicon
Glance News: Transforming Content Consumption on the Best Phone Lock Screen
Favicon
The Future of AI Model Development: Trends and Predictions
Favicon
The Next Wave of AI: What 2025 Could Hold
Favicon
Best Ethical Hacking Course Fees in Delhi [Affordable 2025]
Favicon
What Are Payable AI Models? Revolutionizing the Monetization of AI
Favicon
Search Engine Optimisation
Favicon
The Tesla Pi Phone: Redefining Our Relationship with Technology
Favicon
AI Model Development: A Complete Step-by-Step Guide for Building and Training Powerful Models
Favicon
The Future of Backend Development: Trends and Tools to Watch in 2025
Favicon
AI Software Development for Beginners: A Comprehensive Guide
Favicon
High Demand Artificial Intelligence ( AI ) Skills to Learn in 2025
Favicon
Common Cybersecurity Misconceptions and How to Avoid Them
Favicon
Exclusive Prometeo Workshops 2025 at IIT Jodhpur
Favicon
Asynchronous transaction in distributed system
Favicon
Which is the Best Python Programming Institute in Delhi in 2025?
Favicon
The Impact of Cloud Computing in DevOps
Favicon
Enhancing Outdoor Adventures: How Technology Brings You Closer to Nature

Featured ones: