23

叶亚明&刘普功 携程Mobile架构演化

Embed Size (px)

DESCRIPTION

www.trinea.cn

Citation preview

Page 1: 叶亚明&刘普功 携程Mobile架构演化
Page 2: 叶亚明&刘普功 携程Mobile架构演化
Page 3: 叶亚明&刘普功 携程Mobile架构演化

Ctrip  Mobile  Architecture  Evolu2on �

Eric  Ye  PuGong  Liu  

Xiaolu  Huang�

Page 4: 叶亚明&刘普功 携程Mobile架构演化

Eric  Ye  CTRIP  Senior  Tech  VP  

PuGong  Liu  CTRIP  Senior  Architecture  

Xiaolu  Huang  CTRIP  Senior  Architecture  

Page 5: 叶亚明&刘普功 携程Mobile架构演化

Agenda�

•  Demo  •  Ctrip  Mobile  Architecture  Overview  •  Ctrip  Mobile  Architecture  Evolu2on  – H5  decoupling  – App  decoupling  – Tes2ng  Environments  decoupling  

•  Gains  &  Takeaways  

Page 6: 叶亚明&刘普功 携程Mobile架构演化

Demo �

•  Demo  

Page 7: 叶亚明&刘普功 携程Mobile架构演化

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架构演化

Mobile  Architecture  V1.0�

Page 9: 叶亚明&刘普功 携程Mobile架构演化

Mobile  Architecture  V2.0�

Page 10: 叶亚明&刘普功 携程Mobile架构演化

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架构演化

H5  Decoupling  -­‐  V1.0�

Page 12: 叶亚明&刘普功 携程Mobile架构演化

H5  Decoupling  -­‐  V2.0  (Front-­‐end) �

Page 13: 叶亚明&刘普功 携程Mobile架构演化

H5  Decoupling  -­‐  V2.0  (Back-­‐end) �

Page 14: 叶亚明&刘普功 携程Mobile架构演化

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架构演化

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架构演化

Mobile  App  Architecture  1.0  (Back-­‐end)�

Page 17: 叶亚明&刘普功 携程Mobile架构演化

Mobile  App  Architecture2.0  (Back-­‐end)�

Page 18: 叶亚明&刘普功 携程Mobile架构演化

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架构演化

Tes2ng  Environment  2.0  decoupled �

Page 20: 叶亚明&刘普功 携程Mobile架构演化

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架构演化

AS  of  2014/9    

CTRIP  APP  is  #1  Travel  APP  Sourced  from  CTCNN,  2014/10/13�

Page 22: 叶亚明&刘普功 携程Mobile架构演化

Q&A�

Join  us!    email:[email protected]

Thanks �

Page 23: 叶亚明&刘普功 携程Mobile架构演化

@InfoQ   infoqchina