极光移动端架构演变之路

Cartel

2017/10/18 发布于 技术 分类

极光移动端架构演变之路

QCon2017  QCon 

文字内容
1. pY www.jiguang.cn S
6. U Part 01 t • • p Part p a 02 g g • • • © JIGUANG. Confidential. All Rights Reserved. Part N 03 g • • g rg g Part 04 •
8. - S S 2 / j I I © JIGUANG. Confidential. All Rights Reserved. I I I
9. - 25 J 25J 50 J 50J APP 90 90 7.5 90 % 90%
10. 2 P C iAPP I S JPush 1 JSMS JMessage 500,000 90 . JShare 7.5 + JAnalytics 30 /
11. • • • g
12. / / —— IM SDKI 1. 2. JPush JMessage Network Network Protocol Protocol Thread Thread © JIGUANG. Confidential. All Rights Reserved. 3. 4. v l v
13. / JPush / JAnalytics —— JMessage …… …… . @ 8 IK . @ 8 K JCore • • © JIGUANG. Confidential. All Rights Reserved. I • s I o l g m 2 /
14. / Jxxx —— Business Business Business …… Business JCore Common business Infrastructure Thread Channel HTTPS Register Device Log Cache Protocol Crash …… © JIGUANG. Confidential. All Rights Reserved.
15. / • • • • • • ANR / • • K N g I c © JIGUANG. Confidential. All Rights Reserved. K N
16. • rg • g
17. / —— / (1/5) / • • t r tip r D t-1
18. / / —— (2/5) e • release • . Activity hook .
19. / r • • —— tIP / (3/5) t CC TCP g I E7 E7 r D D D D D EC:
20. / —— / (4/5) E7 E7 C E7 E7 E7 :DD 7 C D E7 E7
21. / / —— K r (5/5) K r C D K CC -1 D D :DD 7 C D
22. / / —— (1/5) K / K 1K 20K 100K 200K get wrap 301 337 290 293 wrap data 733 3822 14290 28540 partitions 429 3109 11470 21130 upload tmp 36887 49643 232795 460480 getHistories 1025 962 789 869 getTmpFiles 487 278 427 311 39862 58151 260061 511623 12323 25151 78448 179018 121700 279200 844900 1561900 8 JCore e K 0 :DD C K K K K © JIGUANG. Confidential. All Rights Reserved. :DD C
23. / —— / (2/5) SERVER CONN MANAGER APP1 APP1 IPC IPC push process push process DEVICE 1. app h 2. app © JIGUANG. Confidential. All Rights Reserved. tcp conn tcp conn app1 conn app2 conn
24. / / —— (3/5) SERVER CONN MANAGER APP1 IPC tcp conn push process DEVICE GROUP MANAGER device1app1 device1 conn group device1 appn devicen conn group IPC APPn IPC tcp conn push process DEVICE1 1. W app ( s )I app K c 2. app W app © JIGUANG. Confidential. All Rights Reserved. I s W appI
25. / / —— (4/5) SERVER CONN MANAGER APP1 device1 conn tcp conn IPC push process IPC APPn device2 con DEVICE1 1. 2. app n ( iW )I WI W r 3. appN © JIGUANG. Confidential. All Rights Reserved. WI u ROM
26. / / —— (5/5) CONN MANAGER APP1 IPC push process tcp conn DEVICE GROUP MANAGER device1 conn group device1app1 push IPC APPn IPC push process tcp conn PUSH TASK devicen conn group device1 appn SERVER vendors push server vendors push 1. DEVICE1 g © JIGUANG. Confidential. All Rights Reserved. d I vendors push api SDK
27.
28. 5 ( 38 :5D( 5 ( P © JIGUANG. Confidential. All Rights Reserved. 8 ) E5