当前位置:
文档之家› 基于大数据的全球电商系统架构性能优化
基于大数据的全球电商系统架构性能优化
n!
Latency Segment # !
1 !2! 3! 4!
n!
Latency Segment # !
1! 2! 3! 4! n!
Latency Segment # !
3!
a!
Latency (s) !
n
3!
a!
Latency (s) !
3!
n
a!
Latency (s) !
Lpage = Cpage -Cpage
全链 全域
Technology
DNS
请求合并
动态加速
重定向优化
边缘化
tcp优化
cdn调度优化
Baseline
Data !
Monitor
全量
Engineering!
Performance Platform (性能优化平台) Design
1. Web pages, APP, Applications, and Services!
All ! forces!
Picture Credit: !
https://incgames.fi/2011/11/ xl_modern_warfare_3_screenshot_nyc_624.jpg! ! /assets_c/2009/04/war%20roomthumb-376x282-452.jpg
Detail !
pilot project online
Rollout
Shopcart !
Pilot Project Online
List!
Pilot Project Online
Performance Command Platform
Measure
Diagnose
可视 实时
Data !
BizImpact WW Trace
7/13/
Engineering!
理论基础 The Theory
Engineering!
6000 !
!
!
!
!
! !
50%
1 - C!
பைடு நூலகம்
5000
3000
2000
1000
1
4
16
64
256
1024
4096
16384
65536 (ms) !
10%
20%
30%
r(i) rsucc(i) r succ(i) r succ = × Cpage = P segment(i)×Csegment(i)= = rall rall i=1 r(i) i=1 rall i=1
= P segment(i)×[Csegment(
i=1
The entire performance optimization based on the assuming that C(i)<C(j) if i<j, which is intuitivel ! y correct because people don’t want to waste their life on page loading
n n n
4000
40%
60% !
Engineering!
6000 !
!
!
!
!
! !
!
40% 50%
4000
5000
3000
2000
1000
1
4
16
64
256
1024
4096
16384
65536 (ms) !
10%
20%
30%
60% !
Engineering!
Page Performance Loss:Lpage
! ! 0. Event Tracking! ! ! ! ! ! 7. Presentation and Control Logic! ! 3. Offline Performance Data! Analysis! ! ! ! ! ID EventID 8. Reporting ! 9. Monitoring ! A. Alarm !
Domestic
2C!
International
2B!
! Engineering
Cross Border and Local Trade
! Information Cross-! border! Trading ! Platform !
payment !
Consumer ! Logistics !
App native
Baseline
Engineering!
优化实施 Execution
Engineering!
23!
优化-方案
DNS ! 网络! CDN 业内沉淀 多地AliDNS部署! 网络专线! tcp内核优化 区域化部署 动态加速 静态化+异步化 YAHOO 34条 HTTP2.0
anycast
15!
The Solution
home AliDNS SysOps 内部合作 AliCDN Akamai 外部合作 通用方案 度量平台 优化方案 业内沉淀 list 诊断 页面
detail
shopcart
data !
order
ROI
OK
!
end
a
推广
b
7/13/
! Engineering
Performance Battle – Modern Warfare
List
Detail
CD-O, L
D-O!
Order
Store
abort D
CS-SD, LS! SD
StoreDetail
r =r C
c O c D c D
c O
c ' D D O
r
+r C
c SD
' SD O
r
abort D abort SD
r =r (CD O +LD O ) r r =rL ×C
raabort
c a,out
r
a
abort
where:r
abort a
=ra,curPageLoad
requestNextPage=a
ri,in
Engineering!
Site Performance Loss(全站性能损耗) Lsite
CL-D,!LLD
Assuming a site’s traffic flow is the following:
Cpage = P segment(i)×Csegment(i)
i=1
n
C'page = P segment(i)×Csegment(
i=1
n
3i ) a
Psegment!
Csegement!
Psegment!
Csegement!
Psegment!
C’segement!
1! 2! 3! 4!
Engineering!
Why Do We Care Performance?
Relevance Score!
6!
NPS score from AliExpress Spain!
https:///2008/03/ landing-page-load-time-will-soon-be.html
c O ' L D
+r (CSD O +LSD O ) r
abort L
abort c D SD
r
abort L
=rL ×(CL D +LL D) r
r O =rL ×CL D ×CD O +rS ×CS SD ×CSD O r rO Lsite = rO
Engineering!
inPageNum
= =r
i=0 c a,in
×C a = r i
i=0
inPageNum
c i,out
×(Ci a +Li a)
Where rca,in being compensated incoming traffic for the page a; raborta being the bounce traffic for a, rca,out, is the compensated outgoing traffic for page a. !
! 6. Cache! Performance DB! !
!
4. ! Business DB !
! !
! !
2. EventCollection ! !
5. Real-Time ! Data Performance Data Analysis! !
Engineering!
System User Interface
性能趋势
实时
性能区间下的人群占比
离线统计
转化率和性能曲线
Engineering!
Platform Future
实施
home posting list detail shopcat logistic order login shopdesign Order management
Performance Platform(AGP)
inPageNum
1! 1, R1,out ! 0, R0,out !
0!
2!
2, R2,out !
A!
6, ra,in!
A!
8, ra,out !
B!
ra,in =
r r