Zhidaily AI · Intelligence · Daily
Zhidaily
Issue 15 · November 14, 2026 · Sat
Today's stories
22 stories · 9 companies
Home / November 14, 2026 / What It Takes to Build Mobile Infrastructure at Scale
← Back
Guide News Score78

What It Takes to Build Mobile Infrastructure at Scale

InfoQ China Kirill Sokolov · RSS · infoq.cn
Nov 13 · 21:00 Read the original ↗
01Summary

Most discussions of mobile apps focus on UI, frameworks, and design systems. But after six years on a large e-commerce platform with tens of millions of monthly active users, the author argues that what determines whether an app runs smoothly, ships often, and stays stable at scale is not the app itself but the infrastructure behind it. Before the gateway existed, the app knew every downstream service, made multiple calls per screen, merged responses on the client, evaluated feature flags locally, and handled each service's error modes separately.

02Background

Most discussions of mobile apps focus on UI, frameworks, and design systems. But after six years on a large e-commerce platform with tens of millions of monthly active users, the author argues that what determines whether an app runs smoothly, ships often, and stays stable at scale is not the app itself but the infrastructure behind it. Before the gateway existed, the app knew every downstream service, made multiple calls per screen, merged responses on the client, evaluated feature flags locally, and handled each service's error modes separately.

03Solution

The author's team built a gateway layer between all mobile clients and the platform's hundreds of backend services. It preprocesses data so mobile developers don't need to understand inventory, pricing, delivery, recommendations, and payments, and it absorbs logic that used to live in the app: data transformation, feature-flag evaluation, response aggregation, and error handling. The app now makes one request per screen and receives a preformatted payload. The author reports that on mid-range Android devices, which make up about 60% of the user base, product detail pages rendered in 2.8 seconds before the gateway, with roughly 1.1 seconds of network time and 0.9 seconds of client-side transformation; cold start had quietly passed 4 seconds, and the APK grew about 2 MB per quarter. The gateway adds a hop of 5–15 ms within the same data center, but the author says eliminating 4–6 mobile network round trips more than compensates. The tradeoffs are real: the gateway becomes a critical dependency with a 99.99% availability target, and it can turn into a monolith unless screens are declared in configuration files rather than code. To keep team boundaries workable, mobile teams define their own screen configurations while the gateway team owns the runtime. The author chose a hybrid backend-driven UI model: the server controls screen structure, ordering, visibility rules, and experiment variants, while the app keeps rendering control. Pure server-driven UI offers maximum control but demands a mature component library and strict versioning; a pure data gateway is simpler but doesn't solve the release-cycle bottleneck for layout changes. Migration ran in stages: shadow mode comparing responses, canary at 1% traffic for at least 48 hours, gradual rollout to 5%, 25%, 50%, and 100% over one to two weeks with automatic rollback if error rates exceeded baseline by 0.5 percentage points, and removal of old paths after four weeks at full traffic. The hardest problems were long-tail production edge cases that no pre-release environment could reproduce. For reliability, the team built a dependency criticality matrix classifying each downstream call as required, recommended, or optional, co-owned by engineering and product, so on-call engineers don't make product judgments at 3 a.m.

04Takeaway

The author's core thesis is that the mobile gateway is the layer that determines app speed, release velocity, and failure behavior, and it should be treated as a product with users, requirements, and long-term investment rather than as plumbing. Builders should audit where business logic lives, start with the screens that change most often, invest in observability before migrating, and define degradation behavior collaboratively before an incident forces the question.