Recently, I had a requirement to revamp the company's official website. We needed to migrate the website from a low-code website building tool on Alibaba Cloud to our own service in order to improve SEO/GEO.
Three methods for deploying a static website
- The first step is to put static resources on a cloud server, then set up a reverse proxy, and finally place an SLB load balancer in front of it.
- The second method is to directly host the official website on a CDN.
- The third method is to find a fully managed serverless service, which is the most worry-free option.
So I started looking for domestic serverless services. I had used Vercel overseas before, which was quite convenient, so I tried to find alternatives to Volcano and Alibaba in China.
Alibaba Cloud's Serverless
Alibaba Cloud offers many serverless products, including Cloud Functions, Functions & Pages, and Function Compute. At first glance, they all seem to offer similar functionalities, which is quite confusing.
Function calculation
- Its sales method is somewhat similar to ECS, seemingly packaging ECS products into pay-as-you-go functional products.
- Containerized deployment is based on ACR, but no infrastructure such as servers and containers is required.
cloud functions
- Its definition is equivalent to a backend service function of BaaS, and its functionality looks very similar to Supabase's edge function.
- However, it belongs to a sub-function of the mobile development platform, and it seems to be limited to mobile development use.
Functions and Pages
- This product line belongs to Edge Security Acceleration (ESA).
- It can automatically package and accelerate the code based on my uploaded code. It can accelerate the code within mainland China as well as globally.
- It supports the entire Next.js technology stack, including CSR and SSR modes.
- It comes with a fairly complete CDN configuration, including SSL certificates, HTTPS forced redirect configuration, etc.
- You need to apply through the backend to activate it.
Volcano Engine Serverless
Pages
- Located in "Content Distribution Service - Pages", it is currently in the internal testing phase and requires an application to activate.
- You can upload files or connect to a GitHub repository for deployment.
Function service
- Standard serverless products can be deployed as function services by uploading code.
- It can be integrated with API gateways and deployed to the public internet.
- It supports the entire Next.js technology stack.
- It can be deployed via a VS plugin, which is very convenient.
Summarize
Overall, I recommend Alibaba Cloud's "Functions & Pages" and Volcano Engine's function service for deploying purely static front-end websites.