Optimizations and Services

Optimizations applied to this site

Building process

The whole site is make up with a few static pages, generated by hugo. It is hard for a Golang user to comment on whether is right to use go modules to manage blog themes for hugo or not, along with the Golang environment requirements for hugo bin to execute. At least the building process is very fast. Similarly with many other hugo powered sites, the building process of yezhisheng.me is also triggered by Github actions on push to the repo. Then content is delivered by CDN to end users like you.

CDN

After compared with Vercel with Cloudflare, I finally chose Cloudflare for wide IPv6 support and fast response time in CERNET, in mainland China. However, Vercel has more advantages in building pipeline (less restrictions compared with cloudflare pages) and higher quality for other ISPs in mainland China. Vercel also provides automatic SSL cert renewal by LetsEncrypt, which is also convenient for setting up a CAA record. Cloudflare is quite familiar with me for continous usage for over 5 years. It is also very easy to leverage CNAME accelartion by simple click.

Another important thing needs to mention is Cloudflare pages is also enabled to directly mirroring html files from the original repo of Github pages, which should amortize the back-to-origin overhead to sub-milliseconds.

Meanwhile, things may be a little different in mainland China. Either the OSS or the CDN with HTTPS is not free for almost all cloud providers, including Aliyun, Tencent Cloud and Qiniu Cloud, not to mention AWS China and Azure China. I finally chose Upyun for free HTTPS CDN along with http3 support, in the compromise of less CDN hosts and no https rewrites. The origin server is set to Github pages directly.

Current service

Benefit from the great developing experience and easy usage of Cloudflare, serveral services are gradually coming to live with no additional cost, supported by Cloudflare CDN and Cloudflare workers.

Reverse proxy

Other

Zhisheng YE
Zhisheng YE
DSc in Computer Architecture

My research interests include distributed systems, machine learning systems and resource management, etc.

Related