Ever since I migrated my blog to Hugo, this pure-static deployment approach has become increasingly addictive—so much so that for many local scratch documents, I lean toward spinning up a static site service just to get a better reading experience.
But for a blog, some services inevitably involve a backend—the view count mechanism, for example.
I used to rely on Busuanzi as the counting service, but lately it has been in an abnormal state. After all, as a free third-party service with no quality guarantee, it’s hard to be too harsh on it. Still, running into problems is unpleasant, so I started thinking about building my own backend service.
There are actually quite a few ways to host a backend server these days—Edgeone offers Edge Functions, and Cloudflare has similar Worker and KV storage services. But these services do have limitations; for example, if I want a post list that displays view counts, or even sorts by view count, it’s not easy to pull off.
Fortunately, I was already using Alibaba Cloud’s Serverless and PostgreSQL database, so additionally supporting the blog service wouldn’t add much overhead. So I had AI vibe a backend, and that’s how the current blog backend came to be.
With the backend in place, the frontend encryption I’d built earlier could be replaced, so I switched to backend encryption to improve security.
Still, per the plan, it will remain a lightweight backend design—meaning even if the backend server goes down completely, the core blog experience won’t be much affected.