How to use Huawei CDN service
Introduction
Hi ๐๐, In this article, I will show you how to use Huawei CDN. CDN is a technology used by many companies nowadays. We need to use CDN for fast performance and lower latency. In order to use CDN, we must first have a huawei cloud account.
Steps:
๐ After creating your account, you can access the CDN service from the huawei cloud console.
You can see CDN main page ๐
๐ Now we need a domain name. Go to the Domains๐ช
๐ Click Add Domain Name.
๐ Enter domain name
๐ Select Service Type โ Website, File Download, On-demand Service, Whole site
๐ Select Service Area โ Chinese mainland, Global(Chinese_mainland not included), Global
๐ Select Origin Server Address โ IP address, Domain name, OBS Bucket
๐ Our example like that
๐ Service Type โ Website Service Area โ Global(Chinese_mainland not included) Origin Server Address โ Domain name ๐
๐ We need to add the cname record on DNS
๐ Go to DNS service๐
๐ Go to Public Zone and click Create Public Zone
๐ Enter Domain name
๐ Go to the domain name
๐ Click Add Record Set
๐ Fill in the blank
๐ Name
๐ Type โ CNAME Alias Line TTL Value โ CNAME ๐
๐ Go back to CDN service
๐ Enter Domain name
๐ Change the origin server settings
๐ Change retrieval host to Origin server address
Letโs call the static files in your code from cdn.
Letโs go to the domain name to check if your CDN works.
Your request will now be answered by the nearest node and your data will be cached according to the cache rules you set on this node.
๐
Conclusion ๐๐๐ข
In its simplest form, you now use CDN technology in your own product. For detailed CDN usage, donโt forget to check our other articles.
We have completed all the processes, now you have a much faster website than before. You can get a quick response to the cached data via the node without going to the origin server. ๐๐๐