Operations 11 min read

How a Mini-Game Scaled to 100M DAU: Architecture, Ops, and Security Lessons

This article examines how the viral mini‑game "Sheep..." overcame its initial 5,000‑QPS bottleneck and scaled to over 100 million daily active users by redesigning its architecture, implementing cloud‑native auto‑scaling, enhancing operational monitoring with CLS, and fortifying security with WAF.

Tencent Tech
Tencent Tech
Tencent Tech
How a Mini-Game Scaled to 100M DAU: Architecture, Ops, and Security Lessons

Architecture Upgrade

When the mini‑game "Sheep..." (羊了个羊) went viral, its original architecture—single load balancer, a few PODs, Redis for hot data and MongoDB for persistence—could only handle 5,000 QPS, causing crashes as DAU surged to over 100 million.

After analysis, the team and Tencent Cloud upgraded the system in three directions: compute scaling with TKE Serverless (automatic vertical and horizontal pod expansion), operational improvement using Cloud Log Service (CLS) for real‑time monitoring and alerting, and security hardening with WAF and high‑defense packages to block malicious bot traffic.

Initial architecture diagram
Initial architecture diagram

Technical Practice: Scaling, Operations, Security

Scaling was achieved by deploying the game on Tencent Cloud TKE Serverless, enabling automatic scaling of containers based on CPU metrics, which added nearly ten thousand cores within seconds during traffic spikes.

Operations were strengthened by integrating CLS for log collection, metric dashboards, and panic alerts, allowing rapid detection of performance issues and quick remediation.

Security was reinforced by inserting a load‑balancer‑type WAF with bot‑behavior management, protecting the service from massive malicious traffic that previously saturated bandwidth and CPU.

WAF protection diagram
WAF protection diagram

The combined upgrades allowed the game to sustain multiple traffic peaks, keeping the system stable even when daily active users exceeded 100 million, demonstrating the importance of high performance, high availability, and high scalability for rapidly growing mini‑games.

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.

cloud-nativeSecurityscalinggame-development
Tencent Tech
Written by

Tencent Tech

Tencent's official tech account. Delivering quality technical content to serve developers.

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.