Breaking news: Qingbei technology front-end CDN released!

0. About this CDN

The template of this site comes with CloudFlare's Cdnjs, JsDelivr, Google Fonts and other resource CDNs, but the speed is not satisfactory. I also found that Cdnjs has a repository in GitHub, so I forked a copy, Git Pulled it to the local, built Created a static resource CDN.

1. Construction process

The build process is relatively simple, it just took five hours to pull the entire repository from GitHub. GitHub shows that the warehouse has a size of 23G. After I pulled it down, I found that it was more than 300G.

Note: Some packages may be incomplete during this process. If you find any, please comment or email in time, and it will be verified and completed within a week!

2. Docking this CDN

The directory structure of this front-end CDN is exactly the same as that of Cdnjs, and the format is

https://domain/ajax/libs/package/version/file

So directly replace the domain name with

Comment first then view it after your comment is approved. Join QQ Group to display all hidden texts.

That's it.

3. Whitelist

At present, this CDN is in the testing stage, you need to comment or email to inform the domain name, this site will add it to the referrer whitelist within 3 days.
For the convenience of developer testing, this CDN allows empty referrer access.

4, speed comparison

I found the addresses of the above CDNs, took a certain package as an example, and measured the speed on the dial-test website.

BOCE is a free national dial-up test platform, and you can get 1,000 wave points when you register:
https://www.boce.com/?k=5ATSPlgIk2

4.1, CloudFlare

Test Results:
https://www.boce.com/

It can be seen that the access speed of CloudFlare in mainland China is as slow as ever, and there is even an access timeout in some areas.

4.2, BootCDN

Test Results:
https://www.boce.com/

It can be seen that although BootCDN uses domestic nodes, the speed is still uneven.

4.3, JsDelivr

Test Results:
https://www.boce.com/

Although JsDelivr has been cancelled for the record, it is still the best performing one. The access speed in most areas is similar to or even slightly faster than this CDN.

5. Summary

Originally, I wanted to use Tencent Cloud COS object storage to store the full Cdnjs library and use Tencent Cloud CDN for acceleration, but the price was too unacceptable.
So I used a high-performance cloud hard disk + reverse proxy cache + BBR to save the 300G data, but I didn't expect the speed to be very fast.

At present, this site uses its own static CDN+JsDelivr. Recently, all the required resources have been migrated to Tencent Cloud COS, and the speed is being tested and compared.

Breaking news: Qingbei technology front-end CDN released!

https://blog.tsinbei.com/en/archives/243/

Author
Hsukqi Lee
Posted on

2022-03-20

Edited on

2022-07-28

Licensed under

CC BY-NC-ND 4.0

Comments

Name
Mail
Site
None yet