Cloud Engineering Practices Behind a Large Language Model Reaching 10 Million Daily Active Users
This article examines the cloud-side engineering practices behind large-scale LLM services, using the reported milestone of 10 million daily active users as a starting point. It explains why sparse Mixture-of-Experts (MoE) architectures have become the main route to lower inference cost, how to design capacity and elasticity for high-concurrency chat traffic, and how to govern token-based cost through context trimming, prompt structuring, tiered model routing, and usage attribution. It also covers enterprise adoption factors such as identity and permission inheritance, data boundaries, office-suite integration, and industry templates, plus guidance on choosing between open and closed models and the cloud infrastructure categories that support these workloads. The article includes illustrative Python snippets for routing, load balancing, rate limiting, and model abstraction. Readers will find practical, vendor-neutral design ideas they can apply immediately.
1. A Technology Signal from Recent Industry Data
A recently disclosed set of figures from a cloud vendor drew attention: an AI coding and office-collaboration tool passed 10 million daily active users, an open-source sparse-architecture model set a new high for token calls on its first day of release, cloud business revenue grew 35% year over year, and the server fleet exceeded two million machines. These figures come from the vendor’s own reporting and should not be treated as technical conclusions on their own, but they point to three reusable engineering facts:
- Large models have moved from “usable in demos” to “high-frequency daily use.” Ten million daily active users means peak concurrency and long-tail traffic exist at the same time.
- Cost per inference has become the decisive variable for whether a product can scale, which is why sparse (MoE) architectures have become the mainstream choice.
- Model capability is only the entry ticket; enterprise adoption depends on how deeply the model integrates with existing office ecosystems, identity systems, and permission models.
The rest of this article expands on these three points with actionable design ideas and illustrative code.
2. Why Sparse Architectures Have Become the Main Cost-Reduction Path
In a dense model, every parameter is activated in every forward pass, so compute grows linearly with parameter count. A Mixture-of-Experts (MoE) architecture splits the feed-forward layers into multiple expert subnetworks, and a router network selects a few experts per token. This decouples “total parameters” from “activated parameters”: total parameters determine knowledge capacity, while activated parameters determine the compute cost of a single inference.
Three things deserve attention in practice:
- Routing balance. If routing collapses onto a few experts, the rest are never trained and capacity utilization drops. A common fix is to add a load-balancing auxiliary loss to the training objective.
- Communication overhead. Expert parallelism puts all-to-all communication on the critical path. When inter-node bandwidth is insufficient, the compute savings from sparsity are consumed by communication.
- Memory versus throughput trade-offs. Total parameters still have to reside in GPU memory, so “small activated parameters” does not mean “small memory footprint.” Capacity planning must estimate memory from total parameters and compute from activated parameters.
A simplified sketch of routing and the auxiliary loss:
import torchimport torch.nn.functional as Fdef moe_forward(x, experts, router, top_k=2):# x: [num_tokens, hidden]logits = router(x) # [num_tokens, num_experts]weights, idx = torch.topk(logits, k=top_k, dim=-1)weights = F.softmax(weights, dim=-1) # normalize over selected experts onlyout = torch.zeros_like(x)for k in range(top_k):eid = idx[:, k]for e in range(len(experts)):mask = eid == eif mask.any():out[mask] += weights[mask, k].unsqueeze(-1) * experts[e](x[mask])return outdef load_balance_loss(router_logits, top_k=2):# Push the selection probability of each expert toward uniform to avoid routing collapsep = F.softmax(router_logits, dim=-1).mean(dim=0) # average probability of being selectedf = torch.bincount(router_logits.topk(top_k, -1).indices.flatten(),minlength=router_logits.size(-1)).float()f = f / f.sum()return router_logits.size(-1) * (p * f).sum()
Note that the above is a teaching-oriented pseudo-implementation. A real system also introduces capacity factors, token-dropping policies, expert-parallel partitioning, and operator fusion, so you cannot infer the internal parameters of any specific model from it.
3. Capacity and Elasticity Design for 10-Million-DAU Services
High-concurrency conversational services show a “double peak plus long tail” traffic pattern: concentrated during working hours, with spikes triggered by marketing campaigns or version releases. Capacity planning should be layered:
- Access layer: stateless and horizontally scalable, handling authentication, rate limiting, and canary traffic splitting.
- Scheduling layer: queue prioritization by input length, prefix-cache hit, and SLA tier, so long requests do not block short ones.
- Inference layer: separate the compute-intensive prefill phase from the memory-bandwidth-intensive decode phase, and deploy them independently with separate autoscaling when conditions allow.
- Cache layer: prefix caching pays off significantly for fixed system prompts and code context; semantic caching needs a similarity threshold and an invalidation policy to prevent incorrect reuse.
Rate limiting and graceful degradation should be designed as a pair. A token bucket controls the ingress rate, a queue limit controls queuing latency, and after a timeout the service returns a readable degraded result instead of waiting indefinitely:
class TokenBucket:def __init__(self, rate, capacity):self.rate, self.capacity = rate, capacityself.tokens, self.last = capacity, 0.0def allow(self, now, need=1):self.tokens = min(self.capacity, self.tokens + (now - self.last) * self.rate)self.last = nowif self.tokens >= need:self.tokens -= needreturn Truereturn False
For observability, beyond standard QPS, error rate, and latency percentiles, you should also collect the per-request token-count distribution, cache hit rate, actual batch size, and queueing time. These metrics are the basis for later cost attribution.
4. Token Cost Governance: Breaking the Bill Down to Something Optimizable
Token-based billing turns cost from “number of machines” into “usage,” so governance levers change accordingly:
- Trim the context. In retrieval-augmented scenarios, cap the number of retrieved chunks and the chunk length; deduplicate and rerank before sending to the model.
- Structure the prompt. Put the stable part first to hit the prefix cache, and the dynamic part last.
- Tiered model routing. Send simple intents to a small model or rules, and complex reasoning to a large model, using a confidence score or classifier to split traffic.
- Constrain output length. Explicitly cap the maximum generation length to avoid unbounded output inflating cost.
- Usage attribution. Tag usage by business line, tenant, and API to build an auditable cost view.
A minimal working skeleton for tiered routing:
def route(prompt, small_model, large_model, threshold=0.7):score = classify_complexity(prompt) # 0~1, closer to 1 means more complexif score < threshold:return small_model.generate(prompt, max_tokens=512)return large_model.generate(prompt, max_tokens=1024)
5. Enterprise Adoption: Ecosystem Integration and Industry Coverage
The core of an enterprise purchasing decision is not benchmark scores but whether the model can be embedded into existing workflows. Reusable integration points include:
- Identity and permission inheritance. Reuse the enterprise’s existing account system and org structure so that “if a document is visible, it can be queried,” avoiding a separate permission system.
- Data boundaries. Define retention policies for training and inference data; for sensitive scenarios, use dedicated deployment or keep data within its original domain.
- Office-suite coupling. Provide capabilities in place within documents, spreadsheets, meetings, and tickets to reduce context switching.
- Industry template accumulation. Manufacturing, retail, finance, and government scenarios differ widely and need to be reused through templates and knowledge bases rather than custom-built each time.
Industry coverage can be measured with a simple metric: number of industries covered multiplied by average active tenants per industry. It reflects a product’s replicability better than customer count alone.
6. Model Openness and Ecosystem Positioning
Vendors generally adopt a dual-track strategy of “closed-source flagship plus open-source usable version”: the open-source version drives developer reach and on-premises needs, while the closed-source version handles hard tasks and commercial monetization. Advice for technology decision-makers:
- Use your own evaluation set rather than public leaderboards, covering real corpus and long-tail cases in your industry.
- Pay attention to inference-side ecosystem maturity, including quantization options, inference-framework support, and hardware compatibility.
- Assess how license terms affect commercial use and redistribution.
- Reserve an abstraction layer that keeps models replaceable, so business code is not tightly bound to a single model interface.
class ModelClient:def generate(self, prompt, **kw): raise NotImplementedError# Business code depends only on the abstraction; switching implementations does not change callersclass LocalOpenModel(ModelClient): ...class HostedModel(ModelClient): ...
7. The Supporting Cloud Infrastructure
What supports the above is usually a set of general cloud categories rather than a single product: container platforms host elastic inference replicas, object storage holds models and datasets, message queues smooth request spikes, logging and monitoring with alerting form an observability loop, and private networking plus key management safeguard data boundaries. When selecting services, look at heterogeneous compute scheduling, image distribution and cold-start latency, storage throughput and proximity access, and cost predictability under pay-as-you-go billing.
8. Conclusion
Behind 10 million daily active users and a first-day surge in token calls are four combined threads: sparse architectures, layered inference serving, attributable cost, and enterprise ecosystem integration. For developers, three things can be started immediately: build your own evaluation set, wire cost metrics into monitoring, and design a replaceable abstraction for the model layer. None of these depend on any specific vendor, yet they determine how much freedom you have for future evolution.
