Add week 11 materials

This commit is contained in:
osukhoroslov committed 2026-11-28 00:56:20 +03:00
1 parent a499e38e6e
commit bc3e17008b
26 files changed
+1706

No files matched your search

@@ -0,0 +1,46 @@
<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" width="1024" height="300" viewBox="0 0 1024 300" role="img" aria-labelledby="title desc">
<title id="title">Подготовка перевода между двумя шардами</title>
<desc id="desc">Координатор отправил prepare шарду Ани и шарду магазина. У каждого шарда своя группа Raft из трёх реплик. Шард Ани подтвердил готовность к списанию ответом yes. Ответ магазина ещё не получен.</desc>
<defs>
<marker id="arrow" viewBox="0 0 10 10" refX="9" refY="5" markerWidth="6" markerHeight="6" orient="auto">
<path d="M0 0 L10 5 L0 10 Z" fill="#245795"/>
</marker>
<g id="replicas" fill="#eaf2fc" stroke="#52749f" stroke-width="1.5">
<rect width="18" height="21" rx="3"/><rect x="23" width="18" height="21" rx="3"/><rect x="46" width="18" height="21" rx="3"/>
<path d="M4 8h10 M4 13h7 M27 8h10 M27 13h7 M50 8h10 M50 13h7"/>
</g>
</defs>
<style>
text { font-family: Arial, Helvetica, sans-serif; fill: #193456; text-anchor: middle; }
.heading { font-size: 24px; font-weight: 700; }
.body { font-size: 20px; }
.message { font: 20px Menlo, Consolas, monospace; }
.shard { fill: #f6f9fd; stroke: #82a4ce; stroke-width: 1.5; }
.edge { fill: none; stroke: #245795; stroke-width: 2.5; marker-end: url(#arrow); }
</style>
<rect width="1024" height="300" fill="#fff"/>
<rect x="339" y="12" width="346" height="75" rx="9" fill="#eaf2fc" stroke="#82a4ce" stroke-width="1.5"/>
<text class="heading" x="512" y="44">Координатор 2PC</text>
<text class="body" x="512" y="71">Перевод 20 000 ₽</text>
<rect class="shard" x="24" y="158" width="446" height="128" rx="9"/>
<rect class="shard" x="554" y="158" width="446" height="128" rx="9"/>
<path class="edge" d="M339 51 H169 V155"/>
<path class="edge" d="M685 51 H855 V155"/>
<text class="message" x="248" y="39">prepare</text>
<text class="message" x="776" y="39">prepare</text>
<path class="edge" d="M367 158 V118 H439 V90"/>
<text class="message" x="400" y="109">yes</text>
<text class="body" x="682" y="132">Ответа пока нет</text>
<text class="heading" x="247" y="191">Шард Ани</text>
<text class="body" x="247" y="222">Списать 20 000 ₽</text>
<text class="heading" x="777" y="191">Шард магазина</text>
<text class="body" x="777" y="222">Зачислить 20 000 ₽</text>
<path d="M25 239 H469 M555 239 H999" stroke="#adc2db" stroke-width="1.5"/>
<use xlink:href="#replicas" x="100" y="252"/>
<text class="body" x="284" y="269">Группа Raft · 3 реплики</text>
<use xlink:href="#replicas" x="630" y="252"/>
<text class="body" x="814" y="269">Группа Raft · 3 реплики</text>
</svg>

After

Width:  |  Height:  |  Size: 2.9 KiB