The advent of the cloud era, rapid use of CDN services for overseas users to visit the domestic website acceleration

Source: Internet
Author: User
Tags azure cdn

Cloud era, how to use CDN Service for overseas users to visit the domestic website acceleration

This article blog address: http://www.cnblogs.com/taosha/p/6760079.html, you can freely reproduced, please keep the source, thank you for your cooperation!

As we all know, overseas users visit the domestic website speed is unsatisfactory, the main reason is the geographical distance is far, China to overseas internet export bandwidth is limited and in the middle also separated by "Great Wall Firewall". So what can we do to speed up overseas users ' access to domestic websites? The answer is CDN services. This article is mainly to introduce the CDN service to enhance the overseas customers to visit the domestic website Acceleration principle, overseas CDN selection, rapid configuration and problem three parts.

    1. Acceleration principle:

CDN Full Name content DeliveryNetwork, the Chinese language is thedistribution networks, the basic idea is to cache the data customers want to access as far as possible to the customer's closest network node.

No CDN , overseas customers visit the domestic website is such, overseas customers every visit must be from the domestic Web server to read data, pictures and other content. As

With a CDN, the CDN network automatically caches the Web site files that users need to access to the nearest CDN node, a process that is intelligently judged and completed by the CDN Network and does not require manual intervention from the customer, such as:

To make an explanation, our domestic website will be automatically (active/passive) synchronized to the Global CDN node after the CDN service, so that when overseas customers revisit the domestic website, the CDN system will intelligently direct the customer's access to the fastest-accessing CDN node, which greatly accelerates the customer's visit. This signal is not particularly rigorous, if you want to have a special in-depth understanding of the CDN work mechanism, we suggest you can read: Http://baike.baidu.com/item/CDN/420951?fr=aladdin and other documents, online very much, This is not a detailed introduction.

    1. The choice of overseas CDN,

As you can see, there are a few things that are particularly important to CDN:

    • The number and distribution of nodes;
    • The judgment and routing of intelligent System;
    • Support CDN content, such as whether static website, image, video, streaming media, etc.
    • Price

For the domestic website to see the sea, can be as follows three options:

more nodes, good service

TD style= "PADDING-LEFT:13PX; padding-right:13px; Border-top:none; Border-left:none; Border-bottom:solid 0.5pt; Border-right:solid 0.5pt "> TD style= "PADDING-LEFT:13PX; padding-right:13px; Border-top:none; Border-left:none; Border-bottom:solid 0.5pt; Border-right:solid 0.5pt ">

way

benefits

disadvantages

self-built CDN

service cost is low, quality controllable

construction cost is expensive

Professional CDN provider

Cloud Manufacturer CDN

node is sufficient, simple configuration

Price is cheap, pay by use

If you are only small and medium-sized customers, I recommend the cloud manufacturers to provide CDN services, configuration is simple, node enough, cost-effective. Cloud CDN Services are currently available from Microsoft Azure and Amazon AWS, where Microsoft Azure is the only example. Microsoft Azure is the world's leading provider of cloud computing providers, providing hundreds of cloud computing services that can meet the needs of domestic customers to open up overseas business use.

    1. How Azure CDN is configured

First you have to have an Azure account, Azure can request it on www.azure.com, and then pay for it after you've bundled your credit card.

The configuration steps are as follows:

The first step is to configure the Cdn configuration file;

The second step is to configure the CDN endpoint;

The third step is to modify the Canme record in DNS;

Fourth step, configure the custom domain name

The first step is to configure the CDN configuration file:

For example, configure a CDN profile/profile, resource groups and resource group locations at will, three pricing criteria such as:

If it is a purely static site, we recommend that you use S1 Verizon Standard, if you need to set up CDN rules, the recommended use of P1 Premium VERIZON,CDN is based on traffic charges, but because of the powerful, the premium version is obviously more expensive than the standard version. After the match should be as follows:

The second step is to configure the endpoint:

Description

Name is the name of the CDN node, such as I input cdndemo, then the nodes name is cdndemo.azureedge.net;

Origin type (origin), if it is for own site acceleration, choose custom origin;

Origin hostname, fill in your source site's public IP or hostname, such as 65.52.189.183, do not add http://prefix.

Special tips (There are pits): Origin hostname Chinese will be translated into the origin of the host, it will make people a bit confusing, but in fact, let you fill in the domestic web site public IP or Web server hostname, do not fill in the domain name of the domestic website, That would result in a dead loop in the subsequent DNS configuration that would cause the Web site to become inaccessible.

Origin path and Origin host header can be left blank, not filled, and protocols can be selected either HTTP or HTTP or HTTPS.

After the creation is complete, such as:

After the configuration is complete, the CDN node caches the http://65.52.189.183 site content to the endpoint, which is http://fr-renesola.azureedge.net, which takes about dozens of minutes.

Step three, add CNAME records to the DNS system

Open the customer's domain name management system and add a CNAME record, primarily to point the original site URL to Azure

The end point of the CDN, that is XXX.azureedge.net.

Special tips (There are pits): The domain Name System usually has a record or CNAME record, a record is better than the CNAME record, so you need to delete a record, the host record is your domestic website address, the record value is the Azure CDN endpoint XXX.azureedge.net. (Note that there is a point at the end, don't miss it). The purpose of this CNAME is to direct the URL of the original visit to the home site to the Azure CDN endpoint. The equivalent of adding a CDN cache layer between the customer and the source site. As for the client to access which node in the CDN network, as we have said in the principle, the intelligent CDN automatically judges and points the customer to the fastest node.

Fourth step, set the custom domain name (required)

On the Endpoints page, add a custom domain name, primarily to let the smart CDN system identify your domestic website address. Internally establish the correspondence between the domestic website address and the Azure CDN endpoint.

Custom hostname is the source URL, which is the domestic website access address.

Special tips (there are pits here): Must be set here, otherwise you will find that you can access the XXX.azureedge.net, but from the domestic address can not access to the endpoint, will always show that the site does not open the page.

Four steps above, you can complete a domestic website in the global content distribution, you will find no matter where your customers in the world, he can quickly open your domestic website.

    1. Problem explanation

The above step is just a simple demonstration, in practical use, the customer will often have personalized requirements, such as:

Q: Can I just cache pictures, videos and other static elements

A: It's perfectly possible to choose P1 Premium Verizon to set rules in the rules engine, such as:

For example, ASPX, ASP, PHP and other dynamic pages do not do CDN cache, MP4 and WMV do CDN cache, so as to ensure that customers access to the site dynamic information.

Q: How does a Web site return a page with a string when it is linked? Like http://xxxxx? Id=1,id=x different values represent a different session.

Answer: You can not cache the query string in the cache settings, different users get different access links.

The advent of the cloud era, rapid use of CDN services for overseas users to visit the domestic website acceleration

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.