Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

The method of using cdn acceleration

2025-03-29 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

Shulou(Shulou.com)06/03 Report--

After purchasing the CDN service, users will be more concerned about whether there is actual effect in the process of using it. First, we must first ensure whether it has been successfully opened, and then follow the basic steps to add the accelerated domain name and configure the CNAME. After these are successfully completed, we can test whether the CDN has been successfully accelerated. So how do we apply CDN, and what does its acceleration effect depend on?

How to use cdn acceleration? Using cdn acceleration is now a strategy for speeding up many websites, not all of them. For example, based on the service, if the resources under the domain name are all dynamic resources, it is not recommended to access the cdn.

1. cdn is a reverse proxy + cache network element. In order to ensure normal service for dynamic resources, proxy is required to return to the source, that is, all requests are responded to by the source station. Under this combination, if there is no obvious acceleration effect, the source station and cdn will charge at the same time, and the source station will have a traffic fee and cdn will have a traffic fee. From the perspective of cost, it must be considered.

2. Almost all vendors have a default timeout for cdn. For the original name of the dynamic resource, if the server database is slow and the response exceeds the default timeout time, it will directly return to 564. If the client (or proxy) sets the cache time for this exception status code to be relatively long, the service will not be restored until the timeout time expires.

3. Maintenance cost issues. The original domain name is dynamic domain name, that is to say, in the business planning, it has been separated from the static, once connected to the cdn, need to do a variety of configuration on the cdn, if the configuration personnel do not know the business status, small site layout disorder, large business completely broken.

4. For domain names that do not have much traffic in themselves, it is not recommended to access cdn. First of all, access to cdn has a premise, that is, the access volume has exceeded the bearing range of the source station. In this case, a distributed system such as cdn is needed to relieve the pressure on the source station.

5. Based on source station performance. After accessing the cdn, it is not true that the cdn buffers all the resources of the source station, so setting the bandwidth of the source station to 1M, or directly turning off the source station, is not correct.

Therefore, the use of cdn should also be distinguished according to its own actual situation and needs. The above is an introduction to how to use cdn acceleration and precautions.

Web hosting can enjoy Baidu massive CDN node resources for free, Web hosting product link https://www.yisu.com/cloud/

webhosting/

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Servers

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report