Previous blogs have described how to use Hexo to build a personal blog, but I won’t cover it here. So how can we deploy a personal blog to be highly available and cost-effective?

  • The best way to save money

    In the figure, we can see the purple path deployment, deploying the Hexo blog directly to GitHubPages, and then configuring the custom domain name to have a blog with its own personalized domain name, which does not cost a cent.

    disadvantages

    Since GithubPages refuses baidu crawler crawling, then the blog deployed in GithubPages cannot be searched on Baidu, which is not conducive to SEO or personal popularity, so you can only entertain yourself.

  • Highest available mode

    To change the shortcomings of the above methods, I added CDN acceleration, here I use the CDN acceleration of The cloud, the configuration mode is also mentioned in the previous blog, after adding CDN, we have CDN nodes for caching, CDN nodes can be captured by spiders, and can speed up access, when GithubPges crashed, Short time will not be abnormal and other advantages.

    disadvantages

    The domain name utilization is not high. Multiple domain names cannot be configured for the blog, and the blog scalability is not high.

  • The most expensive way

    To overcome the shortcomings of the above methods, we purchased the ECS of Aliyun, configured an API gateway (Kong) in THE ECS, used Kong to distribute domain names, and deployed some self-extended APIS in the ECS for the use of our own blogs.