WeChat CloudRun

[WeChat CloudRun](https://cloud.WeChat.qq.com/CloudRun is a cloud native fully managed container back-end cloud service for developers, supporting the hosting of any language and frameworkwork container applications, after the creation of the environment can enjoy the automatic expansion of the container resources, users can be code-oriented/Mirror and other ways to use, free server free operation and maintenance, can be more focused on their own business. Upload from code to CI/CD pipeline deployment released, cloud hosting provides full-link, low-cost, enterprise-class cloud native solutions, and has the following advantages & features:

Advantages & Features Explaination
Natural right Access to User Information Directly in Container Without Authentication openid, unionid (more](./wxinfo.md))
Arbitrary language/framework Can use any language and frameworkwork development, can achieve smooth business migration to the cloud development
Resident operation In-container listening requests, each instance is permanently running
Automatic expansion Single-instance multiple concurrency and automatically increase or decrease the number of instances depending on the load
Shrink to 0 Without traffic, the number of instances can be reduced to 0, so that 0 cost
20S Expansion Burst scenario supports rapid expansion in 20s to support business needs
Smooth migration No need to retrofit/Restructure existing business, smooth migration to the cloud development and enjoy the advantages of WeChat natural authentication, high availability, automatic elastic expansion and shrinking capacity
Easy to use No need to understand container complex concepts, free domain name configuration, Mini Program / Web side uses SDK cloud.callContainer One line of code
Fine-grained specifications Ultra-fine granularity resource control, minimum specification 0.25Core 0.5G
Message Push Configure a cloud hosting service to receive all types of messages
Specify grey scale New version directed greyscale to designated personnel for experience testing
assembly line With CICD pipeline capability, supports multiple trigger modes

Product Features

image-20210518143121733

Underlying architecture

WeChat CloudRun vs. Server

Compared with server resources, WeChat cloud hosting has flexible scaling, environment isolation and monitoring log capabilities.

Modular The server Cloud Hosting
security Public network exposed interface WeChat private agreement
Authentication rights Self - evaluation Exemption
Environmental isolation Unsupported Support
Mode of deployment Code deployment Code deployment/Mirror deployment
Version Grayscale Self-built Support
Load access Self-built data stream
Elastic expansion Unsupported Support
Monitoring alarm Self-built service/Version Dimensions
Log service Self-built/Third party Support
cost Pre purchase Per actual dosage, per second
Resilience Self-built Tri-campus deployment

WeChat CloudRun vs. Kubernetes

Service-oriented development rather than resource-oriented development without much understanding of container concepts, complex configuration in the cloud, Support reduced volume to 0 to achieve no process when 0 cost, private deployment, easy to migrate, low development cost, high concurrency major consumption low cost.

Modular Kubernetes Cloud Hosting
Object Oriented service Resources
security Public network exposed interface WeChat private agreement
Authentication rights Self - evaluation Exemption
Environmental isolation buy/Management node Support
clan/Computing node Self-purchase/Manual management No perception
Version Grayscale Self-build (complex way) Support
Load access Configure LB data stream
Elastic expansion Self-built Support
Shrink to 0 Self-built Support
Monitoring alarm Self-built Support
Log service Self-built/Third party Support
cost Node Server Granular Billing Per actual dosage, per second

Comparison between WeChat CloudRun and Cloud function

Cloud hosting can be seen as a high-order version of cloud functions, more free and flexible, support arbitrary language, arbitrary frameworkwork, permanent operation, but also has the cloud functions of WeChat natural authentication and other advantages.

Modular Cloud function Cloud Hosting
Request concurrent Single instance single concurrent, multiple concurrent automatically pull up multiple instances processing Single instance multiple concurrency, automatically pull up multiple instances when high load
language/framework Development language and frameworkwork support is limited Any language, any frameworkwork
Problem localization Easy to locate Relatively flexible and relies on custom
Resident operation Unsupported Support
Log monitoring Based functions Based on service version
Version Grayscale Support greyscale by traffic Support Pro rata to traffic/Greyscale by URL parameter
Elastic expansion and contraction capacity Support Support
External services Mini Program, Web, HTTP Mini Program, Web, HTTP
Hands-on difficulty simple medium
Billing method Billed by request volume, number of requests and per call generated by GBS Run by container consumed CPU, memory, out-of-network traffic generated by service, service build time
Natural right Free Authentication Rights Access openid And other information Free Authentication Rights Access openid And other information
Cloud calls Maintenance-free access _ token, Session _ key, authentication free call to server-side interface Maintenance-free access _ token, Session _ key, authentication free call to server-side interface