叶亚明&刘普功 携程mobile架构演化
DESCRIPTION
www.trinea.cnTRANSCRIPT
![Page 1: 叶亚明&刘普功 携程Mobile架构演化](https://reader033.vdocuments.pub/reader033/viewer/2022052205/5593afef1a28ab9c078b45d1/html5/thumbnails/1.jpg)
![Page 2: 叶亚明&刘普功 携程Mobile架构演化](https://reader033.vdocuments.pub/reader033/viewer/2022052205/5593afef1a28ab9c078b45d1/html5/thumbnails/2.jpg)
![Page 3: 叶亚明&刘普功 携程Mobile架构演化](https://reader033.vdocuments.pub/reader033/viewer/2022052205/5593afef1a28ab9c078b45d1/html5/thumbnails/3.jpg)
Ctrip Mobile Architecture Evolu2on �
Eric Ye PuGong Liu
Xiaolu Huang�
![Page 4: 叶亚明&刘普功 携程Mobile架构演化](https://reader033.vdocuments.pub/reader033/viewer/2022052205/5593afef1a28ab9c078b45d1/html5/thumbnails/4.jpg)
Eric Ye CTRIP Senior Tech VP
PuGong Liu CTRIP Senior Architecture
Xiaolu Huang CTRIP Senior Architecture
![Page 5: 叶亚明&刘普功 携程Mobile架构演化](https://reader033.vdocuments.pub/reader033/viewer/2022052205/5593afef1a28ab9c078b45d1/html5/thumbnails/5.jpg)
Agenda�
• Demo • Ctrip Mobile Architecture Overview • Ctrip Mobile Architecture Evolu2on – H5 decoupling – App decoupling – Tes2ng Environments decoupling
• Gains & Takeaways
![Page 6: 叶亚明&刘普功 携程Mobile架构演化](https://reader033.vdocuments.pub/reader033/viewer/2022052205/5593afef1a28ab9c078b45d1/html5/thumbnails/6.jpg)
Demo �
• Demo
![Page 7: 叶亚明&刘普功 携程Mobile架构演化](https://reader033.vdocuments.pub/reader033/viewer/2022052205/5593afef1a28ab9c078b45d1/html5/thumbnails/7.jpg)
Mobile Architecture 1.0 – Pain Points�
• Centralized mobile development Org: – Mismatched product roadmap between mobile
team and business Team – Insufficient business domain knowledge – Product requirements piled up
• Mobile Development Shortages – SPOF – Manual packaging and releasing – Insufficient tes2ng environment
![Page 8: 叶亚明&刘普功 携程Mobile架构演化](https://reader033.vdocuments.pub/reader033/viewer/2022052205/5593afef1a28ab9c078b45d1/html5/thumbnails/8.jpg)
Mobile Architecture V1.0�
![Page 9: 叶亚明&刘普功 携程Mobile架构演化](https://reader033.vdocuments.pub/reader033/viewer/2022052205/5593afef1a28ab9c078b45d1/html5/thumbnails/9.jpg)
Mobile Architecture V2.0�
![Page 10: 叶亚明&刘普功 携程Mobile架构演化](https://reader033.vdocuments.pub/reader033/viewer/2022052205/5593afef1a28ab9c078b45d1/html5/thumbnails/10.jpg)
What was redesigned �
• H5 Decoupling – H5 Site/ H5 Service
• App Decoupling – App / Mobile Service
• Security Enhancement • Automa2on on tes2ng • Automa2on on release�
![Page 11: 叶亚明&刘普功 携程Mobile架构演化](https://reader033.vdocuments.pub/reader033/viewer/2022052205/5593afef1a28ab9c078b45d1/html5/thumbnails/11.jpg)
H5 Decoupling -‐ V1.0�
![Page 12: 叶亚明&刘普功 携程Mobile架构演化](https://reader033.vdocuments.pub/reader033/viewer/2022052205/5593afef1a28ab9c078b45d1/html5/thumbnails/12.jpg)
H5 Decoupling -‐ V2.0 (Front-‐end) �
![Page 13: 叶亚明&刘普功 携程Mobile架构演化](https://reader033.vdocuments.pub/reader033/viewer/2022052205/5593afef1a28ab9c078b45d1/html5/thumbnails/13.jpg)
H5 Decoupling -‐ V2.0 (Back-‐end) �
![Page 14: 叶亚明&刘普功 携程Mobile架构演化](https://reader033.vdocuments.pub/reader033/viewer/2022052205/5593afef1a28ab9c078b45d1/html5/thumbnails/14.jpg)
H5 Architecture Decoupled �
• Decoupling H5 Site and H5 Service • Mobile API Gateway – Service Rou2ng – Real 2me monitor – Bot Blocker – Rate limi2ng and Fuse off – Mul2ple IDC support
![Page 15: 叶亚明&刘普功 携程Mobile架构演化](https://reader033.vdocuments.pub/reader033/viewer/2022052205/5593afef1a28ab9c078b45d1/html5/thumbnails/15.jpg)
Mobile App Decoupled (Client-‐end)�
• App Decoupled – Framework – Business module: Hotel, Flight, Community etc.
• Framework upgraded – Upgrade Mechanism Enhancement – H5 Incremental upgrade – Tes2ng Automa2on – Packaging Automa2on (Android & iOS) – Deployment Automa2on (Android)
![Page 16: 叶亚明&刘普功 携程Mobile架构演化](https://reader033.vdocuments.pub/reader033/viewer/2022052205/5593afef1a28ab9c078b45d1/html5/thumbnails/16.jpg)
Mobile App Architecture 1.0 (Back-‐end)�
![Page 17: 叶亚明&刘普功 携程Mobile架构演化](https://reader033.vdocuments.pub/reader033/viewer/2022052205/5593afef1a28ab9c078b45d1/html5/thumbnails/17.jpg)
Mobile App Architecture2.0 (Back-‐end)�
![Page 18: 叶亚明&刘普功 携程Mobile架构演化](https://reader033.vdocuments.pub/reader033/viewer/2022052205/5593afef1a28ab9c078b45d1/html5/thumbnails/18.jpg)
Mobile App Decoupled �
• Dev teams decoupled – Framework dev team – Business dev (hotel) / business dev (flight) /…
• API / services decoupled • Shared Mobile API Gateway • Automated mobile app release
![Page 19: 叶亚明&刘普功 携程Mobile架构演化](https://reader033.vdocuments.pub/reader033/viewer/2022052205/5593afef1a28ab9c078b45d1/html5/thumbnails/19.jpg)
Tes2ng Environment 2.0 decoupled �
![Page 20: 叶亚明&刘普功 携程Mobile架构演化](https://reader033.vdocuments.pub/reader033/viewer/2022052205/5593afef1a28ab9c078b45d1/html5/thumbnails/20.jpg)
Gains of Mobile Architecture 2.0�
• Domain ownership clarified • Mobile App development speed • APP tes2ng decoupled • Mobile APP releasing efficiency • Robust architecture – Rate Limi2ng – Decoupled problems – Interfering each other is eliminated�
![Page 21: 叶亚明&刘普功 携程Mobile架构演化](https://reader033.vdocuments.pub/reader033/viewer/2022052205/5593afef1a28ab9c078b45d1/html5/thumbnails/21.jpg)
AS of 2014/9
CTRIP APP is #1 Travel APP Sourced from CTCNN, 2014/10/13�
![Page 23: 叶亚明&刘普功 携程Mobile架构演化](https://reader033.vdocuments.pub/reader033/viewer/2022052205/5593afef1a28ab9c078b45d1/html5/thumbnails/23.jpg)
@InfoQ infoqchina