What We Learned Building a Lightweight Stock Mini‑Program on Tencent Cloud

This article shares the product logic, development challenges, and practical solutions behind the Futu NiuNiu stock mini‑program, highlighting how Tencent Cloud services helped accelerate a lightweight, low‑frequency trading app for Hong Kong and US markets.

Tencent Cloud Developer
Tencent Cloud Developer
Tencent Cloud Developer
What We Learned Building a Lightweight Stock Mini‑Program on Tencent Cloud

Product Logic

The mini‑program was designed from real user scenarios to provide quick, efficient stock information without requiring a full‑blown app. It targets two main user groups: occasional stock watchers who need price updates and low‑frequency traders, and long‑term holders who check portfolio performance infrequently.

Key product goals focus on "low frequency" and "basic services", delivering essential features such as market quotes, individual stock data, news, account management, asset queries, online account opening, and an upcoming trading function.

Development Insights

As one of the first mini‑programs built on Tencent Cloud, the team faced many constraints typical of WeChat mini‑programs:

Code and resources must stay ≤ 1 MB.

The UI stack is limited to five layers; a sixth layer triggers an exception.

HTTP concurrent connections are capped at 10 (previously 5); the 11th request fails.

Mini‑programs cannot navigate outside the environment (no external H5 jumps).

No binary stream read/write API is available.

Key‑value permanent storage is limited to 10 MB.

JavaScript runs on a single thread.

To cope, the team kept iterations small to stay under the size limit, designed UI within five layers, and wrote detailed documentation to avoid prolonged debugging. When an issue could not be solved quickly, they escalated it to the WeChat platform team, which typically responded within 24 hours.

Solution Approach

During design, all constraints were considered. For example, the code size limit led to modular development and aggressive pruning of unused code. The UI layer restriction forced a minimalist interaction design. Rapid development cycles relied on thorough reading of platform documentation and prompt feedback loops with WeChat engineers.

Tencent Cloud Mini‑Program Solution Experience

The overall architecture mirrors the reference architecture on the Tencent Cloud website. The services used include:

Cloud Server

Cloud Load Balancer

Domain DNS

HTTPS Integration

Object Storage

CDN Acceleration

Cloud Redis

Cloud MySQL

Feedback from the backend team highlighted concrete benefits:

DNS management is outsourced, eliminating the need for in‑house DNS servers.

HTTPS certificates are centrally managed, simplifying deployment.

Object Storage provides ready‑to‑use distributed storage.

CDN offers nationwide coverage with a single configuration.

Cloud Redis scales automatically with a single click.

Cloud MySQL supports effortless master‑slave sync, cross‑region deployment, and instant scaling.

Conclusion

The Futu NiuNiu stock mini‑program demonstrates how early adopters can overcome platform limitations by leveraging Tencent Cloud's integrated services. For internet startups, mini‑programs have become an essential bridge between native apps and web pages, and the shared experience aims to help other developers avoid similar pitfalls.

Original Source

Signed-in readers can open the original source through BestHub's protected redirect.

Sign in to view source
Republication Notice

This article has been distilled and summarized from source material, then republished for learning and reference. If you believe it infringes your rights, please contactadmin@besthub.devand we will review it promptly.

case studyfrontend developmentWeChat Mini ProgramProduct DevelopmentTencent Cloud
Tencent Cloud Developer
Written by

Tencent Cloud Developer

Official Tencent Cloud community account that brings together developers, shares practical tech insights, and fosters an influential tech exchange community.

0 followers
Reader feedback

How this landed with the community

Sign in to like

Rate this article

Was this worth your time?

Sign in to rate
Discussion

0 Comments

Thoughtful readers leave field notes, pushback, and hard-won operational detail here.