Update 微服务.md
调整配图的配色和画法:换成更浅的蓝、青、紫和暖灰,去掉阴影,方框加同色细描边,箭头改为实心。
|
Before Width: | Height: | Size: 214 KiB After Width: | Height: | Size: 219 KiB |
|
Before Width: | Height: | Size: 147 KiB After Width: | Height: | Size: 151 KiB |
|
Before Width: | Height: | Size: 186 KiB After Width: | Height: | Size: 191 KiB |
@@ -1,31 +1,31 @@
|
||||
<svg xmlns="http://www.w3.org/2000/svg" width="740" height="470" viewBox="0 0 740 470">
|
||||
<style>
|
||||
text { font-family: "PingFang SC", "Microsoft YaHei", Helvetica, Arial, sans-serif; fill: #666; font-size: 12px; }
|
||||
.title { font-weight: bold; font-size: 15px; fill: #777; text-anchor: middle; }
|
||||
text { font-family: "PingFang SC", "Microsoft YaHei", Helvetica, Arial, sans-serif; fill: #3F3F3F; font-size: 12px; }
|
||||
.title { font-weight: bold; font-size: 15px; fill: #333; text-anchor: middle; }
|
||||
.b { font-weight: bold; }
|
||||
.c { text-anchor: middle; }
|
||||
.e { text-anchor: end; }
|
||||
.note { fill: #C0605A; }
|
||||
.ok { fill: #6A9F68; }
|
||||
.sub { font-size: 11px; fill: #888; }
|
||||
.sub { font-size: 11px; fill: #6E6E6E; }
|
||||
.mono { font-family: Menlo, Consolas, monospace; }
|
||||
.arrow { stroke: #666; stroke-width: 1.3; fill: none; marker-end: url(#a); }
|
||||
.arrow { stroke: #555; stroke-width: 1.1; fill: none; marker-end: url(#a); }
|
||||
.red { stroke: #C0605A; marker-end: url(#r); }
|
||||
.green { stroke: #6A9F68; marker-end: url(#g); }
|
||||
.dash { stroke-dasharray: 5 4; }
|
||||
.line { stroke: #666; stroke-width: 1.3; fill: none; }
|
||||
.line { stroke: #555; stroke-width: 1.1; fill: none; }
|
||||
.frame { fill: none; stroke: #999; stroke-width: 1; stroke-dasharray: 4 3; }
|
||||
.shadow { fill: #DADADA; }
|
||||
</style>
|
||||
<defs>
|
||||
<marker id="a" viewBox="0 0 10 10" refX="9" refY="5" markerWidth="7" markerHeight="7" orient="auto-start-reverse">
|
||||
<path d="M1,1 L9,5 L1,9" fill="none" stroke="#666" stroke-width="1.6"/>
|
||||
<path d="M1,1.5 L9.5,5 L1,8.5 z" fill="#555"/>
|
||||
</marker>
|
||||
<marker id="r" viewBox="0 0 10 10" refX="9" refY="5" markerWidth="7" markerHeight="7" orient="auto-start-reverse">
|
||||
<path d="M1,1 L9,5 L1,9" fill="none" stroke="#C0605A" stroke-width="1.6"/>
|
||||
<path d="M1,1.5 L9.5,5 L1,8.5 z" fill="#C0605A"/>
|
||||
</marker>
|
||||
<marker id="g" viewBox="0 0 10 10" refX="9" refY="5" markerWidth="7" markerHeight="7" orient="auto-start-reverse">
|
||||
<path d="M1,1 L9,5 L1,9" fill="none" stroke="#6A9F68" stroke-width="1.6"/>
|
||||
<path d="M1,1.5 L9.5,5 L1,8.5 z" fill="#6A9F68"/>
|
||||
</marker>
|
||||
</defs>
|
||||
<rect width="100%" height="100%" fill="#FFFFFF"/>
|
||||
@@ -47,52 +47,52 @@
|
||||
<line x1="170" y1="180" x2="170" y2="236" class="arrow "/>
|
||||
<text x="180" y="200" class="sub mono">FeignBlockingLoadBalancerClient</text>
|
||||
<text x="180" y="216" class="sub">交给负载均衡</text>
|
||||
<rect x="40" y="240" width="260" height="92" rx="6" fill="#B0E3E6" stroke="#78BFC4" stroke-width="1.2"/>
|
||||
<rect x="40" y="240" width="260" height="92" rx="6" fill="#C6ECE9" stroke="#7DBCB7" stroke-width="1.2"/>
|
||||
<text x="170" y="258" class="c sub">RoundRobinLoadBalancer 轮询选择</text>
|
||||
<rect x="105" y="268" width="40" height="13" rx="3" fill="#DDD7F6" stroke="#A99FD8" stroke-width="1.2"/>
|
||||
<circle cx="112" cy="274.5" r="2" fill="#A99FD8"/>
|
||||
<line x1="119" y1="274.5" x2="138" y2="274.5" stroke="#A99FD8" stroke-width="1"/>
|
||||
<rect x="105" y="284" width="40" height="13" rx="3" fill="#DDD7F6" stroke="#A99FD8" stroke-width="1.2"/>
|
||||
<circle cx="112" cy="290.5" r="2" fill="#A99FD8"/>
|
||||
<line x1="119" y1="290.5" x2="138" y2="290.5" stroke="#A99FD8" stroke-width="1"/>
|
||||
<rect x="195" y="268" width="40" height="13" rx="3" fill="#B1DDF0" stroke="#7FB4D0" stroke-width="1.2"/>
|
||||
<circle cx="202" cy="274.5" r="2" fill="#7FB4D0"/>
|
||||
<line x1="209" y1="274.5" x2="228" y2="274.5" stroke="#7FB4D0" stroke-width="1"/>
|
||||
<rect x="195" y="284" width="40" height="13" rx="3" fill="#B1DDF0" stroke="#7FB4D0" stroke-width="1.2"/>
|
||||
<circle cx="202" cy="290.5" r="2" fill="#7FB4D0"/>
|
||||
<line x1="209" y1="290.5" x2="228" y2="290.5" stroke="#7FB4D0" stroke-width="1"/>
|
||||
<rect x="105" y="268" width="40" height="13" rx="3" fill="#E6E3FA" stroke="#B8B0DE" stroke-width="1.2"/>
|
||||
<circle cx="112" cy="274.5" r="2" fill="#B8B0DE"/>
|
||||
<line x1="119" y1="274.5" x2="138" y2="274.5" stroke="#B8B0DE" stroke-width="1"/>
|
||||
<rect x="105" y="284" width="40" height="13" rx="3" fill="#E6E3FA" stroke="#B8B0DE" stroke-width="1.2"/>
|
||||
<circle cx="112" cy="290.5" r="2" fill="#B8B0DE"/>
|
||||
<line x1="119" y1="290.5" x2="138" y2="290.5" stroke="#B8B0DE" stroke-width="1"/>
|
||||
<rect x="195" y="268" width="40" height="13" rx="3" fill="#C6E4FB" stroke="#7FB2D6" stroke-width="1.2"/>
|
||||
<circle cx="202" cy="274.5" r="2" fill="#7FB2D6"/>
|
||||
<line x1="209" y1="274.5" x2="228" y2="274.5" stroke="#7FB2D6" stroke-width="1"/>
|
||||
<rect x="195" y="284" width="40" height="13" rx="3" fill="#C6E4FB" stroke="#7FB2D6" stroke-width="1.2"/>
|
||||
<circle cx="202" cy="290.5" r="2" fill="#7FB2D6"/>
|
||||
<line x1="209" y1="290.5" x2="228" y2="290.5" stroke="#7FB2D6" stroke-width="1"/>
|
||||
<text x="125" y="316" class="c b">8081 ✓</text>
|
||||
<text x="215" y="316" class="c sub">8082</text>
|
||||
<line x1="170" y1="336" x2="170" y2="362" class="arrow "/>
|
||||
<text x="180" y="352" class="sub">reconstructURI:把服务名换成实例地址</text>
|
||||
<rect x="40" y="366" width="260" height="32" rx="3" fill="#DDD7F6" stroke="#A99FD8" stroke-width="1.2"/>
|
||||
<path d="M40,367 L54,377 L68,367" fill="none" stroke="#A99FD8" stroke-width="1"/>
|
||||
<rect x="40" y="366" width="260" height="32" rx="3" fill="#E6E3FA" stroke="#B8B0DE" stroke-width="1.2"/>
|
||||
<path d="M40,367 L54,377 L68,367" fill="none" stroke="#B8B0DE" stroke-width="1"/>
|
||||
<text x="74" y="386" class="sub mono">POST http://127.0.0.1:8081/…</text>
|
||||
<line x1="304" y1="382" x2="398" y2="382" class="arrow "/>
|
||||
<rect x="407" y="360" width="46" height="13" rx="3" fill="#DDD7F6" stroke="#A99FD8" stroke-width="1.2"/>
|
||||
<circle cx="414" cy="366.5" r="2" fill="#A99FD8"/>
|
||||
<line x1="421" y1="366.5" x2="446" y2="366.5" stroke="#A99FD8" stroke-width="1"/>
|
||||
<rect x="407" y="376" width="46" height="13" rx="3" fill="#DDD7F6" stroke="#A99FD8" stroke-width="1.2"/>
|
||||
<circle cx="414" cy="382.5" r="2" fill="#A99FD8"/>
|
||||
<line x1="421" y1="382.5" x2="446" y2="382.5" stroke="#A99FD8" stroke-width="1"/>
|
||||
<rect x="407" y="392" width="46" height="13" rx="3" fill="#DDD7F6" stroke="#A99FD8" stroke-width="1.2"/>
|
||||
<circle cx="414" cy="398.5" r="2" fill="#A99FD8"/>
|
||||
<line x1="421" y1="398.5" x2="446" y2="398.5" stroke="#A99FD8" stroke-width="1"/>
|
||||
<rect x="407" y="360" width="46" height="13" rx="3" fill="#E6E3FA" stroke="#B8B0DE" stroke-width="1.2"/>
|
||||
<circle cx="414" cy="366.5" r="2" fill="#B8B0DE"/>
|
||||
<line x1="421" y1="366.5" x2="446" y2="366.5" stroke="#B8B0DE" stroke-width="1"/>
|
||||
<rect x="407" y="376" width="46" height="13" rx="3" fill="#E6E3FA" stroke="#B8B0DE" stroke-width="1.2"/>
|
||||
<circle cx="414" cy="382.5" r="2" fill="#B8B0DE"/>
|
||||
<line x1="421" y1="382.5" x2="446" y2="382.5" stroke="#B8B0DE" stroke-width="1"/>
|
||||
<rect x="407" y="392" width="46" height="13" rx="3" fill="#E6E3FA" stroke="#B8B0DE" stroke-width="1.2"/>
|
||||
<circle cx="414" cy="398.5" r="2" fill="#B8B0DE"/>
|
||||
<line x1="421" y1="398.5" x2="446" y2="398.5" stroke="#B8B0DE" stroke-width="1"/>
|
||||
<text x="430" y="422" class="c b">库存服务 8081</text>
|
||||
<rect x="465" y="52" width="170" height="70" rx="5" fill="#E6E6E6" stroke="#B5B5B5" stroke-width="1.2"/>
|
||||
<rect x="465" y="52" width="170" height="22" rx="5" fill="#B5B5B5" opacity="0.35"/>
|
||||
<rect x="465" y="52" width="170" height="70" rx="5" fill="#EAE9E7" stroke="#BFBEBA" stroke-width="1.2"/>
|
||||
<rect x="465" y="52" width="170" height="22" rx="5" fill="#BFBEBA" opacity="0.35"/>
|
||||
<text x="550" y="67" class="c b">Nacos 注册中心</text>
|
||||
<rect x="471" y="80" width="158" height="16" rx="3" fill="#FFFFFF" stroke="#B5B5B5" stroke-width="0.6"/>
|
||||
<rect x="471" y="80" width="158" height="16" rx="3" fill="#FFFFFF" stroke="#BFBEBA" stroke-width="0.6"/>
|
||||
<text x="477" y="92" class="sub mono">127.0.0.1:8081</text>
|
||||
<rect x="471" y="100" width="158" height="16" rx="3" fill="#FFFFFF" stroke="#B5B5B5" stroke-width="0.6"/>
|
||||
<rect x="471" y="100" width="158" height="16" rx="3" fill="#FFFFFF" stroke="#BFBEBA" stroke-width="0.6"/>
|
||||
<text x="477" y="112" class="sub mono">127.0.0.1:8082</text>
|
||||
<text x="550" y="140" class="c sub mono">NacosDiscoveryClient</text>
|
||||
<line x1="550" y1="146" x2="550" y2="172" class="arrow "/>
|
||||
<rect x="465" y="174" width="170" height="34" rx="6" fill="#DDD7F6" stroke="#A99FD8" stroke-width="1.2"/>
|
||||
<rect x="465" y="174" width="170" height="34" rx="6" fill="#E6E3FA" stroke="#B8B0DE" stroke-width="1.2"/>
|
||||
<text x="550" y="196" class="c b">DiscoveryClient 接口</text>
|
||||
<text x="550" y="222" class="c sub mono">CompositeDiscoveryClient</text>
|
||||
<line x1="550" y1="228" x2="550" y2="254" class="arrow "/>
|
||||
<rect x="465" y="256" width="170" height="40" rx="6" fill="#FFFFFF" stroke="#78BFC4" stroke-width="1.2"/>
|
||||
<rect x="465" y="256" width="170" height="40" rx="6" fill="#FFFFFF" stroke="#7DBCB7" stroke-width="1.2"/>
|
||||
<circle cx="490" cy="276" r="10" fill="#FFFFFF" stroke="#BBBBBB" stroke-width="1.2"/>
|
||||
<path d="M490,270 V276 L494.5,279" fill="none" stroke="#888" stroke-width="1.4" stroke-linecap="round"/>
|
||||
<text x="510" y="281" class="b">缓存实例列表 35 秒</text>
|
||||
|
||||
|
Before Width: | Height: | Size: 7.1 KiB After Width: | Height: | Size: 7.0 KiB |
@@ -1,31 +1,31 @@
|
||||
<svg xmlns="http://www.w3.org/2000/svg" width="740" height="336" viewBox="0 0 740 336">
|
||||
<style>
|
||||
text { font-family: "PingFang SC", "Microsoft YaHei", Helvetica, Arial, sans-serif; fill: #666; font-size: 12px; }
|
||||
.title { font-weight: bold; font-size: 15px; fill: #777; text-anchor: middle; }
|
||||
text { font-family: "PingFang SC", "Microsoft YaHei", Helvetica, Arial, sans-serif; fill: #3F3F3F; font-size: 12px; }
|
||||
.title { font-weight: bold; font-size: 15px; fill: #333; text-anchor: middle; }
|
||||
.b { font-weight: bold; }
|
||||
.c { text-anchor: middle; }
|
||||
.e { text-anchor: end; }
|
||||
.note { fill: #C0605A; }
|
||||
.ok { fill: #6A9F68; }
|
||||
.sub { font-size: 11px; fill: #888; }
|
||||
.sub { font-size: 11px; fill: #6E6E6E; }
|
||||
.mono { font-family: Menlo, Consolas, monospace; }
|
||||
.arrow { stroke: #666; stroke-width: 1.3; fill: none; marker-end: url(#a); }
|
||||
.arrow { stroke: #555; stroke-width: 1.1; fill: none; marker-end: url(#a); }
|
||||
.red { stroke: #C0605A; marker-end: url(#r); }
|
||||
.green { stroke: #6A9F68; marker-end: url(#g); }
|
||||
.dash { stroke-dasharray: 5 4; }
|
||||
.line { stroke: #666; stroke-width: 1.3; fill: none; }
|
||||
.line { stroke: #555; stroke-width: 1.1; fill: none; }
|
||||
.frame { fill: none; stroke: #999; stroke-width: 1; stroke-dasharray: 4 3; }
|
||||
.shadow { fill: #DADADA; }
|
||||
</style>
|
||||
<defs>
|
||||
<marker id="a" viewBox="0 0 10 10" refX="9" refY="5" markerWidth="7" markerHeight="7" orient="auto-start-reverse">
|
||||
<path d="M1,1 L9,5 L1,9" fill="none" stroke="#666" stroke-width="1.6"/>
|
||||
<path d="M1,1.5 L9.5,5 L1,8.5 z" fill="#555"/>
|
||||
</marker>
|
||||
<marker id="r" viewBox="0 0 10 10" refX="9" refY="5" markerWidth="7" markerHeight="7" orient="auto-start-reverse">
|
||||
<path d="M1,1 L9,5 L1,9" fill="none" stroke="#C0605A" stroke-width="1.6"/>
|
||||
<path d="M1,1.5 L9.5,5 L1,8.5 z" fill="#C0605A"/>
|
||||
</marker>
|
||||
<marker id="g" viewBox="0 0 10 10" refX="9" refY="5" markerWidth="7" markerHeight="7" orient="auto-start-reverse">
|
||||
<path d="M1,1 L9,5 L1,9" fill="none" stroke="#6A9F68" stroke-width="1.6"/>
|
||||
<path d="M1,1.5 L9.5,5 L1,8.5 z" fill="#6A9F68"/>
|
||||
</marker>
|
||||
</defs>
|
||||
<rect width="100%" height="100%" fill="#FFFFFF"/>
|
||||
@@ -143,11 +143,11 @@
|
||||
<rect x="482.6" y="218" width="23.5" height="18" fill="#E8B4B0"/>
|
||||
<rect x="508.5" y="218" width="23.5" height="18" fill="#E8B4B0"/>
|
||||
<text x="260" y="252" class="sub">每次 2 s 后失败,约 23 s 后不再调用</text>
|
||||
<line x1="257.1" y1="58" x2="257.1" y2="270" stroke="#9188D8" stroke-width="1.5" stroke-dasharray="4 3"/>
|
||||
<text x="261.05" y="50" class="sub" fill="#7A70C8">Nacos 删除实例 0.6 s</text>
|
||||
<line x1="520.2" y1="58" x2="520.2" y2="270" stroke="#9188D8" stroke-width="1.5" stroke-dasharray="4 3"/>
|
||||
<text x="524.25" y="50" class="sub" fill="#7A70C8">进程卡住时 Nacos 23 s 后才删除</text>
|
||||
<line x1="661.2" y1="58" x2="661.2" y2="270" stroke="#9188D8" stroke-width="1.5" stroke-dasharray="4 3"/>
|
||||
<text x="657.25" y="304" class="sub e" fill="#7A70C8">负载均衡缓存 35 s 过期</text>
|
||||
<line x1="257.1" y1="58" x2="257.1" y2="270" stroke="#9F94D5" stroke-width="1.5" stroke-dasharray="4 3"/>
|
||||
<text x="261.05" y="50" class="sub" fill="#766AA8">Nacos 删除实例 0.6 s</text>
|
||||
<line x1="520.2" y1="58" x2="520.2" y2="270" stroke="#9F94D5" stroke-width="1.5" stroke-dasharray="4 3"/>
|
||||
<text x="524.25" y="50" class="sub" fill="#766AA8">进程卡住时 Nacos 23 s 后才删除</text>
|
||||
<line x1="661.2" y1="58" x2="661.2" y2="270" stroke="#9F94D5" stroke-width="1.5" stroke-dasharray="4 3"/>
|
||||
<text x="657.25" y="304" class="sub e" fill="#766AA8">负载均衡缓存 35 s 过期</text>
|
||||
<text x="20" y="322" class="sub">订单服务每 0.2 s 调用一次库存服务,请求在 8081 和 8082 之间轮询;红色为失败的调用</text>
|
||||
</svg>
|
||||
|
||||
|
Before Width: | Height: | Size: 9.7 KiB After Width: | Height: | Size: 9.6 KiB |
@@ -1,84 +1,84 @@
|
||||
<svg xmlns="http://www.w3.org/2000/svg" width="740" height="400" viewBox="0 0 740 400">
|
||||
<style>
|
||||
text { font-family: "PingFang SC", "Microsoft YaHei", Helvetica, Arial, sans-serif; fill: #666; font-size: 12px; }
|
||||
.title { font-weight: bold; font-size: 15px; fill: #777; text-anchor: middle; }
|
||||
text { font-family: "PingFang SC", "Microsoft YaHei", Helvetica, Arial, sans-serif; fill: #3F3F3F; font-size: 12px; }
|
||||
.title { font-weight: bold; font-size: 15px; fill: #333; text-anchor: middle; }
|
||||
.b { font-weight: bold; }
|
||||
.c { text-anchor: middle; }
|
||||
.e { text-anchor: end; }
|
||||
.note { fill: #C0605A; }
|
||||
.ok { fill: #6A9F68; }
|
||||
.sub { font-size: 11px; fill: #888; }
|
||||
.sub { font-size: 11px; fill: #6E6E6E; }
|
||||
.mono { font-family: Menlo, Consolas, monospace; }
|
||||
.arrow { stroke: #666; stroke-width: 1.3; fill: none; marker-end: url(#a); }
|
||||
.arrow { stroke: #555; stroke-width: 1.1; fill: none; marker-end: url(#a); }
|
||||
.red { stroke: #C0605A; marker-end: url(#r); }
|
||||
.green { stroke: #6A9F68; marker-end: url(#g); }
|
||||
.dash { stroke-dasharray: 5 4; }
|
||||
.line { stroke: #666; stroke-width: 1.3; fill: none; }
|
||||
.line { stroke: #555; stroke-width: 1.1; fill: none; }
|
||||
.frame { fill: none; stroke: #999; stroke-width: 1; stroke-dasharray: 4 3; }
|
||||
.shadow { fill: #DADADA; }
|
||||
</style>
|
||||
<defs>
|
||||
<marker id="a" viewBox="0 0 10 10" refX="9" refY="5" markerWidth="7" markerHeight="7" orient="auto-start-reverse">
|
||||
<path d="M1,1 L9,5 L1,9" fill="none" stroke="#666" stroke-width="1.6"/>
|
||||
<path d="M1,1.5 L9.5,5 L1,8.5 z" fill="#555"/>
|
||||
</marker>
|
||||
<marker id="r" viewBox="0 0 10 10" refX="9" refY="5" markerWidth="7" markerHeight="7" orient="auto-start-reverse">
|
||||
<path d="M1,1 L9,5 L1,9" fill="none" stroke="#C0605A" stroke-width="1.6"/>
|
||||
<path d="M1,1.5 L9.5,5 L1,8.5 z" fill="#C0605A"/>
|
||||
</marker>
|
||||
<marker id="g" viewBox="0 0 10 10" refX="9" refY="5" markerWidth="7" markerHeight="7" orient="auto-start-reverse">
|
||||
<path d="M1,1 L9,5 L1,9" fill="none" stroke="#6A9F68" stroke-width="1.6"/>
|
||||
<path d="M1,1.5 L9.5,5 L1,8.5 z" fill="#6A9F68"/>
|
||||
</marker>
|
||||
</defs>
|
||||
<rect width="100%" height="100%" fill="#FFFFFF"/>
|
||||
|
||||
<text x="370" y="28" class="title">一次下单请求经过的组件</text>
|
||||
<rect x="270" y="44" width="250" height="90" rx="5" fill="#E6E6E6" stroke="#B5B5B5" stroke-width="1.2"/>
|
||||
<rect x="270" y="44" width="250" height="22" rx="5" fill="#B5B5B5" opacity="0.35"/>
|
||||
<rect x="270" y="44" width="250" height="90" rx="5" fill="#EAE9E7" stroke="#BFBEBA" stroke-width="1.2"/>
|
||||
<rect x="270" y="44" width="250" height="22" rx="5" fill="#BFBEBA" opacity="0.35"/>
|
||||
<text x="395" y="59" class="c b">Nacos :8848</text>
|
||||
<rect x="276" y="72" width="238" height="16" rx="3" fill="#FFFFFF" stroke="#B5B5B5" stroke-width="0.6"/>
|
||||
<rect x="276" y="72" width="238" height="16" rx="3" fill="#FFFFFF" stroke="#BFBEBA" stroke-width="0.6"/>
|
||||
<text x="282" y="84" class="sub">order-service → :8090</text>
|
||||
<rect x="276" y="92" width="238" height="16" rx="3" fill="#FFFFFF" stroke="#B5B5B5" stroke-width="0.6"/>
|
||||
<rect x="276" y="92" width="238" height="16" rx="3" fill="#FFFFFF" stroke="#BFBEBA" stroke-width="0.6"/>
|
||||
<text x="282" y="104" class="sub">inventory-service → :8081、:8082</text>
|
||||
<rect x="276" y="112" width="238" height="16" rx="3" fill="#FFFFFF" stroke="#B5B5B5" stroke-width="0.6"/>
|
||||
<rect x="276" y="112" width="238" height="16" rx="3" fill="#FFFFFF" stroke="#BFBEBA" stroke-width="0.6"/>
|
||||
<text x="282" y="124" class="sub">配置 order-service.yaml</text>
|
||||
<rect x="36" y="178" width="28" height="46" rx="5" fill="#DDD7F6" stroke="#A99FD8" stroke-width="1.2"/>
|
||||
<rect x="40" y="184" width="20" height="30" rx="1.5" fill="#FFFFFF" stroke="#A99FD8" stroke-width="0.8"/>
|
||||
<circle cx="50" cy="219" r="2" fill="#A99FD8"/>
|
||||
<rect x="36" y="178" width="28" height="46" rx="5" fill="#E6E3FA" stroke="#B8B0DE" stroke-width="1.2"/>
|
||||
<rect x="40" y="184" width="20" height="30" rx="1.5" fill="#FFFFFF" stroke="#B8B0DE" stroke-width="0.8"/>
|
||||
<circle cx="50" cy="219" r="2" fill="#B8B0DE"/>
|
||||
<text x="50" y="244" class="c b">App</text>
|
||||
<text x="50" y="259" class="c sub">带上令牌</text>
|
||||
<path d="M190,174 L212,183 V197.4 C212,214.56 196,223 190,226 C184,223 168,214.56 168,197.4 V183 Z" fill="#B1DDF0" stroke="#7FB4D0" stroke-width="1.2"/>
|
||||
<path d="M181,198.96 l6,6 l12,-13" fill="none" stroke="#7FB4D0" stroke-width="2.2" stroke-linecap="round" stroke-linejoin="round"/>
|
||||
<path d="M190,174 L212,183 V197.4 C212,214.56 196,223 190,226 C184,223 168,214.56 168,197.4 V183 Z" fill="#C6E4FB" stroke="#7FB2D6" stroke-width="1.2"/>
|
||||
<path d="M181,198.96 l6,6 l12,-13" fill="none" stroke="#7FB2D6" stroke-width="2.2" stroke-linecap="round" stroke-linejoin="round"/>
|
||||
<text x="190" y="244" class="c b">网关 :8080</text>
|
||||
<text x="190" y="259" class="c sub">校验令牌、按路径转发</text>
|
||||
<rect x="372" y="178" width="46" height="13" rx="3" fill="#B1DDF0" stroke="#7FB4D0" stroke-width="1.2"/>
|
||||
<circle cx="379" cy="184.5" r="2" fill="#7FB4D0"/>
|
||||
<line x1="386" y1="184.5" x2="411" y2="184.5" stroke="#7FB4D0" stroke-width="1"/>
|
||||
<rect x="372" y="194" width="46" height="13" rx="3" fill="#B1DDF0" stroke="#7FB4D0" stroke-width="1.2"/>
|
||||
<circle cx="379" cy="200.5" r="2" fill="#7FB4D0"/>
|
||||
<line x1="386" y1="200.5" x2="411" y2="200.5" stroke="#7FB4D0" stroke-width="1"/>
|
||||
<rect x="372" y="210" width="46" height="13" rx="3" fill="#B1DDF0" stroke="#7FB4D0" stroke-width="1.2"/>
|
||||
<circle cx="379" cy="216.5" r="2" fill="#7FB4D0"/>
|
||||
<line x1="386" y1="216.5" x2="411" y2="216.5" stroke="#7FB4D0" stroke-width="1"/>
|
||||
<rect x="372" y="178" width="46" height="13" rx="3" fill="#C6E4FB" stroke="#7FB2D6" stroke-width="1.2"/>
|
||||
<circle cx="379" cy="184.5" r="2" fill="#7FB2D6"/>
|
||||
<line x1="386" y1="184.5" x2="411" y2="184.5" stroke="#7FB2D6" stroke-width="1"/>
|
||||
<rect x="372" y="194" width="46" height="13" rx="3" fill="#C6E4FB" stroke="#7FB2D6" stroke-width="1.2"/>
|
||||
<circle cx="379" cy="200.5" r="2" fill="#7FB2D6"/>
|
||||
<line x1="386" y1="200.5" x2="411" y2="200.5" stroke="#7FB2D6" stroke-width="1"/>
|
||||
<rect x="372" y="210" width="46" height="13" rx="3" fill="#C6E4FB" stroke="#7FB2D6" stroke-width="1.2"/>
|
||||
<circle cx="379" cy="216.5" r="2" fill="#7FB2D6"/>
|
||||
<line x1="386" y1="216.5" x2="411" y2="216.5" stroke="#7FB2D6" stroke-width="1"/>
|
||||
<text x="395" y="244" class="c b">订单服务 :8090</text>
|
||||
<text x="395" y="259" class="c sub">OpenFeign 调用库存服务</text>
|
||||
<rect x="607" y="150" width="46" height="13" rx="3" fill="#B1DDF0" stroke="#7FB4D0" stroke-width="1.2"/>
|
||||
<circle cx="614" cy="156.5" r="2" fill="#7FB4D0"/>
|
||||
<line x1="621" y1="156.5" x2="646" y2="156.5" stroke="#7FB4D0" stroke-width="1"/>
|
||||
<rect x="607" y="166" width="46" height="13" rx="3" fill="#B1DDF0" stroke="#7FB4D0" stroke-width="1.2"/>
|
||||
<circle cx="614" cy="172.5" r="2" fill="#7FB4D0"/>
|
||||
<line x1="621" y1="172.5" x2="646" y2="172.5" stroke="#7FB4D0" stroke-width="1"/>
|
||||
<rect x="607" y="182" width="46" height="13" rx="3" fill="#B1DDF0" stroke="#7FB4D0" stroke-width="1.2"/>
|
||||
<circle cx="614" cy="188.5" r="2" fill="#7FB4D0"/>
|
||||
<line x1="621" y1="188.5" x2="646" y2="188.5" stroke="#7FB4D0" stroke-width="1"/>
|
||||
<rect x="607" y="150" width="46" height="13" rx="3" fill="#C6E4FB" stroke="#7FB2D6" stroke-width="1.2"/>
|
||||
<circle cx="614" cy="156.5" r="2" fill="#7FB2D6"/>
|
||||
<line x1="621" y1="156.5" x2="646" y2="156.5" stroke="#7FB2D6" stroke-width="1"/>
|
||||
<rect x="607" y="166" width="46" height="13" rx="3" fill="#C6E4FB" stroke="#7FB2D6" stroke-width="1.2"/>
|
||||
<circle cx="614" cy="172.5" r="2" fill="#7FB2D6"/>
|
||||
<line x1="621" y1="172.5" x2="646" y2="172.5" stroke="#7FB2D6" stroke-width="1"/>
|
||||
<rect x="607" y="182" width="46" height="13" rx="3" fill="#C6E4FB" stroke="#7FB2D6" stroke-width="1.2"/>
|
||||
<circle cx="614" cy="188.5" r="2" fill="#7FB2D6"/>
|
||||
<line x1="621" y1="188.5" x2="646" y2="188.5" stroke="#7FB2D6" stroke-width="1"/>
|
||||
<text x="630" y="214" class="c sub">:8081</text>
|
||||
<rect x="607" y="236" width="46" height="13" rx="3" fill="#B1DDF0" stroke="#7FB4D0" stroke-width="1.2"/>
|
||||
<circle cx="614" cy="242.5" r="2" fill="#7FB4D0"/>
|
||||
<line x1="621" y1="242.5" x2="646" y2="242.5" stroke="#7FB4D0" stroke-width="1"/>
|
||||
<rect x="607" y="252" width="46" height="13" rx="3" fill="#B1DDF0" stroke="#7FB4D0" stroke-width="1.2"/>
|
||||
<circle cx="614" cy="258.5" r="2" fill="#7FB4D0"/>
|
||||
<line x1="621" y1="258.5" x2="646" y2="258.5" stroke="#7FB4D0" stroke-width="1"/>
|
||||
<rect x="607" y="268" width="46" height="13" rx="3" fill="#B1DDF0" stroke="#7FB4D0" stroke-width="1.2"/>
|
||||
<circle cx="614" cy="274.5" r="2" fill="#7FB4D0"/>
|
||||
<line x1="621" y1="274.5" x2="646" y2="274.5" stroke="#7FB4D0" stroke-width="1"/>
|
||||
<rect x="607" y="236" width="46" height="13" rx="3" fill="#C6E4FB" stroke="#7FB2D6" stroke-width="1.2"/>
|
||||
<circle cx="614" cy="242.5" r="2" fill="#7FB2D6"/>
|
||||
<line x1="621" y1="242.5" x2="646" y2="242.5" stroke="#7FB2D6" stroke-width="1"/>
|
||||
<rect x="607" y="252" width="46" height="13" rx="3" fill="#C6E4FB" stroke="#7FB2D6" stroke-width="1.2"/>
|
||||
<circle cx="614" cy="258.5" r="2" fill="#7FB2D6"/>
|
||||
<line x1="621" y1="258.5" x2="646" y2="258.5" stroke="#7FB2D6" stroke-width="1"/>
|
||||
<rect x="607" y="268" width="46" height="13" rx="3" fill="#C6E4FB" stroke="#7FB2D6" stroke-width="1.2"/>
|
||||
<circle cx="614" cy="274.5" r="2" fill="#7FB2D6"/>
|
||||
<line x1="621" y1="274.5" x2="646" y2="274.5" stroke="#7FB2D6" stroke-width="1"/>
|
||||
<text x="630" y="300" class="c sub">:8082</text>
|
||||
<text x="630" y="318" class="c b">库存服务</text>
|
||||
<line x1="68" y1="200" x2="162" y2="200" class="arrow "/>
|
||||
@@ -92,7 +92,7 @@
|
||||
<text x="402" y="160" class="sub">实例列表、配置推送</text>
|
||||
<path d="M630,146 C630,110 580,92 524,90" class="arrow dash"/>
|
||||
<text x="640" y="118" class="sub">注册</text>
|
||||
<line x1="160" y1="346" x2="720" y2="346" stroke="#9188D8" stroke-width="2" stroke-dasharray="6 4"/>
|
||||
<line x1="160" y1="346" x2="720" y2="346" stroke="#9F94D5" stroke-width="2" stroke-dasharray="6 4"/>
|
||||
<text x="160" y="338" class="sub">traceId 6ade5947…74b 随请求头 traceparent 传递,各服务的日志中都带上它</text>
|
||||
<text x="160" y="368" class="sub">订单服务调用库存服务时加上超时和熔断(Sentinel),跨服务的事务用 Seata 或消息保证一致</text>
|
||||
<text x="20" y="392" class="sub">本机实际运行:Nacos 2.5.4,Spring Boot 3.3,Spring Cloud 2023.0,Spring Cloud Alibaba 2023.0.3.4</text>
|
||||
|
||||
|
Before Width: | Height: | Size: 6.8 KiB After Width: | Height: | Size: 6.8 KiB |