Tencent Cloud Mini Program Solution and Wafer Architecture Overview
Senior Tencent Cloud engineer Zhu Zhan explained the Mini Program solution, detailing its hybrid web‑native architecture, loading strategies, and the evolution from Wafer 1 to the managed Wafer 2 platform that simplifies session, channel, and business services, enabling rapid deployment and integration with WeChat.
Speaker Zhu Zhan, a senior engineer at Tencent Cloud, introduced the Tencent Cloud Mini Program solution. He has a background in backend development and now leads the design and development of the mini‑program solution.
The presentation began with a quick poll on attendees' experience with mini programs, noting the rapid growth of WeChat mini programs since 2017, especially after the release of the popular game "Jump" which spurred a surge in daily active users.
Mini programs are built using two main development modes: web‑based (H5) and native, each with distinct characteristics. Web apps are install‑free and easy to share, while native apps require installation but can leverage device capabilities for better user experience. Mini programs combine the advantages of both: they are install‑free, have near‑native performance, and benefit from WeChat’s social sharing and cross‑platform capabilities.
The architecture of a mini program consists of a view layer (WebView) and a logic layer (AppService) running in separate threads, which avoids UI jank caused by heavy logic processing in traditional web pages. Communication between the two layers is mediated by a bridge that connects JavaScript execution with native system APIs.
Loading mechanisms include cold load (first‑time download from CDN) and hot load (using cached packages). The solution also supports webview pre‑loading to improve perceived performance when switching between pages.
Server‑side challenges for mini‑program developers include session management, authentication, scaling, and handling WebSocket channels. To address these, Tencent Cloud introduced the Wafer solution.
Wafer 1 (released in 2016) provided a session server, channel server, and separate business server, requiring developers to deploy and manage each component themselves. It offered security and extensibility but demanded load‑balancing, certificate management, and server maintenance.
Wafer 2 (released in 2017) simplified the architecture by merging the session and business servers, offering a managed service with automatic SSL provisioning and deeper integration with WeChat. It also provided a one‑click domain, environment provisioning, and SDKs for common functionalities such as OCR, identity verification, and speech‑to‑text.
The operation process demonstrated how to bind a Tencent Cloud account with a mini‑program, upload code via the development tools, and deploy the backend using Wafer 2. The entire setup can be completed in about ten minutes, with demos available for developers.
A Q&A session covered topics such as private‑cloud deployment of channel services, the feasibility of login without a custom server, and a brief comparison between Node.js and PXP, concluding that the choice depends on specific business scenarios.
Tencent Cloud Developer
Official Tencent Cloud community account that brings together developers, shares practical tech insights, and fosters an influential tech exchange community.
How this landed with the community
Was this worth your time?
0 Comments
Thoughtful readers leave field notes, pushback, and hard-won operational detail here.