Mobile Development 15 min read

Deep Practice of Agile Development and Dynamic Updates in the Alipay App Architecture

This article details the evolution of Alipay's mobile architecture into a super‑app, explains the engineering and business complexity challenges, describes the layered framework, micro‑application and service mechanisms, the role of mini‑programs, agile release processes, dynamic hot‑fix techniques like AndFix, and how the mPaaS platform externalizes these capabilities.

AntTech
AntTech
AntTech
Deep Practice of Agile Development and Dynamic Updates in the Alipay App Architecture

Author Introduction : Gu Tang, responsible for the Alipay framework and components delivered via the mobile development platform mPaaS, shares the theme of agile development and dynamic updates within the Alipay app.

Alipay App Architecture Evolution : From a simple tool‑type app to a platform‑type and now a super‑app, Alipay has moved toward service‑oriented, modular development, supporting multiple application ecosystems (native modules, offline packages, mini‑programs), openness, dynamic updates, high availability, performance, and sensitivity.

Engineering Challenges : Rapid business and team growth leads to exponential increase in modules and users, requiring a flexible, open architecture and a super‑app operation system.

Technical Challenges from Business Complexity :

Higher basic capability requirements (e.g., high‑accuracy QR‑code scanning, push notification reliability).

Mobile security for a financial‑grade app.

Emergency rapid fixes and dynamic updates.

Performance and environment concerns (startup time, battery, network, low‑end devices).

Multi‑app ecosystem enabling external partners via mPaaS.

Current Architecture State : Five layers from bottom to top – Container layer, Component layer, Framework layer, Service layer, and Application layer.

Multiple Framework Support : Native development framework, Kylin H5 framework, and mini‑program framework, all built on a flexible OSGi‑inspired modular system.

MicroApplication and Service : Each bundle is treated as a small app (MicroApplication) with lifecycle callbacks and global routing; Service provides framework‑level interfaces similar to singletons but managed by the framework.

Nebula (similar to PhoneGap/Cordova) offers H5 hybrid development with offline‑package mechanism, unified UC kernel, and performance optimizations.

R&D Process : Development (create small bricks), Testing (verify), Release (release manager approves bricks), and high‑efficiency delivery via parallel development and dynamic updates.

Agile Release and Stability Assurance : Decoupled interfaces, gray‑release strategies (whitelist, time window, version, device), monitoring for crashes and performance, and dynamic hot‑fixes.

AndFix Hot‑Fix : An Android native hot‑fix solution using method‑pointer replacement, providing small patches and real‑time effect; complemented by dexPatch, instantRun, and iOS solutions like JSPatch.

Multi‑Layer Repair Technology : Combining native method‑level fixes, class‑level patches, and other strategies to handle diverse scenarios.

mPaaS External Output : All the discussed technologies are packaged into components (mobile analytics, push, hot‑fix) on the mPaaS platform for external developers.

Agile Developmentmobile architecturehotfixmPaaSDynamic UpdateAlipaymicroapps
AntTech
Written by

AntTech

Technology is the core driver of Ant's future creation.

0 followers
Reader feedback

How this landed with the community

login 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.