Performance Optimized - CDN

Source: Internet
Author: User
Keywords cdn cdn introduction cdn meaning
Introduction to CDN
The full name of CDN is Content Delivery Network. Avoid bottlenecks and links on the Internet that may affect the speed and stability of data transmission as much as possible to make content transmission faster and more stable.

CDN principle
Node servers are placed everywhere in the network to form an intelligent virtual network on top of the existing Internet. The CDN system can redirect the user's request to the node closest to the user in real time based on comprehensive information such as network traffic and the connection of each node, load status, distance to the user and response time.

Traditional visit
The user enters the domain name in the browser to initiate a request
DNS server resolves domain name to obtain server IP address
Find the corresponding server based on the IP address
The server responds and returns data

CDN access
The user enters the domain name in the browser to initiate a request
Intelligent DNS resolution (determine geographic location and network operator based on IP, select the server with the shortest route and lightest load)
Get the IP address of the cache server
Find the corresponding cache server based on the IP address
If the cache hits, respond and return data; if the cache misses, initiate a request to the source site
The source site returns the data and caches a copy of the data on the cache server

CDN advantages
Local cache acceleration, improve the access speed of corporate sites
Cross-operator network acceleration to ensure that users on different networks can get good access quality
Widely distributed CDN nodes plus intelligent redundancy mechanism between nodes can effectively prevent hackers from intruding

CDN User Guide
Use some third-party CDN services (Alibaba Cloud, Tencent Cloud)
You can use LVS to do 4-layer load balancing
You can use nginx for layer 7 load balancing and caching
You can use squid or nginx to implement reverse proxy\

CDN usage scenarios
There are a large number of static resources (HTML, CSS, JavaScript, Images, etc.) in the site or application, which can be accelerated by CDN
Large file download (Excel, PDF, video, etc.)
Live streaming sites, etc.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.