-
Notifications
You must be signed in to change notification settings - Fork 0
/
秒杀流程高并发.drawio
121 lines (121 loc) · 9.75 KB
/
秒杀流程高并发.drawio
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
<mxfile host="app.diagrams.net" modified="2024-02-02T10:27:42.410Z" agent="Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/121.0.0.0 Safari/537.36 Edg/121.0.0.0" version="23.1.1" etag="LZ-BQGsM1hVuE4DzLFyP" type="github">
<diagram id="ZyGYNFLvbYRJAjUHZrA-" name="第 1 页">
<mxGraphModel dx="746" dy="433" grid="1" gridSize="10" guides="1" tooltips="1" connect="1" arrows="1" fold="1" page="1" pageScale="1" pageWidth="827" pageHeight="1169" background="#ffffff" math="0" shadow="0">
<root>
<mxCell id="0" />
<mxCell id="1" parent="0" />
<mxCell id="4" value="" style="edgeStyle=none;html=1;fontColor=#000000;strokeWidth=2;strokeColor=#000000;" parent="1" source="2" target="3" edge="1">
<mxGeometry relative="1" as="geometry" />
</mxCell>
<mxCell id="2" value="秒杀" style="rounded=1;whiteSpace=wrap;html=1;fillColor=#f0a30a;fontColor=#000000;strokeColor=#BD7000;arcSize=50;fontStyle=1" parent="1" vertex="1">
<mxGeometry x="30" y="140" width="80" height="40" as="geometry" />
</mxCell>
<mxCell id="6" value="" style="edgeStyle=none;html=1;strokeColor=#000000;strokeWidth=2;fontColor=#000000;" parent="1" source="3" target="5" edge="1">
<mxGeometry relative="1" as="geometry" />
</mxCell>
<mxCell id="3" value="立即抢购" style="rounded=0;whiteSpace=wrap;html=1;fillColor=#f5f5f5;fontColor=#000000;strokeColor=#666666;fontStyle=1" parent="1" vertex="1">
<mxGeometry x="30" y="65" width="80" height="30" as="geometry" />
</mxCell>
<mxCell id="9" value="" style="edgeStyle=none;html=1;strokeColor=#000000;strokeWidth=2;fontColor=#000000;" parent="1" source="5" target="8" edge="1">
<mxGeometry relative="1" as="geometry" />
</mxCell>
<mxCell id="35" style="edgeStyle=none;html=1;entryX=0;entryY=0.5;entryDx=0;entryDy=0;strokeColor=#000000;strokeWidth=2;fontColor=#000000;" parent="1" source="5" target="21" edge="1">
<mxGeometry relative="1" as="geometry">
<Array as="points">
<mxPoint x="180" y="315" />
</Array>
</mxGeometry>
</mxCell>
<mxCell id="5" value="登录判断" style="rhombus;whiteSpace=wrap;html=1;fillColor=#f5f5f5;strokeColor=#666666;fontColor=#000000;rounded=0;fontStyle=1;" parent="1" vertex="1">
<mxGeometry x="140" y="50" width="80" height="60" as="geometry" />
</mxCell>
<mxCell id="11" value="" style="edgeStyle=none;html=1;strokeColor=#000000;strokeWidth=2;fontColor=#000000;" parent="1" source="8" target="10" edge="1">
<mxGeometry relative="1" as="geometry" />
</mxCell>
<mxCell id="32" style="edgeStyle=none;html=1;entryX=0;entryY=0.5;entryDx=0;entryDy=0;strokeColor=#000000;strokeWidth=2;fontColor=#000000;" parent="1" source="8" target="21" edge="1">
<mxGeometry relative="1" as="geometry">
<Array as="points">
<mxPoint x="290" y="315" />
</Array>
</mxGeometry>
</mxCell>
<mxCell id="8" value="合法性验证" style="rhombus;whiteSpace=wrap;html=1;fillColor=#f5f5f5;strokeColor=#666666;fontColor=#000000;rounded=0;fontStyle=1;" parent="1" vertex="1">
<mxGeometry x="250" y="50" width="80" height="60" as="geometry" />
</mxCell>
<mxCell id="17" value="" style="edgeStyle=none;html=1;strokeColor=#000000;strokeWidth=2;fontColor=#000000;" parent="1" target="16" edge="1">
<mxGeometry relative="1" as="geometry">
<mxPoint x="470" y="80" as="sourcePoint" />
</mxGeometry>
</mxCell>
<mxCell id="30" style="edgeStyle=none;html=1;entryX=0.5;entryY=0;entryDx=0;entryDy=0;strokeColor=#000000;strokeWidth=2;fontColor=#000000;" parent="1" source="10" target="21" edge="1">
<mxGeometry relative="1" as="geometry" />
</mxCell>
<mxCell id="10" value="获取信号量" style="rhombus;whiteSpace=wrap;html=1;fillColor=#f5f5f5;strokeColor=#666666;fontColor=#000000;rounded=0;fontStyle=1;" parent="1" vertex="1">
<mxGeometry x="390" y="50" width="80" height="60" as="geometry" />
</mxCell>
<mxCell id="12" value="是" style="text;html=1;align=center;verticalAlign=middle;resizable=0;points=[];autosize=1;strokeColor=none;fillColor=none;fontColor=#000000;" parent="1" vertex="1">
<mxGeometry x="210" y="50" width="40" height="30" as="geometry" />
</mxCell>
<mxCell id="13" value="是" style="text;html=1;align=center;verticalAlign=middle;resizable=0;points=[];autosize=1;strokeColor=none;fillColor=none;fontColor=#000000;" parent="1" vertex="1">
<mxGeometry x="340" y="50" width="40" height="30" as="geometry" />
</mxCell>
<mxCell id="23" value="" style="edgeStyle=none;html=1;strokeColor=#000000;strokeWidth=2;fontColor=#000000;" parent="1" source="16" target="22" edge="1">
<mxGeometry relative="1" as="geometry" />
</mxCell>
<mxCell id="38" value="" style="edgeStyle=none;html=1;strokeColor=#000000;strokeWidth=2;fontColor=#000000;" parent="1" source="16" target="37" edge="1">
<mxGeometry relative="1" as="geometry" />
</mxCell>
<mxCell id="16" value="快速创建秒杀单<br>用户、订单号、商品" style="whiteSpace=wrap;html=1;fillColor=#f5f5f5;strokeColor=#666666;fontColor=#000000;rounded=0;fontStyle=1;" parent="1" vertex="1">
<mxGeometry x="510" y="50" width="120" height="60" as="geometry" />
</mxCell>
<mxCell id="18" value="成功" style="text;html=1;align=center;verticalAlign=middle;resizable=0;points=[];autosize=1;strokeColor=none;fillColor=none;fontColor=#000000;" parent="1" vertex="1">
<mxGeometry x="460" y="50" width="50" height="30" as="geometry" />
</mxCell>
<mxCell id="21" value="结束" style="rounded=1;whiteSpace=wrap;html=1;fillColor=#f0a30a;strokeColor=#BD7000;fontColor=#000000;fontStyle=1;arcSize=50;" parent="1" vertex="1">
<mxGeometry x="390" y="300" width="80" height="30" as="geometry" />
</mxCell>
<mxCell id="26" value="" style="edgeStyle=none;html=1;strokeColor=#000000;strokeWidth=2;fontColor=#000000;" parent="1" source="22" target="25" edge="1">
<mxGeometry relative="1" as="geometry" />
</mxCell>
<mxCell id="22" value="秒杀成功,正在创建订单" style="whiteSpace=wrap;html=1;fillColor=#f5f5f5;strokeColor=#666666;fontColor=#000000;rounded=0;fontStyle=1;" parent="1" vertex="1">
<mxGeometry x="510" y="140" width="120" height="60" as="geometry" />
</mxCell>
<mxCell id="28" value="" style="edgeStyle=none;html=1;strokeColor=#000000;strokeWidth=2;fontColor=#000000;" parent="1" source="25" target="27" edge="1">
<mxGeometry relative="1" as="geometry" />
</mxCell>
<mxCell id="25" value="收货地址确认页" style="whiteSpace=wrap;html=1;fillColor=#f5f5f5;strokeColor=#666666;fontColor=#000000;rounded=0;fontStyle=1;" parent="1" vertex="1">
<mxGeometry x="520" y="230" width="100" height="40" as="geometry" />
</mxCell>
<mxCell id="29" value="" style="edgeStyle=none;html=1;strokeColor=#000000;strokeWidth=2;fontColor=#000000;" parent="1" source="27" edge="1">
<mxGeometry relative="1" as="geometry">
<mxPoint x="470" y="315" as="targetPoint" />
</mxGeometry>
</mxCell>
<mxCell id="27" value="支付确认页" style="whiteSpace=wrap;html=1;fillColor=#f5f5f5;strokeColor=#666666;fontColor=#000000;rounded=0;fontStyle=1;" parent="1" vertex="1">
<mxGeometry x="530" y="300" width="80" height="30" as="geometry" />
</mxCell>
<mxCell id="31" value="失败" style="text;html=1;align=center;verticalAlign=middle;resizable=0;points=[];autosize=1;strokeColor=none;fillColor=none;fontColor=#000000;" parent="1" vertex="1">
<mxGeometry x="430" y="155" width="50" height="30" as="geometry" />
</mxCell>
<mxCell id="34" value="失败<br>1)不在秒杀时间范围<br>2)随机码(token)不对 <br>&nbsp;3)秒杀商品id不对" style="text;html=1;align=center;verticalAlign=middle;resizable=0;points=[];autosize=1;strokeColor=none;fillColor=none;fontColor=#000000;" parent="1" vertex="1">
<mxGeometry x="280" y="140" width="160" height="70" as="geometry" />
</mxCell>
<mxCell id="36" value="没有登陆" style="text;html=1;align=center;verticalAlign=middle;resizable=0;points=[];autosize=1;strokeColor=none;fillColor=none;fontColor=#000000;" parent="1" vertex="1">
<mxGeometry x="180" y="170" width="70" height="30" as="geometry" />
</mxCell>
<mxCell id="37" value="向MQ发送消息" style="whiteSpace=wrap;html=1;fillColor=#60a917;strokeColor=#2D7600;fontColor=#000000;rounded=0;fontStyle=1;" parent="1" vertex="1">
<mxGeometry x="675" y="65" width="90" height="30" as="geometry" />
</mxCell>
<mxCell id="0NaI9F9HTzV4-kXk1rnR-46" value="" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;" edge="1" parent="1" source="39" target="37">
<mxGeometry relative="1" as="geometry" />
</mxCell>
<mxCell id="39" value="订单服务" style="whiteSpace=wrap;html=1;fillColor=#f5f5f5;strokeColor=#666666;fontColor=#333333;rounded=0;fontStyle=1;" parent="1" vertex="1">
<mxGeometry x="670" y="155" width="100" height="30" as="geometry" />
</mxCell>
<mxCell id="42" value="监听<br>创建订单" style="text;html=1;align=center;verticalAlign=middle;resizable=0;points=[];autosize=1;strokeColor=none;fillColor=none;fontColor=#000000;" parent="1" vertex="1">
<mxGeometry x="720" y="110" width="70" height="40" as="geometry" />
</mxCell>
</root>
</mxGraphModel>
</diagram>
</mxfile>