<mxfile host="thecodeclouds.com" agent="hand-built" version="24.0.0" type="device">
<diagram id="ecom-reference" name="Scalable e-commerce platform: reference architecture"><mxGraphModel dx="1400" dy="900" grid="1" gridSize="10" guides="1" tooltips="1" connect="1" arrows="1" fold="1" page="1" pageScale="1" pageWidth="1500" pageHeight="1060" math="0" shadow="0"><root><mxCell id="0"/><mxCell id="1" parent="0"/><mxCell id="c1" value="A scalable e-commerce platform: reference architecture" style="text;html=1;whiteSpace=wrap;align=left;verticalAlign=top;fontSize=18;fontColor=#232F3E;fontStyle=1;spacing=0;" vertex="1" parent="1"><mxGeometry x="20" y="14" width="1100" height="24" as="geometry"/></mxCell>
<mxCell id="c2" value="Cloud-neutral. Browse traffic is served from caches at the top; only buying reaches the strongly consistent stores at the bottom." style="text;html=1;whiteSpace=wrap;align=left;verticalAlign=top;fontSize=12;fontColor=#5F6368;fontStyle=0;spacing=0;" vertex="1" parent="1"><mxGeometry x="20" y="40" width="1200" height="18" as="geometry"/></mxCell>
<mxCell id="c1" value="&lt;b&gt;&lt;/b&gt;" style="rounded=1;arcSize=8;html=1;whiteSpace=wrap;strokeColor=#5F6368;fillColor=#FFFFFF;dashed=0;fontSize=12;fontStyle=0;fontColor=#3C4043;align=left;verticalAlign=top;spacingLeft=8;" vertex="1" parent="1"><mxGeometry x="40" y="70" width="261" height="52" as="geometry"/></mxCell>
<mxCell id="c4" value="Web storefront" style="text;html=1;whiteSpace=wrap;align=left;verticalAlign=top;fontSize=12;fontColor=#202124;fontStyle=1;spacing=0;" vertex="1" parent="1"><mxGeometry x="50" y="78" width="245" height="18" as="geometry"/></mxCell>
<mxCell id="c5" value="server-rendered pages + JS" style="text;html=1;whiteSpace=wrap;align=left;verticalAlign=top;fontSize=10;fontColor=#5F6368;fontStyle=0;spacing=0;" vertex="1" parent="1"><mxGeometry x="50" y="96" width="245" height="16" as="geometry"/></mxCell>
<mxCell id="c2" value="&lt;b&gt;&lt;/b&gt;" style="rounded=1;arcSize=8;html=1;whiteSpace=wrap;strokeColor=#5F6368;fillColor=#FFFFFF;dashed=0;fontSize=12;fontStyle=0;fontColor=#3C4043;align=left;verticalAlign=top;spacingLeft=8;" vertex="1" parent="1"><mxGeometry x="313" y="70" width="261" height="52" as="geometry"/></mxCell>
<mxCell id="c7" value="Mobile apps" style="text;html=1;whiteSpace=wrap;align=left;verticalAlign=top;fontSize=12;fontColor=#202124;fontStyle=1;spacing=0;" vertex="1" parent="1"><mxGeometry x="323" y="78" width="245" height="18" as="geometry"/></mxCell>
<mxCell id="c8" value="iOS, Android" style="text;html=1;whiteSpace=wrap;align=left;verticalAlign=top;fontSize=10;fontColor=#5F6368;fontStyle=0;spacing=0;" vertex="1" parent="1"><mxGeometry x="323" y="96" width="245" height="16" as="geometry"/></mxCell>
<mxCell id="c3" value="&lt;b&gt;&lt;/b&gt;" style="rounded=1;arcSize=8;html=1;whiteSpace=wrap;strokeColor=#5F6368;fillColor=#FFFFFF;dashed=0;fontSize=12;fontStyle=0;fontColor=#3C4043;align=left;verticalAlign=top;spacingLeft=8;" vertex="1" parent="1"><mxGeometry x="586" y="70" width="261" height="52" as="geometry"/></mxCell>
<mxCell id="c10" value="Partners + marketplaces" style="text;html=1;whiteSpace=wrap;align=left;verticalAlign=top;fontSize=12;fontColor=#202124;fontStyle=1;spacing=0;" vertex="1" parent="1"><mxGeometry x="596" y="78" width="245" height="18" as="geometry"/></mxCell>
<mxCell id="c11" value="feeds, order APIs" style="text;html=1;whiteSpace=wrap;align=left;verticalAlign=top;fontSize=10;fontColor=#5F6368;fontStyle=0;spacing=0;" vertex="1" parent="1"><mxGeometry x="596" y="96" width="245" height="16" as="geometry"/></mxCell>
<mxCell id="c4" value="&lt;b&gt;&lt;/b&gt;" style="rounded=1;arcSize=8;html=1;whiteSpace=wrap;strokeColor=#5F6368;fillColor=#FFFFFF;dashed=0;fontSize=12;fontStyle=0;fontColor=#3C4043;align=left;verticalAlign=top;spacingLeft=8;" vertex="1" parent="1"><mxGeometry x="859" y="70" width="261" height="52" as="geometry"/></mxCell>
<mxCell id="c13" value="Store ops + support" style="text;html=1;whiteSpace=wrap;align=left;verticalAlign=top;fontSize=12;fontColor=#202124;fontStyle=1;spacing=0;" vertex="1" parent="1"><mxGeometry x="869" y="78" width="245" height="18" as="geometry"/></mxCell>
<mxCell id="c14" value="admin console" style="text;html=1;whiteSpace=wrap;align=left;verticalAlign=top;fontSize=10;fontColor=#5F6368;fontStyle=0;spacing=0;" vertex="1" parent="1"><mxGeometry x="869" y="96" width="245" height="16" as="geometry"/></mxCell>
<mxCell id="c15" value="&lt;b&gt;&lt;/b&gt;" style="rounded=1;arcSize=8;html=1;whiteSpace=wrap;strokeColor=#D93025;fillColor=#FFFFFF;dashed=0;fontSize=12;fontStyle=0;fontColor=#3C4043;align=left;verticalAlign=top;spacingLeft=8;" vertex="1" parent="1"><mxGeometry x="40" y="146" width="1080" height="108" as="geometry"/></mxCell>
<mxCell id="c16" style="edgeStyle=none;html=1;rounded=0;strokeColor=#D93025;strokeWidth=5;dashed=0;startArrow=none;startFill=1;endArrow=none;endFill=1;endSize=4;startSize=4;" edge="1" parent="1"><mxGeometry relative="1" as="geometry"><mxPoint x="40" y="150" as="sourcePoint"/><mxPoint x="40" y="250" as="targetPoint"/></mxGeometry></mxCell>
<mxCell id="c17" value="1  Edge: absorb the crowd before it reaches you" style="text;html=1;whiteSpace=wrap;align=left;verticalAlign=top;fontSize=13;fontColor=#D93025;fontStyle=1;spacing=0;" vertex="1" parent="1"><mxGeometry x="54" y="154" width="1060" height="19" as="geometry"/></mxCell>
<mxCell id="e1" value="&lt;b&gt;&lt;/b&gt;" style="rounded=1;arcSize=8;html=1;whiteSpace=wrap;strokeColor=#DADCE0;fillColor=#FFFFFF;dashed=0;fontSize=12;fontStyle=0;fontColor=#3C4043;align=left;verticalAlign=top;spacingLeft=8;" vertex="1" parent="1"><mxGeometry x="56" y="184" width="253" height="56" as="geometry"/></mxCell>
<mxCell id="c19" value="DNS + global load balancer" style="text;html=1;whiteSpace=wrap;align=left;verticalAlign=top;fontSize=12;fontColor=#202124;fontStyle=1;spacing=0;" vertex="1" parent="1"><mxGeometry x="66" y="192" width="237" height="18" as="geometry"/></mxCell>
<mxCell id="c20" value="health-checked, per region" style="text;html=1;whiteSpace=wrap;align=left;verticalAlign=top;fontSize=10;fontColor=#5F6368;fontStyle=0;spacing=0;" vertex="1" parent="1"><mxGeometry x="66" y="210" width="237" height="16" as="geometry"/></mxCell>
<mxCell id="e2" value="&lt;b&gt;&lt;/b&gt;" style="rounded=1;arcSize=8;html=1;whiteSpace=wrap;strokeColor=#DADCE0;fillColor=#FFFFFF;dashed=0;fontSize=12;fontStyle=0;fontColor=#3C4043;align=left;verticalAlign=top;spacingLeft=8;" vertex="1" parent="1"><mxGeometry x="321" y="184" width="253" height="56" as="geometry"/></mxCell>
<mxCell id="c22" value="CDN" style="text;html=1;whiteSpace=wrap;align=left;verticalAlign=top;fontSize=12;fontColor=#202124;fontStyle=1;spacing=0;" vertex="1" parent="1"><mxGeometry x="331" y="192" width="237" height="18" as="geometry"/></mxCell>
<mxCell id="c23" value="images, JS, cached product pages" style="text;html=1;whiteSpace=wrap;align=left;verticalAlign=top;fontSize=10;fontColor=#5F6368;fontStyle=0;spacing=0;" vertex="1" parent="1"><mxGeometry x="331" y="210" width="237" height="16" as="geometry"/></mxCell>
<mxCell id="e3" value="&lt;b&gt;&lt;/b&gt;" style="rounded=1;arcSize=8;html=1;whiteSpace=wrap;strokeColor=#DADCE0;fillColor=#FFFFFF;dashed=0;fontSize=12;fontStyle=0;fontColor=#3C4043;align=left;verticalAlign=top;spacingLeft=8;" vertex="1" parent="1"><mxGeometry x="586" y="184" width="253" height="56" as="geometry"/></mxCell>
<mxCell id="c25" value="WAF + bot management" style="text;html=1;whiteSpace=wrap;align=left;verticalAlign=top;fontSize=12;fontColor=#202124;fontStyle=1;spacing=0;" vertex="1" parent="1"><mxGeometry x="596" y="192" width="237" height="18" as="geometry"/></mxCell>
<mxCell id="c26" value="scalpers, credential stuffing" style="text;html=1;whiteSpace=wrap;align=left;verticalAlign=top;fontSize=10;fontColor=#5F6368;fontStyle=0;spacing=0;" vertex="1" parent="1"><mxGeometry x="596" y="210" width="237" height="16" as="geometry"/></mxCell>
<mxCell id="e4" value="&lt;b&gt;&lt;/b&gt;" style="rounded=1;arcSize=8;html=1;whiteSpace=wrap;strokeColor=#DADCE0;fillColor=#FFFFFF;dashed=0;fontSize=12;fontStyle=0;fontColor=#3C4043;align=left;verticalAlign=top;spacingLeft=8;" vertex="1" parent="1"><mxGeometry x="851" y="184" width="253" height="56" as="geometry"/></mxCell>
<mxCell id="c28" value="Waiting room" style="text;html=1;whiteSpace=wrap;align=left;verticalAlign=top;fontSize=12;fontColor=#202124;fontStyle=1;spacing=0;" vertex="1" parent="1"><mxGeometry x="861" y="192" width="237" height="18" as="geometry"/></mxCell>
<mxCell id="c29" value="turned on for drops and sales" style="text;html=1;whiteSpace=wrap;align=left;verticalAlign=top;fontSize=10;fontColor=#5F6368;fontStyle=0;spacing=0;" vertex="1" parent="1"><mxGeometry x="861" y="210" width="237" height="16" as="geometry"/></mxCell>
<mxCell id="c30" value="&lt;b&gt;&lt;/b&gt;" style="rounded=1;arcSize=8;html=1;whiteSpace=wrap;strokeColor=#E37400;fillColor=#FFFFFF;dashed=0;fontSize=12;fontStyle=0;fontColor=#3C4043;align=left;verticalAlign=top;spacingLeft=8;" vertex="1" parent="1"><mxGeometry x="40" y="272" width="1080" height="108" as="geometry"/></mxCell>
<mxCell id="c31" style="edgeStyle=none;html=1;rounded=0;strokeColor=#E37400;strokeWidth=5;dashed=0;startArrow=none;startFill=1;endArrow=none;endFill=1;endSize=4;startSize=4;" edge="1" parent="1"><mxGeometry relative="1" as="geometry"><mxPoint x="40" y="276" as="sourcePoint"/><mxPoint x="40" y="376" as="targetPoint"/></mxGeometry></mxCell>
<mxCell id="c32" value="2  Entry: one front door per client type" style="text;html=1;whiteSpace=wrap;align=left;verticalAlign=top;fontSize=13;fontColor=#E37400;fontStyle=1;spacing=0;" vertex="1" parent="1"><mxGeometry x="54" y="280" width="1060" height="19" as="geometry"/></mxCell>
<mxCell id="g1" value="&lt;b&gt;&lt;/b&gt;" style="rounded=1;arcSize=8;html=1;whiteSpace=wrap;strokeColor=#DADCE0;fillColor=#FFFFFF;dashed=0;fontSize=12;fontStyle=0;fontColor=#3C4043;align=left;verticalAlign=top;spacingLeft=8;" vertex="1" parent="1"><mxGeometry x="56" y="310" width="253" height="56" as="geometry"/></mxCell>
<mxCell id="c34" value="API gateway" style="text;html=1;whiteSpace=wrap;align=left;verticalAlign=top;fontSize=12;fontColor=#202124;fontStyle=1;spacing=0;" vertex="1" parent="1"><mxGeometry x="66" y="318" width="237" height="18" as="geometry"/></mxCell>
<mxCell id="c35" value="auth, rate limits, routing" style="text;html=1;whiteSpace=wrap;align=left;verticalAlign=top;fontSize=10;fontColor=#5F6368;fontStyle=0;spacing=0;" vertex="1" parent="1"><mxGeometry x="66" y="336" width="237" height="16" as="geometry"/></mxCell>
<mxCell id="g2" value="&lt;b&gt;&lt;/b&gt;" style="rounded=1;arcSize=8;html=1;whiteSpace=wrap;strokeColor=#DADCE0;fillColor=#FFFFFF;dashed=0;fontSize=12;fontStyle=0;fontColor=#3C4043;align=left;verticalAlign=top;spacingLeft=8;" vertex="1" parent="1"><mxGeometry x="321" y="310" width="253" height="56" as="geometry"/></mxCell>
<mxCell id="c37" value="Web BFF" style="text;html=1;whiteSpace=wrap;align=left;verticalAlign=top;fontSize=12;fontColor=#202124;fontStyle=1;spacing=0;" vertex="1" parent="1"><mxGeometry x="331" y="318" width="237" height="18" as="geometry"/></mxCell>
<mxCell id="c38" value="page composition, SSR" style="text;html=1;whiteSpace=wrap;align=left;verticalAlign=top;fontSize=10;fontColor=#5F6368;fontStyle=0;spacing=0;" vertex="1" parent="1"><mxGeometry x="331" y="336" width="237" height="16" as="geometry"/></mxCell>
<mxCell id="g3" value="&lt;b&gt;&lt;/b&gt;" style="rounded=1;arcSize=8;html=1;whiteSpace=wrap;strokeColor=#DADCE0;fillColor=#FFFFFF;dashed=0;fontSize=12;fontStyle=0;fontColor=#3C4043;align=left;verticalAlign=top;spacingLeft=8;" vertex="1" parent="1"><mxGeometry x="586" y="310" width="253" height="56" as="geometry"/></mxCell>
<mxCell id="c40" value="Mobile BFF" style="text;html=1;whiteSpace=wrap;align=left;verticalAlign=top;fontSize=12;fontColor=#202124;fontStyle=1;spacing=0;" vertex="1" parent="1"><mxGeometry x="596" y="318" width="237" height="18" as="geometry"/></mxCell>
<mxCell id="c41" value="smaller payloads, versioned" style="text;html=1;whiteSpace=wrap;align=left;verticalAlign=top;fontSize=10;fontColor=#5F6368;fontStyle=0;spacing=0;" vertex="1" parent="1"><mxGeometry x="596" y="336" width="237" height="16" as="geometry"/></mxCell>
<mxCell id="g4" value="&lt;b&gt;&lt;/b&gt;" style="rounded=1;arcSize=8;html=1;whiteSpace=wrap;strokeColor=#DADCE0;fillColor=#FFFFFF;dashed=0;fontSize=12;fontStyle=0;fontColor=#3C4043;align=left;verticalAlign=top;spacingLeft=8;" vertex="1" parent="1"><mxGeometry x="851" y="310" width="253" height="56" as="geometry"/></mxCell>
<mxCell id="c43" value="Identity" style="text;html=1;whiteSpace=wrap;align=left;verticalAlign=top;fontSize=12;fontColor=#202124;fontStyle=1;spacing=0;" vertex="1" parent="1"><mxGeometry x="861" y="318" width="237" height="18" as="geometry"/></mxCell>
<mxCell id="c44" value="sessions, OAuth, MFA" style="text;html=1;whiteSpace=wrap;align=left;verticalAlign=top;fontSize=10;fontColor=#5F6368;fontStyle=0;spacing=0;" vertex="1" parent="1"><mxGeometry x="861" y="336" width="237" height="16" as="geometry"/></mxCell>
<mxCell id="c45" value="&lt;b&gt;&lt;/b&gt;" style="rounded=1;arcSize=8;html=1;whiteSpace=wrap;strokeColor=#1A73E8;fillColor=#FFFFFF;dashed=0;fontSize=12;fontStyle=0;fontColor=#3C4043;align=left;verticalAlign=top;spacingLeft=8;" vertex="1" parent="1"><mxGeometry x="40" y="398" width="1080" height="250" as="geometry"/></mxCell>
<mxCell id="c46" style="edgeStyle=none;html=1;rounded=0;strokeColor=#1A73E8;strokeWidth=5;dashed=0;startArrow=none;startFill=1;endArrow=none;endFill=1;endSize=4;startSize=4;" edge="1" parent="1"><mxGeometry relative="1" as="geometry"><mxPoint x="40" y="402" as="sourcePoint"/><mxPoint x="40" y="644" as="targetPoint"/></mxGeometry></mxCell>
<mxCell id="c47" value="3  Domain services: each owns its data, none shares a database" style="text;html=1;whiteSpace=wrap;align=left;verticalAlign=top;fontSize=13;fontColor=#1A73E8;fontStyle=1;spacing=0;" vertex="1" parent="1"><mxGeometry x="54" y="406" width="1060" height="19" as="geometry"/></mxCell>
<mxCell id="c48" value="Browse (read heavy, cache everything)" style="text;html=1;whiteSpace=wrap;align=left;verticalAlign=top;fontSize=11;fontColor=#1A73E8;fontStyle=1;spacing=0;" vertex="1" parent="1"><mxGeometry x="56" y="434" width="520" height="17" as="geometry"/></mxCell>
<mxCell id="s1" value="&lt;b&gt;&lt;/b&gt;" style="rounded=1;arcSize=8;html=1;whiteSpace=wrap;strokeColor=#DADCE0;fillColor=#FFFFFF;dashed=0;fontSize=12;fontStyle=0;fontColor=#3C4043;align=left;verticalAlign=top;spacingLeft=8;" vertex="1" parent="1"><mxGeometry x="56" y="454" width="201.6" height="56" as="geometry"/></mxCell>
<mxCell id="c50" value="Catalog" style="text;html=1;whiteSpace=wrap;align=left;verticalAlign=top;fontSize=12;fontColor=#202124;fontStyle=1;spacing=0;" vertex="1" parent="1"><mxGeometry x="66" y="462" width="185.6" height="18" as="geometry"/></mxCell>
<mxCell id="c51" value="products, variants, media" style="text;html=1;whiteSpace=wrap;align=left;verticalAlign=top;fontSize=10;fontColor=#5F6368;fontStyle=0;spacing=0;" vertex="1" parent="1"><mxGeometry x="66" y="480" width="185.6" height="16" as="geometry"/></mxCell>
<mxCell id="s2" value="&lt;b&gt;&lt;/b&gt;" style="rounded=1;arcSize=8;html=1;whiteSpace=wrap;strokeColor=#DADCE0;fillColor=#FFFFFF;dashed=0;fontSize=12;fontStyle=0;fontColor=#3C4043;align=left;verticalAlign=top;spacingLeft=8;" vertex="1" parent="1"><mxGeometry x="267.6" y="454" width="201.6" height="56" as="geometry"/></mxCell>
<mxCell id="c53" value="Search" style="text;html=1;whiteSpace=wrap;align=left;verticalAlign=top;fontSize=12;fontColor=#202124;fontStyle=1;spacing=0;" vertex="1" parent="1"><mxGeometry x="277.6" y="462" width="185.6" height="18" as="geometry"/></mxCell>
<mxCell id="c54" value="query, facets, ranking" style="text;html=1;whiteSpace=wrap;align=left;verticalAlign=top;fontSize=10;fontColor=#5F6368;fontStyle=0;spacing=0;" vertex="1" parent="1"><mxGeometry x="277.6" y="480" width="185.6" height="16" as="geometry"/></mxCell>
<mxCell id="s3" value="&lt;b&gt;&lt;/b&gt;" style="rounded=1;arcSize=8;html=1;whiteSpace=wrap;strokeColor=#DADCE0;fillColor=#FFFFFF;dashed=0;fontSize=12;fontStyle=0;fontColor=#3C4043;align=left;verticalAlign=top;spacingLeft=8;" vertex="1" parent="1"><mxGeometry x="479.2" y="454" width="201.6" height="56" as="geometry"/></mxCell>
<mxCell id="c56" value="Pricing + promos" style="text;html=1;whiteSpace=wrap;align=left;verticalAlign=top;fontSize=12;fontColor=#202124;fontStyle=1;spacing=0;" vertex="1" parent="1"><mxGeometry x="489.2" y="462" width="185.6" height="18" as="geometry"/></mxCell>
<mxCell id="c57" value="price books, coupons" style="text;html=1;whiteSpace=wrap;align=left;verticalAlign=top;fontSize=10;fontColor=#5F6368;fontStyle=0;spacing=0;" vertex="1" parent="1"><mxGeometry x="489.2" y="480" width="185.6" height="16" as="geometry"/></mxCell>
<mxCell id="s4" value="&lt;b&gt;&lt;/b&gt;" style="rounded=1;arcSize=8;html=1;whiteSpace=wrap;strokeColor=#DADCE0;fillColor=#FFFFFF;dashed=0;fontSize=12;fontStyle=0;fontColor=#3C4043;align=left;verticalAlign=top;spacingLeft=8;" vertex="1" parent="1"><mxGeometry x="690.8" y="454" width="201.6" height="56" as="geometry"/></mxCell>
<mxCell id="c59" value="Recommendations" style="text;html=1;whiteSpace=wrap;align=left;verticalAlign=top;fontSize=12;fontColor=#202124;fontStyle=1;spacing=0;" vertex="1" parent="1"><mxGeometry x="700.8" y="462" width="185.6" height="18" as="geometry"/></mxCell>
<mxCell id="c60" value="optional, can switch off" style="text;html=1;whiteSpace=wrap;align=left;verticalAlign=top;fontSize=10;fontColor=#5F6368;fontStyle=0;spacing=0;" vertex="1" parent="1"><mxGeometry x="700.8" y="480" width="185.6" height="16" as="geometry"/></mxCell>
<mxCell id="s5" value="&lt;b&gt;&lt;/b&gt;" style="rounded=1;arcSize=8;html=1;whiteSpace=wrap;strokeColor=#DADCE0;fillColor=#FFFFFF;dashed=0;fontSize=12;fontStyle=0;fontColor=#3C4043;align=left;verticalAlign=top;spacingLeft=8;" vertex="1" parent="1"><mxGeometry x="902.4" y="454" width="201.6" height="56" as="geometry"/></mxCell>
<mxCell id="c62" value="Reviews" style="text;html=1;whiteSpace=wrap;align=left;verticalAlign=top;fontSize=12;fontColor=#202124;fontStyle=1;spacing=0;" vertex="1" parent="1"><mxGeometry x="912.4" y="462" width="185.6" height="18" as="geometry"/></mxCell>
<mxCell id="c63" value="write rarely, read often" style="text;html=1;whiteSpace=wrap;align=left;verticalAlign=top;fontSize=10;fontColor=#5F6368;fontStyle=0;spacing=0;" vertex="1" parent="1"><mxGeometry x="912.4" y="480" width="185.6" height="16" as="geometry"/></mxCell>
<mxCell id="c64" value="Buy (write path, correctness over speed)" style="text;html=1;whiteSpace=wrap;align=left;verticalAlign=top;fontSize=11;fontColor=#1A73E8;fontStyle=1;spacing=0;" vertex="1" parent="1"><mxGeometry x="56" y="524" width="520" height="17" as="geometry"/></mxCell>
<mxCell id="b1" value="&lt;b&gt;&lt;/b&gt;" style="rounded=1;arcSize=8;html=1;whiteSpace=wrap;strokeColor=#AECBFA;fillColor=#F1F6FE;dashed=0;fontSize=12;fontStyle=0;fontColor=#3C4043;align=left;verticalAlign=top;spacingLeft=8;" vertex="1" parent="1"><mxGeometry x="56" y="544" width="201.6" height="56" as="geometry"/></mxCell>
<mxCell id="c66" value="Cart" style="text;html=1;whiteSpace=wrap;align=left;verticalAlign=top;fontSize=12;fontColor=#202124;fontStyle=1;spacing=0;" vertex="1" parent="1"><mxGeometry x="66" y="552" width="185.6" height="18" as="geometry"/></mxCell>
<mxCell id="c67" value="per session, merge on login" style="text;html=1;whiteSpace=wrap;align=left;verticalAlign=top;fontSize=10;fontColor=#5F6368;fontStyle=0;spacing=0;" vertex="1" parent="1"><mxGeometry x="66" y="570" width="185.6" height="16" as="geometry"/></mxCell>
<mxCell id="b2" value="&lt;b&gt;&lt;/b&gt;" style="rounded=1;arcSize=8;html=1;whiteSpace=wrap;strokeColor=#AECBFA;fillColor=#F1F6FE;dashed=0;fontSize=12;fontStyle=0;fontColor=#3C4043;align=left;verticalAlign=top;spacingLeft=8;" vertex="1" parent="1"><mxGeometry x="267.6" y="544" width="201.6" height="56" as="geometry"/></mxCell>
<mxCell id="c69" value="Checkout" style="text;html=1;whiteSpace=wrap;align=left;verticalAlign=top;fontSize=12;fontColor=#202124;fontStyle=1;spacing=0;" vertex="1" parent="1"><mxGeometry x="277.6" y="552" width="185.6" height="18" as="geometry"/></mxCell>
<mxCell id="c70" value="orchestrates the order saga" style="text;html=1;whiteSpace=wrap;align=left;verticalAlign=top;fontSize=10;fontColor=#5F6368;fontStyle=0;spacing=0;" vertex="1" parent="1"><mxGeometry x="277.6" y="570" width="185.6" height="16" as="geometry"/></mxCell>
<mxCell id="b3" value="&lt;b&gt;&lt;/b&gt;" style="rounded=1;arcSize=8;html=1;whiteSpace=wrap;strokeColor=#AECBFA;fillColor=#F1F6FE;dashed=0;fontSize=12;fontStyle=0;fontColor=#3C4043;align=left;verticalAlign=top;spacingLeft=8;" vertex="1" parent="1"><mxGeometry x="479.2" y="544" width="201.6" height="56" as="geometry"/></mxCell>
<mxCell id="c72" value="Inventory" style="text;html=1;whiteSpace=wrap;align=left;verticalAlign=top;fontSize=12;fontColor=#202124;fontStyle=1;spacing=0;" vertex="1" parent="1"><mxGeometry x="489.2" y="552" width="185.6" height="18" as="geometry"/></mxCell>
<mxCell id="c73" value="available, reserved, sold" style="text;html=1;whiteSpace=wrap;align=left;verticalAlign=top;fontSize=10;fontColor=#5F6368;fontStyle=0;spacing=0;" vertex="1" parent="1"><mxGeometry x="489.2" y="570" width="185.6" height="16" as="geometry"/></mxCell>
<mxCell id="b4" value="&lt;b&gt;&lt;/b&gt;" style="rounded=1;arcSize=8;html=1;whiteSpace=wrap;strokeColor=#AECBFA;fillColor=#F1F6FE;dashed=0;fontSize=12;fontStyle=0;fontColor=#3C4043;align=left;verticalAlign=top;spacingLeft=8;" vertex="1" parent="1"><mxGeometry x="690.8" y="544" width="201.6" height="56" as="geometry"/></mxCell>
<mxCell id="c75" value="Payments" style="text;html=1;whiteSpace=wrap;align=left;verticalAlign=top;fontSize=12;fontColor=#202124;fontStyle=1;spacing=0;" vertex="1" parent="1"><mxGeometry x="700.8" y="552" width="185.6" height="18" as="geometry"/></mxCell>
<mxCell id="c76" value="PSP adapters, idempotent" style="text;html=1;whiteSpace=wrap;align=left;verticalAlign=top;fontSize=10;fontColor=#5F6368;fontStyle=0;spacing=0;" vertex="1" parent="1"><mxGeometry x="700.8" y="570" width="185.6" height="16" as="geometry"/></mxCell>
<mxCell id="b5" value="&lt;b&gt;&lt;/b&gt;" style="rounded=1;arcSize=8;html=1;whiteSpace=wrap;strokeColor=#AECBFA;fillColor=#F1F6FE;dashed=0;fontSize=12;fontStyle=0;fontColor=#3C4043;align=left;verticalAlign=top;spacingLeft=8;" vertex="1" parent="1"><mxGeometry x="902.4" y="544" width="201.6" height="56" as="geometry"/></mxCell>
<mxCell id="c78" value="Orders" style="text;html=1;whiteSpace=wrap;align=left;verticalAlign=top;fontSize=12;fontColor=#202124;fontStyle=1;spacing=0;" vertex="1" parent="1"><mxGeometry x="912.4" y="552" width="185.6" height="18" as="geometry"/></mxCell>
<mxCell id="c79" value="state machine, history" style="text;html=1;whiteSpace=wrap;align=left;verticalAlign=top;fontSize=10;fontColor=#5F6368;fontStyle=0;spacing=0;" vertex="1" parent="1"><mxGeometry x="912.4" y="570" width="185.6" height="16" as="geometry"/></mxCell>
<mxCell id="c80" value="Rule: services call each other only for data they need in the request. Everything else travels as events." style="text;html=1;whiteSpace=wrap;align=left;verticalAlign=top;fontSize=11;fontColor=#5F6368;fontStyle=0;spacing=0;" vertex="1" parent="1"><mxGeometry x="56" y="612" width="1048" height="17" as="geometry"/></mxCell>
<mxCell id="c81" value="&lt;b&gt;&lt;/b&gt;" style="rounded=1;arcSize=8;html=1;whiteSpace=wrap;strokeColor=#8430CE;fillColor=#FFFFFF;dashed=0;fontSize=12;fontStyle=0;fontColor=#3C4043;align=left;verticalAlign=top;spacingLeft=8;" vertex="1" parent="1"><mxGeometry x="40" y="666" width="1080" height="130" as="geometry"/></mxCell>
<mxCell id="c82" style="edgeStyle=none;html=1;rounded=0;strokeColor=#8430CE;strokeWidth=5;dashed=0;startArrow=none;startFill=1;endArrow=none;endFill=1;endSize=4;startSize=4;" edge="1" parent="1"><mxGeometry relative="1" as="geometry"><mxPoint x="40" y="670" as="sourcePoint"/><mxPoint x="40" y="792" as="targetPoint"/></mxGeometry></mxCell>
<mxCell id="c83" value="4  Events: what happened, published once, consumed by many" style="text;html=1;whiteSpace=wrap;align=left;verticalAlign=top;fontSize=13;fontColor=#8430CE;fontStyle=1;spacing=0;" vertex="1" parent="1"><mxGeometry x="54" y="674" width="1060" height="19" as="geometry"/></mxCell>
<mxCell id="q0" value="&lt;b&gt;&lt;/b&gt;" style="rounded=1;arcSize=8;html=1;whiteSpace=wrap;strokeColor=#D7AEFB;fillColor=#F8F0FF;dashed=0;fontSize=12;fontStyle=0;fontColor=#3C4043;align=left;verticalAlign=top;spacingLeft=8;" vertex="1" parent="1"><mxGeometry x="56" y="702" width="1048" height="44" as="geometry"/></mxCell>
<mxCell id="c85" value="Event bus / log" style="text;html=1;whiteSpace=wrap;align=left;verticalAlign=top;fontSize=12;fontColor=#202124;fontStyle=1;spacing=0;" vertex="1" parent="1"><mxGeometry x="66" y="710" width="1032" height="18" as="geometry"/></mxCell>
<mxCell id="c86" value="topics: order.placed, payment.captured, stock.changed, price.changed, order.shipped" style="text;html=1;whiteSpace=wrap;align=left;verticalAlign=top;fontSize=10;fontColor=#5F6368;fontStyle=0;spacing=0;" vertex="1" parent="1"><mxGeometry x="66" y="728" width="1032" height="16" as="geometry"/></mxCell>
<mxCell id="q1" value="&lt;b&gt;&lt;/b&gt;" style="rounded=1;arcSize=8;html=1;whiteSpace=wrap;strokeColor=#DADCE0;fillColor=#FFFFFF;dashed=0;fontSize=12;fontStyle=0;fontColor=#3C4043;align=left;verticalAlign=top;spacingLeft=8;" vertex="1" parent="1"><mxGeometry x="56" y="754" width="201.6" height="34" as="geometry"/></mxCell>
<mxCell id="c88" value="Fulfilment / WMS" style="text;html=1;whiteSpace=wrap;align=left;verticalAlign=top;fontSize=12;fontColor=#202124;fontStyle=1;spacing=0;" vertex="1" parent="1"><mxGeometry x="66" y="762" width="185.6" height="18" as="geometry"/></mxCell>
<mxCell id="q2" value="&lt;b&gt;&lt;/b&gt;" style="rounded=1;arcSize=8;html=1;whiteSpace=wrap;strokeColor=#DADCE0;fillColor=#FFFFFF;dashed=0;fontSize=12;fontStyle=0;fontColor=#3C4043;align=left;verticalAlign=top;spacingLeft=8;" vertex="1" parent="1"><mxGeometry x="267.6" y="754" width="201.6" height="34" as="geometry"/></mxCell>
<mxCell id="c90" value="Notifications" style="text;html=1;whiteSpace=wrap;align=left;verticalAlign=top;fontSize=12;fontColor=#202124;fontStyle=1;spacing=0;" vertex="1" parent="1"><mxGeometry x="277.6" y="762" width="185.6" height="18" as="geometry"/></mxCell>
<mxCell id="q3" value="&lt;b&gt;&lt;/b&gt;" style="rounded=1;arcSize=8;html=1;whiteSpace=wrap;strokeColor=#DADCE0;fillColor=#FFFFFF;dashed=0;fontSize=12;fontStyle=0;fontColor=#3C4043;align=left;verticalAlign=top;spacingLeft=8;" vertex="1" parent="1"><mxGeometry x="479.2" y="754" width="201.6" height="34" as="geometry"/></mxCell>
<mxCell id="c92" value="Search indexer" style="text;html=1;whiteSpace=wrap;align=left;verticalAlign=top;fontSize=12;fontColor=#202124;fontStyle=1;spacing=0;" vertex="1" parent="1"><mxGeometry x="489.2" y="762" width="185.6" height="18" as="geometry"/></mxCell>
<mxCell id="q4" value="&lt;b&gt;&lt;/b&gt;" style="rounded=1;arcSize=8;html=1;whiteSpace=wrap;strokeColor=#DADCE0;fillColor=#FFFFFF;dashed=0;fontSize=12;fontStyle=0;fontColor=#3C4043;align=left;verticalAlign=top;spacingLeft=8;" vertex="1" parent="1"><mxGeometry x="690.8" y="754" width="201.6" height="34" as="geometry"/></mxCell>
<mxCell id="c94" value="Fraud scoring" style="text;html=1;whiteSpace=wrap;align=left;verticalAlign=top;fontSize=12;fontColor=#202124;fontStyle=1;spacing=0;" vertex="1" parent="1"><mxGeometry x="700.8" y="762" width="185.6" height="18" as="geometry"/></mxCell>
<mxCell id="q5" value="&lt;b&gt;&lt;/b&gt;" style="rounded=1;arcSize=8;html=1;whiteSpace=wrap;strokeColor=#DADCE0;fillColor=#FFFFFF;dashed=0;fontSize=12;fontStyle=0;fontColor=#3C4043;align=left;verticalAlign=top;spacingLeft=8;" vertex="1" parent="1"><mxGeometry x="902.4" y="754" width="201.6" height="34" as="geometry"/></mxCell>
<mxCell id="c96" value="Analytics + clickstream" style="text;html=1;whiteSpace=wrap;align=left;verticalAlign=top;fontSize=12;fontColor=#202124;fontStyle=1;spacing=0;" vertex="1" parent="1"><mxGeometry x="912.4" y="762" width="185.6" height="18" as="geometry"/></mxCell>
<mxCell id="c97" value="&lt;b&gt;&lt;/b&gt;" style="rounded=1;arcSize=8;html=1;whiteSpace=wrap;strokeColor=#1E8E3E;fillColor=#FFFFFF;dashed=0;fontSize=12;fontStyle=0;fontColor=#3C4043;align=left;verticalAlign=top;spacingLeft=8;" vertex="1" parent="1"><mxGeometry x="40" y="814" width="1080" height="180" as="geometry"/></mxCell>
<mxCell id="c98" style="edgeStyle=none;html=1;rounded=0;strokeColor=#1E8E3E;strokeWidth=5;dashed=0;startArrow=none;startFill=1;endArrow=none;endFill=1;endSize=4;startSize=4;" edge="1" parent="1"><mxGeometry relative="1" as="geometry"><mxPoint x="40" y="818" as="sourcePoint"/><mxPoint x="40" y="990" as="targetPoint"/></mxGeometry></mxCell>
<mxCell id="c99" value="5  Data: the right store per job" style="text;html=1;whiteSpace=wrap;align=left;verticalAlign=top;fontSize=13;fontColor=#1E8E3E;fontStyle=1;spacing=0;" vertex="1" parent="1"><mxGeometry x="54" y="822" width="1060" height="19" as="geometry"/></mxCell>
<mxCell id="d1" value="&lt;b&gt;&lt;/b&gt;" style="rounded=1;arcSize=8;html=1;whiteSpace=wrap;strokeColor=#DADCE0;fillColor=#FFFFFF;dashed=0;fontSize=12;fontStyle=0;fontColor=#3C4043;align=left;verticalAlign=top;spacingLeft=8;" vertex="1" parent="1"><mxGeometry x="56" y="852" width="201.6" height="56" as="geometry"/></mxCell>
<mxCell id="c101" value="Cache cluster" style="text;html=1;whiteSpace=wrap;align=left;verticalAlign=top;fontSize=12;fontColor=#202124;fontStyle=1;spacing=0;" vertex="1" parent="1"><mxGeometry x="66" y="860" width="185.6" height="18" as="geometry"/></mxCell>
<mxCell id="c102" value="product, price, session" style="text;html=1;whiteSpace=wrap;align=left;verticalAlign=top;fontSize=10;fontColor=#5F6368;fontStyle=0;spacing=0;" vertex="1" parent="1"><mxGeometry x="66" y="878" width="185.6" height="16" as="geometry"/></mxCell>
<mxCell id="d2" value="&lt;b&gt;&lt;/b&gt;" style="rounded=1;arcSize=8;html=1;whiteSpace=wrap;strokeColor=#DADCE0;fillColor=#FFFFFF;dashed=0;fontSize=12;fontStyle=0;fontColor=#3C4043;align=left;verticalAlign=top;spacingLeft=8;" vertex="1" parent="1"><mxGeometry x="267.6" y="852" width="201.6" height="56" as="geometry"/></mxCell>
<mxCell id="c104" value="Catalog store" style="text;html=1;whiteSpace=wrap;align=left;verticalAlign=top;fontSize=12;fontColor=#202124;fontStyle=1;spacing=0;" vertex="1" parent="1"><mxGeometry x="277.6" y="860" width="185.6" height="18" as="geometry"/></mxCell>
<mxCell id="c105" value="document DB + read replicas" style="text;html=1;whiteSpace=wrap;align=left;verticalAlign=top;fontSize=10;fontColor=#5F6368;fontStyle=0;spacing=0;" vertex="1" parent="1"><mxGeometry x="277.6" y="878" width="185.6" height="16" as="geometry"/></mxCell>
<mxCell id="d3" value="&lt;b&gt;&lt;/b&gt;" style="rounded=1;arcSize=8;html=1;whiteSpace=wrap;strokeColor=#DADCE0;fillColor=#FFFFFF;dashed=0;fontSize=12;fontStyle=0;fontColor=#3C4043;align=left;verticalAlign=top;spacingLeft=8;" vertex="1" parent="1"><mxGeometry x="479.2" y="852" width="201.6" height="56" as="geometry"/></mxCell>
<mxCell id="c107" value="Search index" style="text;html=1;whiteSpace=wrap;align=left;verticalAlign=top;fontSize=12;fontColor=#202124;fontStyle=1;spacing=0;" vertex="1" parent="1"><mxGeometry x="489.2" y="860" width="185.6" height="18" as="geometry"/></mxCell>
<mxCell id="c108" value="rebuilt from events" style="text;html=1;whiteSpace=wrap;align=left;verticalAlign=top;fontSize=10;fontColor=#5F6368;fontStyle=0;spacing=0;" vertex="1" parent="1"><mxGeometry x="489.2" y="878" width="185.6" height="16" as="geometry"/></mxCell>
<mxCell id="d4" value="&lt;b&gt;&lt;/b&gt;" style="rounded=1;arcSize=8;html=1;whiteSpace=wrap;strokeColor=#DADCE0;fillColor=#FFFFFF;dashed=0;fontSize=12;fontStyle=0;fontColor=#3C4043;align=left;verticalAlign=top;spacingLeft=8;" vertex="1" parent="1"><mxGeometry x="690.8" y="852" width="201.6" height="56" as="geometry"/></mxCell>
<mxCell id="c110" value="Cart store" style="text;html=1;whiteSpace=wrap;align=left;verticalAlign=top;fontSize=12;fontColor=#202124;fontStyle=1;spacing=0;" vertex="1" parent="1"><mxGeometry x="700.8" y="860" width="185.6" height="18" as="geometry"/></mxCell>
<mxCell id="c111" value="key-value, TTL 30 days" style="text;html=1;whiteSpace=wrap;align=left;verticalAlign=top;fontSize=10;fontColor=#5F6368;fontStyle=0;spacing=0;" vertex="1" parent="1"><mxGeometry x="700.8" y="878" width="185.6" height="16" as="geometry"/></mxCell>
<mxCell id="d5" value="&lt;b&gt;&lt;/b&gt;" style="rounded=1;arcSize=8;html=1;whiteSpace=wrap;strokeColor=#DADCE0;fillColor=#FFFFFF;dashed=0;fontSize=12;fontStyle=0;fontColor=#3C4043;align=left;verticalAlign=top;spacingLeft=8;" vertex="1" parent="1"><mxGeometry x="902.4" y="852" width="201.6" height="56" as="geometry"/></mxCell>
<mxCell id="c113" value="Object storage" style="text;html=1;whiteSpace=wrap;align=left;verticalAlign=top;fontSize=12;fontColor=#202124;fontStyle=1;spacing=0;" vertex="1" parent="1"><mxGeometry x="912.4" y="860" width="185.6" height="18" as="geometry"/></mxCell>
<mxCell id="c114" value="images, exports" style="text;html=1;whiteSpace=wrap;align=left;verticalAlign=top;fontSize=10;fontColor=#5F6368;fontStyle=0;spacing=0;" vertex="1" parent="1"><mxGeometry x="912.4" y="878" width="185.6" height="16" as="geometry"/></mxCell>
<mxCell id="d6" value="&lt;b&gt;&lt;/b&gt;" style="rounded=1;arcSize=8;html=1;whiteSpace=wrap;strokeColor=#A8DAB5;fillColor=#F0F9F2;dashed=0;fontSize=12;fontStyle=0;fontColor=#3C4043;align=left;verticalAlign=top;spacingLeft=8;" vertex="1" parent="1"><mxGeometry x="56" y="920" width="254.5" height="56" as="geometry"/></mxCell>
<mxCell id="c116" value="Inventory DB" style="text;html=1;whiteSpace=wrap;align=left;verticalAlign=top;fontSize=12;fontColor=#202124;fontStyle=1;spacing=0;" vertex="1" parent="1"><mxGeometry x="66" y="928" width="238.5" height="18" as="geometry"/></mxCell>
<mxCell id="c117" value="relational, strongly consistent" style="text;html=1;whiteSpace=wrap;align=left;verticalAlign=top;fontSize=10;fontColor=#5F6368;fontStyle=0;spacing=0;" vertex="1" parent="1"><mxGeometry x="66" y="946" width="238.5" height="16" as="geometry"/></mxCell>
<mxCell id="d7" value="&lt;b&gt;&lt;/b&gt;" style="rounded=1;arcSize=8;html=1;whiteSpace=wrap;strokeColor=#A8DAB5;fillColor=#F0F9F2;dashed=0;fontSize=12;fontStyle=0;fontColor=#3C4043;align=left;verticalAlign=top;spacingLeft=8;" vertex="1" parent="1"><mxGeometry x="320.5" y="920" width="254.5" height="56" as="geometry"/></mxCell>
<mxCell id="c119" value="Orders DB" style="text;html=1;whiteSpace=wrap;align=left;verticalAlign=top;fontSize=12;fontColor=#202124;fontStyle=1;spacing=0;" vertex="1" parent="1"><mxGeometry x="330.5" y="928" width="238.5" height="18" as="geometry"/></mxCell>
<mxCell id="c120" value="relational, sharded by customer" style="text;html=1;whiteSpace=wrap;align=left;verticalAlign=top;fontSize=10;fontColor=#5F6368;fontStyle=0;spacing=0;" vertex="1" parent="1"><mxGeometry x="330.5" y="946" width="238.5" height="16" as="geometry"/></mxCell>
<mxCell id="d8" value="&lt;b&gt;&lt;/b&gt;" style="rounded=1;arcSize=8;html=1;whiteSpace=wrap;strokeColor=#A8DAB5;fillColor=#F0F9F2;dashed=0;fontSize=12;fontStyle=0;fontColor=#3C4043;align=left;verticalAlign=top;spacingLeft=8;" vertex="1" parent="1"><mxGeometry x="585" y="920" width="254.5" height="56" as="geometry"/></mxCell>
<mxCell id="c122" value="Payments ledger" style="text;html=1;whiteSpace=wrap;align=left;verticalAlign=top;fontSize=12;fontColor=#202124;fontStyle=1;spacing=0;" vertex="1" parent="1"><mxGeometry x="595" y="928" width="238.5" height="18" as="geometry"/></mxCell>
<mxCell id="c123" value="append-only, never updated" style="text;html=1;whiteSpace=wrap;align=left;verticalAlign=top;fontSize=10;fontColor=#5F6368;fontStyle=0;spacing=0;" vertex="1" parent="1"><mxGeometry x="595" y="946" width="238.5" height="16" as="geometry"/></mxCell>
<mxCell id="d9" value="&lt;b&gt;&lt;/b&gt;" style="rounded=1;arcSize=8;html=1;whiteSpace=wrap;strokeColor=#A8DAB5;fillColor=#F0F9F2;dashed=0;fontSize=12;fontStyle=0;fontColor=#3C4043;align=left;verticalAlign=top;spacingLeft=8;" vertex="1" parent="1"><mxGeometry x="849.5" y="920" width="254.5" height="56" as="geometry"/></mxCell>
<mxCell id="c125" value="Warehouse / lake" style="text;html=1;whiteSpace=wrap;align=left;verticalAlign=top;fontSize=12;fontColor=#202124;fontStyle=1;spacing=0;" vertex="1" parent="1"><mxGeometry x="859.5" y="928" width="238.5" height="18" as="geometry"/></mxCell>
<mxCell id="c126" value="reporting, ML, finance" style="text;html=1;whiteSpace=wrap;align=left;verticalAlign=top;fontSize=10;fontColor=#5F6368;fontStyle=0;spacing=0;" vertex="1" parent="1"><mxGeometry x="859.5" y="946" width="238.5" height="16" as="geometry"/></mxCell>
<mxCell id="c127" value="Every buy-path store runs across three zones with synchronous replicas. Browse stores can lag seconds behind; nobody notices." style="text;html=1;whiteSpace=wrap;align=left;verticalAlign=top;fontSize=12;fontColor=#3C4043;fontStyle=1;spacing=0;" vertex="1" parent="1"><mxGeometry x="40" y="1012" width="1080" height="18" as="geometry"/></mxCell>
<mxCell id="c128" value="Names are generic on purpose. Parts 5 to 9 of this series map each box to AWS, Azure and Google Cloud services." style="text;html=1;whiteSpace=wrap;align=left;verticalAlign=top;fontSize=11;fontColor=#5F6368;fontStyle=0;spacing=0;" vertex="1" parent="1"><mxGeometry x="40" y="1036" width="1080" height="17" as="geometry"/></mxCell>
<mxCell id="c129" value="&lt;b&gt;&lt;/b&gt;" style="rounded=1;arcSize=8;html=1;whiteSpace=wrap;strokeColor=#5F6368;fillColor=#FFFFFF;dashed=0;fontSize=12;fontStyle=0;fontColor=#3C4043;align=left;verticalAlign=top;spacingLeft=8;" vertex="1" parent="1"><mxGeometry x="1140" y="146" width="340" height="330" as="geometry"/></mxCell>
<mxCell id="c130" style="edgeStyle=none;html=1;rounded=0;strokeColor=#5F6368;strokeWidth=5;dashed=0;startArrow=none;startFill=1;endArrow=none;endFill=1;endSize=4;startSize=4;" edge="1" parent="1"><mxGeometry relative="1" as="geometry"><mxPoint x="1140" y="150" as="sourcePoint"/><mxPoint x="1140" y="472" as="targetPoint"/></mxGeometry></mxCell>
<mxCell id="c131" value="Outside partners" style="text;html=1;whiteSpace=wrap;align=left;verticalAlign=top;fontSize=13;fontColor=#5F6368;fontStyle=1;spacing=0;" vertex="1" parent="1"><mxGeometry x="1154" y="154" width="320" height="19" as="geometry"/></mxCell>
<mxCell id="x1" value="&lt;b&gt;&lt;/b&gt;" style="rounded=1;arcSize=8;html=1;whiteSpace=wrap;strokeColor=#DADCE0;fillColor=#FFFFFF;dashed=0;fontSize=12;fontStyle=0;fontColor=#3C4043;align=left;verticalAlign=top;spacingLeft=8;" vertex="1" parent="1"><mxGeometry x="1156" y="184" width="308" height="56" as="geometry"/></mxCell>
<mxCell id="c133" value="Payment providers (PSP A + B)" style="text;html=1;whiteSpace=wrap;align=left;verticalAlign=top;fontSize=12;fontColor=#202124;fontStyle=1;spacing=0;" vertex="1" parent="1"><mxGeometry x="1166" y="192" width="292" height="18" as="geometry"/></mxCell>
<mxCell id="c134" value="authorize, capture, refund" style="text;html=1;whiteSpace=wrap;align=left;verticalAlign=top;fontSize=10;fontColor=#5F6368;fontStyle=0;spacing=0;" vertex="1" parent="1"><mxGeometry x="1166" y="210" width="292" height="16" as="geometry"/></mxCell>
<mxCell id="x2" value="&lt;b&gt;&lt;/b&gt;" style="rounded=1;arcSize=8;html=1;whiteSpace=wrap;strokeColor=#DADCE0;fillColor=#FFFFFF;dashed=0;fontSize=12;fontStyle=0;fontColor=#3C4043;align=left;verticalAlign=top;spacingLeft=8;" vertex="1" parent="1"><mxGeometry x="1156" y="250" width="308" height="56" as="geometry"/></mxCell>
<mxCell id="c136" value="Tax + fraud services" style="text;html=1;whiteSpace=wrap;align=left;verticalAlign=top;fontSize=12;fontColor=#202124;fontStyle=1;spacing=0;" vertex="1" parent="1"><mxGeometry x="1166" y="258" width="292" height="18" as="geometry"/></mxCell>
<mxCell id="c137" value="called inside checkout" style="text;html=1;whiteSpace=wrap;align=left;verticalAlign=top;fontSize=10;fontColor=#5F6368;fontStyle=0;spacing=0;" vertex="1" parent="1"><mxGeometry x="1166" y="276" width="292" height="16" as="geometry"/></mxCell>
<mxCell id="x3" value="&lt;b&gt;&lt;/b&gt;" style="rounded=1;arcSize=8;html=1;whiteSpace=wrap;strokeColor=#DADCE0;fillColor=#FFFFFF;dashed=0;fontSize=12;fontStyle=0;fontColor=#3C4043;align=left;verticalAlign=top;spacingLeft=8;" vertex="1" parent="1"><mxGeometry x="1156" y="316" width="308" height="56" as="geometry"/></mxCell>
<mxCell id="c139" value="Carriers + warehouses" style="text;html=1;whiteSpace=wrap;align=left;verticalAlign=top;fontSize=12;fontColor=#202124;fontStyle=1;spacing=0;" vertex="1" parent="1"><mxGeometry x="1166" y="324" width="292" height="18" as="geometry"/></mxCell>
<mxCell id="c140" value="rates, labels, tracking" style="text;html=1;whiteSpace=wrap;align=left;verticalAlign=top;fontSize=10;fontColor=#5F6368;fontStyle=0;spacing=0;" vertex="1" parent="1"><mxGeometry x="1166" y="342" width="292" height="16" as="geometry"/></mxCell>
<mxCell id="x4" value="&lt;b&gt;&lt;/b&gt;" style="rounded=1;arcSize=8;html=1;whiteSpace=wrap;strokeColor=#DADCE0;fillColor=#FFFFFF;dashed=0;fontSize=12;fontStyle=0;fontColor=#3C4043;align=left;verticalAlign=top;spacingLeft=8;" vertex="1" parent="1"><mxGeometry x="1156" y="382" width="308" height="56" as="geometry"/></mxCell>
<mxCell id="c142" value="Email, SMS, push" style="text;html=1;whiteSpace=wrap;align=left;verticalAlign=top;fontSize=12;fontColor=#202124;fontStyle=1;spacing=0;" vertex="1" parent="1"><mxGeometry x="1166" y="390" width="292" height="18" as="geometry"/></mxCell>
<mxCell id="c143" value="delivery receipts back as events" style="text;html=1;whiteSpace=wrap;align=left;verticalAlign=top;fontSize=10;fontColor=#5F6368;fontStyle=0;spacing=0;" vertex="1" parent="1"><mxGeometry x="1166" y="408" width="292" height="16" as="geometry"/></mxCell>
<mxCell id="c144" value="&lt;b&gt;&lt;/b&gt;" style="rounded=1;arcSize=8;html=1;whiteSpace=wrap;strokeColor=#007B83;fillColor=#FFFFFF;dashed=0;fontSize=12;fontStyle=0;fontColor=#3C4043;align=left;verticalAlign=top;spacingLeft=8;" vertex="1" parent="1"><mxGeometry x="1140" y="494" width="340" height="500" as="geometry"/></mxCell>
<mxCell id="c145" style="edgeStyle=none;html=1;rounded=0;strokeColor=#007B83;strokeWidth=5;dashed=0;startArrow=none;startFill=1;endArrow=none;endFill=1;endSize=4;startSize=4;" edge="1" parent="1"><mxGeometry relative="1" as="geometry"><mxPoint x="1140" y="498" as="sourcePoint"/><mxPoint x="1140" y="990" as="targetPoint"/></mxGeometry></mxCell>
<mxCell id="c146" value="Platform (every service gets it free)" style="text;html=1;whiteSpace=wrap;align=left;verticalAlign=top;fontSize=13;fontColor=#007B83;fontStyle=1;spacing=0;" vertex="1" parent="1"><mxGeometry x="1154" y="502" width="320" height="19" as="geometry"/></mxCell>
<mxCell id="p1" value="&lt;b&gt;&lt;/b&gt;" style="rounded=1;arcSize=8;html=1;whiteSpace=wrap;strokeColor=#DADCE0;fillColor=#FFFFFF;dashed=0;fontSize=12;fontStyle=0;fontColor=#3C4043;align=left;verticalAlign=top;spacingLeft=8;" vertex="1" parent="1"><mxGeometry x="1156" y="532" width="308" height="56" as="geometry"/></mxCell>
<mxCell id="c148" value="Observability" style="text;html=1;whiteSpace=wrap;align=left;verticalAlign=top;fontSize=12;fontColor=#202124;fontStyle=1;spacing=0;" vertex="1" parent="1"><mxGeometry x="1166" y="540" width="292" height="18" as="geometry"/></mxCell>
<mxCell id="c149" value="metrics, traces, logs, SLOs" style="text;html=1;whiteSpace=wrap;align=left;verticalAlign=top;fontSize=10;fontColor=#5F6368;fontStyle=0;spacing=0;" vertex="1" parent="1"><mxGeometry x="1166" y="558" width="292" height="16" as="geometry"/></mxCell>
<mxCell id="p2" value="&lt;b&gt;&lt;/b&gt;" style="rounded=1;arcSize=8;html=1;whiteSpace=wrap;strokeColor=#DADCE0;fillColor=#FFFFFF;dashed=0;fontSize=12;fontStyle=0;fontColor=#3C4043;align=left;verticalAlign=top;spacingLeft=8;" vertex="1" parent="1"><mxGeometry x="1156" y="598" width="308" height="56" as="geometry"/></mxCell>
<mxCell id="c151" value="Business alerting" style="text;html=1;whiteSpace=wrap;align=left;verticalAlign=top;fontSize=12;fontColor=#202124;fontStyle=1;spacing=0;" vertex="1" parent="1"><mxGeometry x="1166" y="606" width="292" height="18" as="geometry"/></mxCell>
<mxCell id="c152" value="orders/min, payment success rate" style="text;html=1;whiteSpace=wrap;align=left;verticalAlign=top;fontSize=10;fontColor=#5F6368;fontStyle=0;spacing=0;" vertex="1" parent="1"><mxGeometry x="1166" y="624" width="292" height="16" as="geometry"/></mxCell>
<mxCell id="p3" value="&lt;b&gt;&lt;/b&gt;" style="rounded=1;arcSize=8;html=1;whiteSpace=wrap;strokeColor=#DADCE0;fillColor=#FFFFFF;dashed=0;fontSize=12;fontStyle=0;fontColor=#3C4043;align=left;verticalAlign=top;spacingLeft=8;" vertex="1" parent="1"><mxGeometry x="1156" y="664" width="308" height="56" as="geometry"/></mxCell>
<mxCell id="c154" value="Feature flags + kill switches" style="text;html=1;whiteSpace=wrap;align=left;verticalAlign=top;fontSize=12;fontColor=#202124;fontStyle=1;spacing=0;" vertex="1" parent="1"><mxGeometry x="1166" y="672" width="292" height="18" as="geometry"/></mxCell>
<mxCell id="c155" value="turn off recs, reviews, upsell" style="text;html=1;whiteSpace=wrap;align=left;verticalAlign=top;fontSize=10;fontColor=#5F6368;fontStyle=0;spacing=0;" vertex="1" parent="1"><mxGeometry x="1166" y="690" width="292" height="16" as="geometry"/></mxCell>
<mxCell id="p4" value="&lt;b&gt;&lt;/b&gt;" style="rounded=1;arcSize=8;html=1;whiteSpace=wrap;strokeColor=#DADCE0;fillColor=#FFFFFF;dashed=0;fontSize=12;fontStyle=0;fontColor=#3C4043;align=left;verticalAlign=top;spacingLeft=8;" vertex="1" parent="1"><mxGeometry x="1156" y="730" width="308" height="56" as="geometry"/></mxCell>
<mxCell id="c157" value="Secrets + keys" style="text;html=1;whiteSpace=wrap;align=left;verticalAlign=top;fontSize=12;fontColor=#202124;fontStyle=1;spacing=0;" vertex="1" parent="1"><mxGeometry x="1166" y="738" width="292" height="18" as="geometry"/></mxCell>
<mxCell id="c158" value="no card data outside payments" style="text;html=1;whiteSpace=wrap;align=left;verticalAlign=top;fontSize=10;fontColor=#5F6368;fontStyle=0;spacing=0;" vertex="1" parent="1"><mxGeometry x="1166" y="756" width="292" height="16" as="geometry"/></mxCell>
<mxCell id="p5" value="&lt;b&gt;&lt;/b&gt;" style="rounded=1;arcSize=8;html=1;whiteSpace=wrap;strokeColor=#DADCE0;fillColor=#FFFFFF;dashed=0;fontSize=12;fontStyle=0;fontColor=#3C4043;align=left;verticalAlign=top;spacingLeft=8;" vertex="1" parent="1"><mxGeometry x="1156" y="796" width="308" height="56" as="geometry"/></mxCell>
<mxCell id="c160" value="CI/CD + load testing" style="text;html=1;whiteSpace=wrap;align=left;verticalAlign=top;fontSize=12;fontColor=#202124;fontStyle=1;spacing=0;" vertex="1" parent="1"><mxGeometry x="1166" y="804" width="292" height="18" as="geometry"/></mxCell>
<mxCell id="c161" value="every release, 2x peak monthly" style="text;html=1;whiteSpace=wrap;align=left;verticalAlign=top;fontSize=10;fontColor=#5F6368;fontStyle=0;spacing=0;" vertex="1" parent="1"><mxGeometry x="1166" y="822" width="292" height="16" as="geometry"/></mxCell>
<mxCell id="p6" value="&lt;b&gt;&lt;/b&gt;" style="rounded=1;arcSize=8;html=1;whiteSpace=wrap;strokeColor=#DADCE0;fillColor=#FFFFFF;dashed=0;fontSize=12;fontStyle=0;fontColor=#3C4043;align=left;verticalAlign=top;spacingLeft=8;" vertex="1" parent="1"><mxGeometry x="1156" y="862" width="308" height="56" as="geometry"/></mxCell>
<mxCell id="c163" value="Autoscaling + capacity plan" style="text;html=1;whiteSpace=wrap;align=left;verticalAlign=top;fontSize=12;fontColor=#202124;fontStyle=1;spacing=0;" vertex="1" parent="1"><mxGeometry x="1166" y="870" width="292" height="18" as="geometry"/></mxCell>
<mxCell id="c164" value="pre-scaled before known peaks" style="text;html=1;whiteSpace=wrap;align=left;verticalAlign=top;fontSize=10;fontColor=#5F6368;fontStyle=0;spacing=0;" vertex="1" parent="1"><mxGeometry x="1166" y="888" width="292" height="16" as="geometry"/></mxCell>
<mxCell id="p7" value="&lt;b&gt;&lt;/b&gt;" style="rounded=1;arcSize=8;html=1;whiteSpace=wrap;strokeColor=#DADCE0;fillColor=#FFFFFF;dashed=0;fontSize=12;fontStyle=0;fontColor=#3C4043;align=left;verticalAlign=top;spacingLeft=8;" vertex="1" parent="1"><mxGeometry x="1156" y="928" width="308" height="52" as="geometry"/></mxCell>
<mxCell id="c166" value="Container platform" style="text;html=1;whiteSpace=wrap;align=left;verticalAlign=top;fontSize=12;fontColor=#202124;fontStyle=1;spacing=0;" vertex="1" parent="1"><mxGeometry x="1166" y="936" width="292" height="18" as="geometry"/></mxCell>
<mxCell id="c167" value="three zones, per-service quotas" style="text;html=1;whiteSpace=wrap;align=left;verticalAlign=top;fontSize=10;fontColor=#5F6368;fontStyle=0;spacing=0;" vertex="1" parent="1"><mxGeometry x="1166" y="954" width="292" height="16" as="geometry"/></mxCell>
<mxCell id="c168" style="edgeStyle=none;html=1;rounded=0;strokeColor=#D93025;strokeWidth=2;dashed=0;startArrow=none;startFill=1;endArrow=block;endFill=1;endSize=4;startSize=4;" edge="1" parent="1"><mxGeometry relative="1" as="geometry"><mxPoint x="175" y="122" as="sourcePoint"/><mxPoint x="175" y="144" as="targetPoint"/></mxGeometry></mxCell>
<mxCell id="c169" style="edgeStyle=none;html=1;rounded=0;strokeColor=#D93025;strokeWidth=2;dashed=0;startArrow=none;startFill=1;endArrow=block;endFill=1;endSize=4;startSize=4;" edge="1" parent="1"><mxGeometry relative="1" as="geometry"><mxPoint x="445" y="122" as="sourcePoint"/><mxPoint x="445" y="144" as="targetPoint"/></mxGeometry></mxCell>
<mxCell id="c170" style="edgeStyle=none;html=1;rounded=0;strokeColor=#D93025;strokeWidth=2;dashed=0;startArrow=none;startFill=1;endArrow=block;endFill=1;endSize=4;startSize=4;" edge="1" parent="1"><mxGeometry relative="1" as="geometry"><mxPoint x="715" y="122" as="sourcePoint"/><mxPoint x="715" y="144" as="targetPoint"/></mxGeometry></mxCell>
<mxCell id="c171" style="edgeStyle=none;html=1;rounded=0;strokeColor=#D93025;strokeWidth=2;dashed=0;startArrow=none;startFill=1;endArrow=block;endFill=1;endSize=4;startSize=4;" edge="1" parent="1"><mxGeometry relative="1" as="geometry"><mxPoint x="985" y="122" as="sourcePoint"/><mxPoint x="985" y="144" as="targetPoint"/></mxGeometry></mxCell>
<mxCell id="c172" style="edgeStyle=none;html=1;rounded=0;strokeColor=#E37400;strokeWidth=2;dashed=0;startArrow=none;startFill=1;endArrow=block;endFill=1;endSize=4;startSize=4;" edge="1" parent="1"><mxGeometry relative="1" as="geometry"><mxPoint x="300" y="254" as="sourcePoint"/><mxPoint x="300" y="270" as="targetPoint"/></mxGeometry></mxCell>
<mxCell id="c173" style="edgeStyle=none;html=1;rounded=0;strokeColor=#E37400;strokeWidth=2;dashed=0;startArrow=none;startFill=1;endArrow=block;endFill=1;endSize=4;startSize=4;" edge="1" parent="1"><mxGeometry relative="1" as="geometry"><mxPoint x="300" y="380" as="sourcePoint"/><mxPoint x="300" y="396" as="targetPoint"/></mxGeometry></mxCell>
<mxCell id="c174" style="edgeStyle=none;html=1;rounded=0;strokeColor=#E37400;strokeWidth=2;dashed=0;startArrow=none;startFill=1;endArrow=block;endFill=1;endSize=4;startSize=4;" edge="1" parent="1"><mxGeometry relative="1" as="geometry"><mxPoint x="840" y="254" as="sourcePoint"/><mxPoint x="840" y="270" as="targetPoint"/></mxGeometry></mxCell>
<mxCell id="c175" style="edgeStyle=none;html=1;rounded=0;strokeColor=#E37400;strokeWidth=2;dashed=0;startArrow=none;startFill=1;endArrow=block;endFill=1;endSize=4;startSize=4;" edge="1" parent="1"><mxGeometry relative="1" as="geometry"><mxPoint x="840" y="380" as="sourcePoint"/><mxPoint x="840" y="396" as="targetPoint"/></mxGeometry></mxCell>
<mxCell id="c176" style="edgeStyle=none;html=1;rounded=0;strokeColor=#8430CE;strokeWidth=2;dashed=0;startArrow=none;startFill=1;endArrow=block;endFill=1;endSize=4;startSize=4;" edge="1" parent="1"><mxGeometry relative="1" as="geometry"><mxPoint x="580" y="648" as="sourcePoint"/><mxPoint x="580" y="664" as="targetPoint"/></mxGeometry></mxCell>
<mxCell id="c177" style="edgeStyle=none;html=1;rounded=0;strokeColor=#1E8E3E;strokeWidth=2;dashed=0;startArrow=none;startFill=1;endArrow=block;endFill=1;endSize=4;startSize=4;" edge="1" parent="1"><mxGeometry relative="1" as="geometry"><mxPoint x="580" y="796" as="sourcePoint"/><mxPoint x="580" y="812" as="targetPoint"/></mxGeometry></mxCell></root></mxGraphModel></diagram>
<diagram id="ecom-checkout" name="Checkout: placing one order safely"><mxGraphModel dx="1400" dy="900" grid="1" gridSize="10" guides="1" tooltips="1" connect="1" arrows="1" fold="1" page="1" pageScale="1" pageWidth="1500" pageHeight="930" math="0" shadow="0"><root><mxCell id="0"/><mxCell id="1" parent="0"/><mxCell id="c1" value="Placing one order: the checkout saga, step by step" style="text;html=1;whiteSpace=wrap;align=left;verticalAlign=top;fontSize=18;fontColor=#232F3E;fontStyle=1;spacing=0;" vertex="1" parent="1"><mxGeometry x="20" y="14" width="1100" height="24" as="geometry"/></mxCell>
<mxCell id="c2" value="Every step can be retried. The idempotency key and the order id are what make retries safe." style="text;html=1;whiteSpace=wrap;align=left;verticalAlign=top;fontSize=12;fontColor=#5F6368;fontStyle=0;spacing=0;" vertex="1" parent="1"><mxGeometry x="20" y="40" width="1200" height="18" as="geometry"/></mxCell>
<mxCell id="c3" value="&lt;b&gt;&lt;/b&gt;" style="rounded=1;arcSize=8;html=1;whiteSpace=wrap;strokeColor=#5F6368;fillColor=#FFFFFF;dashed=0;fontSize=12;fontStyle=0;fontColor=#3C4043;align=left;verticalAlign=top;spacingLeft=8;" vertex="1" parent="1"><mxGeometry x="40" y="76" width="150" height="40" as="geometry"/></mxCell>
<mxCell id="c4" value="Shopper app" style="text;html=1;whiteSpace=wrap;align=center;verticalAlign=top;fontSize=13;fontColor=#5F6368;fontStyle=1;spacing=0;" vertex="1" parent="1"><mxGeometry x="40" y="88" width="150" height="19" as="geometry"/></mxCell>
<mxCell id="c5" style="edgeStyle=none;html=1;rounded=0;strokeColor=#BDC1C6;strokeWidth=1;dashed=1;startArrow=none;startFill=1;endArrow=none;endFill=1;endSize=4;startSize=4;" edge="1" parent="1"><mxGeometry relative="1" as="geometry"><mxPoint x="115" y="116" as="sourcePoint"/><mxPoint x="115" y="740" as="targetPoint"/></mxGeometry></mxCell>
<mxCell id="c6" value="&lt;b&gt;&lt;/b&gt;" style="rounded=1;arcSize=8;html=1;whiteSpace=wrap;strokeColor=#E37400;fillColor=#FFFFFF;dashed=0;fontSize=12;fontStyle=0;fontColor=#3C4043;align=left;verticalAlign=top;spacingLeft=8;" vertex="1" parent="1"><mxGeometry x="220" y="76" width="150" height="40" as="geometry"/></mxCell>
<mxCell id="c7" value="API gateway" style="text;html=1;whiteSpace=wrap;align=center;verticalAlign=top;fontSize=13;fontColor=#E37400;fontStyle=1;spacing=0;" vertex="1" parent="1"><mxGeometry x="220" y="88" width="150" height="19" as="geometry"/></mxCell>
<mxCell id="c8" style="edgeStyle=none;html=1;rounded=0;strokeColor=#BDC1C6;strokeWidth=1;dashed=1;startArrow=none;startFill=1;endArrow=none;endFill=1;endSize=4;startSize=4;" edge="1" parent="1"><mxGeometry relative="1" as="geometry"><mxPoint x="295" y="116" as="sourcePoint"/><mxPoint x="295" y="740" as="targetPoint"/></mxGeometry></mxCell>
<mxCell id="c9" value="&lt;b&gt;&lt;/b&gt;" style="rounded=1;arcSize=8;html=1;whiteSpace=wrap;strokeColor=#1A73E8;fillColor=#FFFFFF;dashed=0;fontSize=12;fontStyle=0;fontColor=#3C4043;align=left;verticalAlign=top;spacingLeft=8;" vertex="1" parent="1"><mxGeometry x="400" y="76" width="150" height="40" as="geometry"/></mxCell>
<mxCell id="c10" value="Checkout" style="text;html=1;whiteSpace=wrap;align=center;verticalAlign=top;fontSize=13;fontColor=#1A73E8;fontStyle=1;spacing=0;" vertex="1" parent="1"><mxGeometry x="400" y="88" width="150" height="19" as="geometry"/></mxCell>
<mxCell id="c11" style="edgeStyle=none;html=1;rounded=0;strokeColor=#BDC1C6;strokeWidth=1;dashed=1;startArrow=none;startFill=1;endArrow=none;endFill=1;endSize=4;startSize=4;" edge="1" parent="1"><mxGeometry relative="1" as="geometry"><mxPoint x="475" y="116" as="sourcePoint"/><mxPoint x="475" y="740" as="targetPoint"/></mxGeometry></mxCell>
<mxCell id="c12" value="&lt;b&gt;&lt;/b&gt;" style="rounded=1;arcSize=8;html=1;whiteSpace=wrap;strokeColor=#1E8E3E;fillColor=#FFFFFF;dashed=0;fontSize=12;fontStyle=0;fontColor=#3C4043;align=left;verticalAlign=top;spacingLeft=8;" vertex="1" parent="1"><mxGeometry x="580" y="76" width="150" height="40" as="geometry"/></mxCell>
<mxCell id="c13" value="Inventory" style="text;html=1;whiteSpace=wrap;align=center;verticalAlign=top;fontSize=13;fontColor=#1E8E3E;fontStyle=1;spacing=0;" vertex="1" parent="1"><mxGeometry x="580" y="88" width="150" height="19" as="geometry"/></mxCell>
<mxCell id="c14" style="edgeStyle=none;html=1;rounded=0;strokeColor=#BDC1C6;strokeWidth=1;dashed=1;startArrow=none;startFill=1;endArrow=none;endFill=1;endSize=4;startSize=4;" edge="1" parent="1"><mxGeometry relative="1" as="geometry"><mxPoint x="655" y="116" as="sourcePoint"/><mxPoint x="655" y="740" as="targetPoint"/></mxGeometry></mxCell>
<mxCell id="c15" value="&lt;b&gt;&lt;/b&gt;" style="rounded=1;arcSize=8;html=1;whiteSpace=wrap;strokeColor=#1E8E3E;fillColor=#FFFFFF;dashed=0;fontSize=12;fontStyle=0;fontColor=#3C4043;align=left;verticalAlign=top;spacingLeft=8;" vertex="1" parent="1"><mxGeometry x="760" y="76" width="150" height="40" as="geometry"/></mxCell>
<mxCell id="c16" value="Orders DB" style="text;html=1;whiteSpace=wrap;align=center;verticalAlign=top;fontSize=13;fontColor=#1E8E3E;fontStyle=1;spacing=0;" vertex="1" parent="1"><mxGeometry x="760" y="88" width="150" height="19" as="geometry"/></mxCell>
<mxCell id="c17" style="edgeStyle=none;html=1;rounded=0;strokeColor=#BDC1C6;strokeWidth=1;dashed=1;startArrow=none;startFill=1;endArrow=none;endFill=1;endSize=4;startSize=4;" edge="1" parent="1"><mxGeometry relative="1" as="geometry"><mxPoint x="835" y="116" as="sourcePoint"/><mxPoint x="835" y="740" as="targetPoint"/></mxGeometry></mxCell>
<mxCell id="c18" value="&lt;b&gt;&lt;/b&gt;" style="rounded=1;arcSize=8;html=1;whiteSpace=wrap;strokeColor=#1A73E8;fillColor=#FFFFFF;dashed=0;fontSize=12;fontStyle=0;fontColor=#3C4043;align=left;verticalAlign=top;spacingLeft=8;" vertex="1" parent="1"><mxGeometry x="940" y="76" width="150" height="40" as="geometry"/></mxCell>
<mxCell id="c19" value="Payments" style="text;html=1;whiteSpace=wrap;align=center;verticalAlign=top;fontSize=13;fontColor=#1A73E8;fontStyle=1;spacing=0;" vertex="1" parent="1"><mxGeometry x="940" y="88" width="150" height="19" as="geometry"/></mxCell>
<mxCell id="c20" style="edgeStyle=none;html=1;rounded=0;strokeColor=#BDC1C6;strokeWidth=1;dashed=1;startArrow=none;startFill=1;endArrow=none;endFill=1;endSize=4;startSize=4;" edge="1" parent="1"><mxGeometry relative="1" as="geometry"><mxPoint x="1015" y="116" as="sourcePoint"/><mxPoint x="1015" y="740" as="targetPoint"/></mxGeometry></mxCell>
<mxCell id="c21" value="&lt;b&gt;&lt;/b&gt;" style="rounded=1;arcSize=8;html=1;whiteSpace=wrap;strokeColor=#5F6368;fillColor=#FFFFFF;dashed=0;fontSize=12;fontStyle=0;fontColor=#3C4043;align=left;verticalAlign=top;spacingLeft=8;" vertex="1" parent="1"><mxGeometry x="1120" y="76" width="150" height="40" as="geometry"/></mxCell>
<mxCell id="c22" value="PSP" style="text;html=1;whiteSpace=wrap;align=center;verticalAlign=top;fontSize=13;fontColor=#5F6368;fontStyle=1;spacing=0;" vertex="1" parent="1"><mxGeometry x="1120" y="88" width="150" height="19" as="geometry"/></mxCell>
<mxCell id="c23" style="edgeStyle=none;html=1;rounded=0;strokeColor=#BDC1C6;strokeWidth=1;dashed=1;startArrow=none;startFill=1;endArrow=none;endFill=1;endSize=4;startSize=4;" edge="1" parent="1"><mxGeometry relative="1" as="geometry"><mxPoint x="1195" y="116" as="sourcePoint"/><mxPoint x="1195" y="740" as="targetPoint"/></mxGeometry></mxCell>
<mxCell id="c24" value="&lt;b&gt;&lt;/b&gt;" style="rounded=1;arcSize=8;html=1;whiteSpace=wrap;strokeColor=#8430CE;fillColor=#FFFFFF;dashed=0;fontSize=12;fontStyle=0;fontColor=#3C4043;align=left;verticalAlign=top;spacingLeft=8;" vertex="1" parent="1"><mxGeometry x="1300" y="76" width="150" height="40" as="geometry"/></mxCell>
<mxCell id="c25" value="Event bus" style="text;html=1;whiteSpace=wrap;align=center;verticalAlign=top;fontSize=13;fontColor=#8430CE;fontStyle=1;spacing=0;" vertex="1" parent="1"><mxGeometry x="1300" y="88" width="150" height="19" as="geometry"/></mxCell>
<mxCell id="c26" style="edgeStyle=none;html=1;rounded=0;strokeColor=#BDC1C6;strokeWidth=1;dashed=1;startArrow=none;startFill=1;endArrow=none;endFill=1;endSize=4;startSize=4;" edge="1" parent="1"><mxGeometry relative="1" as="geometry"><mxPoint x="1375" y="116" as="sourcePoint"/><mxPoint x="1375" y="740" as="targetPoint"/></mxGeometry></mxCell>
<mxCell id="c27" style="edgeStyle=none;html=1;rounded=0;strokeColor=#1A73E8;strokeWidth=2;dashed=0;startArrow=none;startFill=1;endArrow=block;endFill=1;endSize=4;startSize=4;" edge="1" parent="1"><mxGeometry relative="1" as="geometry"><mxPoint x="115" y="140" as="sourcePoint"/><mxPoint x="295" y="140" as="targetPoint"/></mxGeometry></mxCell>
<mxCell id="c28" value="1" style="ellipse;html=1;fillColor=#1A73E8;strokeColor=none;fontColor=#FFFFFF;fontStyle=1;fontSize=12;aspect=fixed;" vertex="1" parent="1"><mxGeometry x="121" y="114" width="22" height="22" as="geometry"/></mxCell>
<mxCell id="c29" value="POST /orders  Idempotency-Key: 7f3a-91c2" style="text;html=1;whiteSpace=wrap;align=left;verticalAlign=top;fontSize=11;fontColor=#202124;fontStyle=0;spacing=0;labelBackgroundColor=#FFFFFF;" vertex="1" parent="1"><mxGeometry x="149" y="118" width="440" height="17" as="geometry"/></mxCell>
<mxCell id="c30" style="edgeStyle=none;html=1;rounded=0;strokeColor=#E37400;strokeWidth=2;dashed=0;startArrow=none;startFill=1;endArrow=block;endFill=1;endSize=4;startSize=4;" edge="1" parent="1"><mxGeometry relative="1" as="geometry"><mxPoint x="295" y="140" as="sourcePoint"/><mxPoint x="475" y="140" as="targetPoint"/></mxGeometry></mxCell>
<mxCell id="c31" style="edgeStyle=none;html=1;rounded=0;strokeColor=#1A73E8;strokeWidth=2;dashed=0;startArrow=none;startFill=1;endArrow=block;endFill=1;endSize=4;startSize=4;" edge="1" parent="1"><mxGeometry relative="1" as="geometry"><mxPoint x="475" y="186" as="sourcePoint"/><mxPoint x="479" y="204" as="targetPoint"/><Array as="points"><mxPoint x="525" y="186"/><mxPoint x="525" y="204"/></Array></mxGeometry></mxCell>
<mxCell id="c32" value="2" style="ellipse;html=1;fillColor=#1A73E8;strokeColor=none;fontColor=#FFFFFF;fontStyle=1;fontSize=12;aspect=fixed;" vertex="1" parent="1"><mxGeometry x="441" y="182" width="22" height="22" as="geometry"/></mxCell>
<mxCell id="c33" value="key seen before? return the saved response" style="text;html=1;whiteSpace=wrap;align=left;verticalAlign=top;fontSize=11;fontColor=#202124;fontStyle=0;spacing=0;labelBackgroundColor=#FFFFFF;" vertex="1" parent="1"><mxGeometry x="533" y="188" width="360" height="17" as="geometry"/></mxCell>
<mxCell id="c34" style="edgeStyle=none;html=1;rounded=0;strokeColor=#1E8E3E;strokeWidth=2;dashed=0;startArrow=none;startFill=1;endArrow=block;endFill=1;endSize=4;startSize=4;" edge="1" parent="1"><mxGeometry relative="1" as="geometry"><mxPoint x="475" y="246" as="sourcePoint"/><mxPoint x="655" y="246" as="targetPoint"/></mxGeometry></mxCell>
<mxCell id="c35" value="3" style="ellipse;html=1;fillColor=#1E8E3E;strokeColor=none;fontColor=#FFFFFF;fontStyle=1;fontSize=12;aspect=fixed;" vertex="1" parent="1"><mxGeometry x="481" y="220" width="22" height="22" as="geometry"/></mxCell>
<mxCell id="c36" value="reserve 1 x SKU-4417, hold 10 min" style="text;html=1;whiteSpace=wrap;align=left;verticalAlign=top;fontSize=11;fontColor=#202124;fontStyle=0;spacing=0;labelBackgroundColor=#FFFFFF;" vertex="1" parent="1"><mxGeometry x="509" y="224" width="440" height="17" as="geometry"/></mxCell>
<mxCell id="c37" style="edgeStyle=none;html=1;rounded=0;strokeColor=#1E8E3E;strokeWidth=2;dashed=0;startArrow=none;startFill=1;endArrow=block;endFill=1;endSize=4;startSize=4;" edge="1" parent="1"><mxGeometry relative="1" as="geometry"><mxPoint x="655" y="292" as="sourcePoint"/><mxPoint x="475" y="292" as="targetPoint"/></mxGeometry></mxCell>
<mxCell id="c38" value="4" style="ellipse;html=1;fillColor=#1E8E3E;strokeColor=none;fontColor=#FFFFFF;fontStyle=1;fontSize=12;aspect=fixed;" vertex="1" parent="1"><mxGeometry x="481" y="266" width="22" height="22" as="geometry"/></mxCell>
<mxCell id="c39" value="reservation r-5521 (available 499 → 498)" style="text;html=1;whiteSpace=wrap;align=left;verticalAlign=top;fontSize=11;fontColor=#202124;fontStyle=0;spacing=0;labelBackgroundColor=#FFFFFF;" vertex="1" parent="1"><mxGeometry x="509" y="270" width="440" height="17" as="geometry"/></mxCell>
<mxCell id="c40" style="edgeStyle=none;html=1;rounded=0;strokeColor=#1E8E3E;strokeWidth=2;dashed=0;startArrow=none;startFill=1;endArrow=block;endFill=1;endSize=4;startSize=4;" edge="1" parent="1"><mxGeometry relative="1" as="geometry"><mxPoint x="475" y="338" as="sourcePoint"/><mxPoint x="835" y="338" as="targetPoint"/></mxGeometry></mxCell>
<mxCell id="c41" value="5" style="ellipse;html=1;fillColor=#1E8E3E;strokeColor=none;fontColor=#FFFFFF;fontStyle=1;fontSize=12;aspect=fixed;" vertex="1" parent="1"><mxGeometry x="481" y="312" width="22" height="22" as="geometry"/></mxCell>
<mxCell id="c42" value="insert order o-88213  status=PENDING_PAYMENT" style="text;html=1;whiteSpace=wrap;align=left;verticalAlign=top;fontSize=11;fontColor=#202124;fontStyle=0;spacing=0;labelBackgroundColor=#FFFFFF;" vertex="1" parent="1"><mxGeometry x="509" y="316" width="620" height="17" as="geometry"/></mxCell>
<mxCell id="c43" style="edgeStyle=none;html=1;rounded=0;strokeColor=#1A73E8;strokeWidth=2;dashed=0;startArrow=none;startFill=1;endArrow=block;endFill=1;endSize=4;startSize=4;" edge="1" parent="1"><mxGeometry relative="1" as="geometry"><mxPoint x="475" y="384" as="sourcePoint"/><mxPoint x="1015" y="384" as="targetPoint"/></mxGeometry></mxCell>
<mxCell id="c44" value="6" style="ellipse;html=1;fillColor=#1A73E8;strokeColor=none;fontColor=#FFFFFF;fontStyle=1;fontSize=12;aspect=fixed;" vertex="1" parent="1"><mxGeometry x="481" y="358" width="22" height="22" as="geometry"/></mxCell>
<mxCell id="c45" value="authorize 649.00 EUR, key = o-88213" style="text;html=1;whiteSpace=wrap;align=left;verticalAlign=top;fontSize=11;fontColor=#202124;fontStyle=0;spacing=0;labelBackgroundColor=#FFFFFF;" vertex="1" parent="1"><mxGeometry x="509" y="362" width="800" height="17" as="geometry"/></mxCell>
<mxCell id="c46" style="edgeStyle=none;html=1;rounded=0;strokeColor=#5F6368;strokeWidth=2;dashed=0;startArrow=none;startFill=1;endArrow=block;endFill=1;endSize=4;startSize=4;" edge="1" parent="1"><mxGeometry relative="1" as="geometry"><mxPoint x="1015" y="430" as="sourcePoint"/><mxPoint x="1195" y="430" as="targetPoint"/></mxGeometry></mxCell>
<mxCell id="c47" value="7" style="ellipse;html=1;fillColor=#5F6368;strokeColor=none;fontColor=#FFFFFF;fontStyle=1;fontSize=12;aspect=fixed;" vertex="1" parent="1"><mxGeometry x="1021" y="404" width="22" height="22" as="geometry"/></mxCell>
<mxCell id="c48" value="auth request, timeout 3 s, 1 retry same key" style="text;html=1;whiteSpace=wrap;align=left;verticalAlign=top;fontSize=11;fontColor=#202124;fontStyle=0;spacing=0;labelBackgroundColor=#FFFFFF;" vertex="1" parent="1"><mxGeometry x="1049" y="408" width="440" height="17" as="geometry"/></mxCell>
<mxCell id="c49" style="edgeStyle=none;html=1;rounded=0;strokeColor=#5F6368;strokeWidth=2;dashed=0;startArrow=none;startFill=1;endArrow=block;endFill=1;endSize=4;startSize=4;" edge="1" parent="1"><mxGeometry relative="1" as="geometry"><mxPoint x="1195" y="476" as="sourcePoint"/><mxPoint x="1015" y="476" as="targetPoint"/></mxGeometry></mxCell>
<mxCell id="c50" value="8" style="ellipse;html=1;fillColor=#5F6368;strokeColor=none;fontColor=#FFFFFF;fontStyle=1;fontSize=12;aspect=fixed;" vertex="1" parent="1"><mxGeometry x="1021" y="450" width="22" height="22" as="geometry"/></mxCell>
<mxCell id="c51" value="authorized  auth=A-77Q (420 ms)" style="text;html=1;whiteSpace=wrap;align=left;verticalAlign=top;fontSize=11;fontColor=#202124;fontStyle=0;spacing=0;labelBackgroundColor=#FFFFFF;" vertex="1" parent="1"><mxGeometry x="1049" y="454" width="440" height="17" as="geometry"/></mxCell>
<mxCell id="c52" style="edgeStyle=none;html=1;rounded=0;strokeColor=#1A73E8;strokeWidth=2;dashed=0;startArrow=none;startFill=1;endArrow=block;endFill=1;endSize=4;startSize=4;" edge="1" parent="1"><mxGeometry relative="1" as="geometry"><mxPoint x="1015" y="522" as="sourcePoint"/><mxPoint x="475" y="522" as="targetPoint"/></mxGeometry></mxCell>
<mxCell id="c53" value="9" style="ellipse;html=1;fillColor=#1A73E8;strokeColor=none;fontColor=#FFFFFF;fontStyle=1;fontSize=12;aspect=fixed;" vertex="1" parent="1"><mxGeometry x="481" y="496" width="22" height="22" as="geometry"/></mxCell>
<mxCell id="c54" value="payment p-3301 AUTHORIZED" style="text;html=1;whiteSpace=wrap;align=left;verticalAlign=top;fontSize=11;fontColor=#202124;fontStyle=0;spacing=0;labelBackgroundColor=#FFFFFF;" vertex="1" parent="1"><mxGeometry x="509" y="500" width="800" height="17" as="geometry"/></mxCell>
<mxCell id="c55" style="edgeStyle=none;html=1;rounded=0;strokeColor=#1E8E3E;strokeWidth=2;dashed=0;startArrow=none;startFill=1;endArrow=block;endFill=1;endSize=4;startSize=4;" edge="1" parent="1"><mxGeometry relative="1" as="geometry"><mxPoint x="475" y="568" as="sourcePoint"/><mxPoint x="835" y="568" as="targetPoint"/></mxGeometry></mxCell>
<mxCell id="c56" value="10" style="ellipse;html=1;fillColor=#1E8E3E;strokeColor=none;fontColor=#FFFFFF;fontStyle=1;fontSize=12;aspect=fixed;" vertex="1" parent="1"><mxGeometry x="481" y="542" width="22" height="22" as="geometry"/></mxCell>
<mxCell id="c57" value="one transaction: status=CONFIRMED + outbox row" style="text;html=1;whiteSpace=wrap;align=left;verticalAlign=top;fontSize=11;fontColor=#202124;fontStyle=0;spacing=0;labelBackgroundColor=#FFFFFF;" vertex="1" parent="1"><mxGeometry x="509" y="546" width="620" height="17" as="geometry"/></mxCell>
<mxCell id="c58" style="edgeStyle=none;html=1;rounded=0;strokeColor=#8430CE;strokeWidth=2;dashed=0;startArrow=none;startFill=1;endArrow=block;endFill=1;endSize=4;startSize=4;" edge="1" parent="1"><mxGeometry relative="1" as="geometry"><mxPoint x="835" y="614" as="sourcePoint"/><mxPoint x="1375" y="614" as="targetPoint"/></mxGeometry></mxCell>
<mxCell id="c59" value="11" style="ellipse;html=1;fillColor=#8430CE;strokeColor=none;fontColor=#FFFFFF;fontStyle=1;fontSize=12;aspect=fixed;" vertex="1" parent="1"><mxGeometry x="841" y="588" width="22" height="22" as="geometry"/></mxCell>
<mxCell id="c60" value="outbox relay publishes order.placed" style="text;html=1;whiteSpace=wrap;align=left;verticalAlign=top;fontSize=11;fontColor=#202124;fontStyle=0;spacing=0;labelBackgroundColor=#FFFFFF;" vertex="1" parent="1"><mxGeometry x="869" y="592" width="800" height="17" as="geometry"/></mxCell>
<mxCell id="c61" style="edgeStyle=none;html=1;rounded=0;strokeColor=#1A73E8;strokeWidth=2;dashed=0;startArrow=none;startFill=1;endArrow=block;endFill=1;endSize=4;startSize=4;" edge="1" parent="1"><mxGeometry relative="1" as="geometry"><mxPoint x="475" y="660" as="sourcePoint"/><mxPoint x="115" y="660" as="targetPoint"/></mxGeometry></mxCell>
<mxCell id="c62" value="12" style="ellipse;html=1;fillColor=#1A73E8;strokeColor=none;fontColor=#FFFFFF;fontStyle=1;fontSize=12;aspect=fixed;" vertex="1" parent="1"><mxGeometry x="121" y="634" width="22" height="22" as="geometry"/></mxCell>
<mxCell id="c63" value="201 Created  order o-88213  (p95 1.1 s end to end)" style="text;html=1;whiteSpace=wrap;align=left;verticalAlign=top;fontSize=11;fontColor=#202124;fontStyle=0;spacing=0;labelBackgroundColor=#FFFFFF;" vertex="1" parent="1"><mxGeometry x="149" y="638" width="620" height="17" as="geometry"/></mxCell>
<mxCell id="c64" style="edgeStyle=none;html=1;rounded=0;strokeColor=#8430CE;strokeWidth=2;dashed=0;startArrow=none;startFill=1;endArrow=block;endFill=1;endSize=4;startSize=4;" edge="1" parent="1"><mxGeometry relative="1" as="geometry"><mxPoint x="1375" y="706" as="sourcePoint"/><mxPoint x="655" y="706" as="targetPoint"/></mxGeometry></mxCell>
<mxCell id="c65" value="13" style="ellipse;html=1;fillColor=#8430CE;strokeColor=none;fontColor=#FFFFFF;fontStyle=1;fontSize=12;aspect=fixed;" vertex="1" parent="1"><mxGeometry x="661" y="680" width="22" height="22" as="geometry"/></mxCell>
<mxCell id="c66" value="order.placed: reservation r-5521 → sold" style="text;html=1;whiteSpace=wrap;align=left;verticalAlign=top;fontSize=11;fontColor=#202124;fontStyle=0;spacing=0;labelBackgroundColor=#FFFFFF;" vertex="1" parent="1"><mxGeometry x="689" y="684" width="980" height="17" as="geometry"/></mxCell>
<mxCell id="c67" value="&lt;b&gt;&lt;/b&gt;" style="rounded=1;arcSize=8;html=1;whiteSpace=wrap;strokeColor=#D93025;fillColor=#FDF3F2;dashed=0;fontSize=12;fontStyle=0;fontColor=#3C4043;align=left;verticalAlign=top;spacingLeft=8;" vertex="1" parent="1"><mxGeometry x="40" y="760" width="690" height="150" as="geometry"/></mxCell>
<mxCell id="c68" value="If something fails half way" style="text;html=1;whiteSpace=wrap;align=left;verticalAlign=top;fontSize=13;fontColor=#D93025;fontStyle=1;spacing=0;" vertex="1" parent="1"><mxGeometry x="56" y="770" width="660" height="19" as="geometry"/></mxCell>
<mxCell id="c69" value="Step 3 fails (out of stock): return 409, nothing to undo.&lt;br&gt;Step 8 declined: release reservation r-5521, order → PAYMENT_FAILED.&lt;br&gt;Step 8 times out: order → PAYMENT_UNKNOWN, do NOT charge again.&lt;br&gt;   Reconciler asks the PSP by key o-88213 after 60 s and settles it.&lt;br&gt;Shopper never gets step 12: the app retries with the same key,&lt;br&gt;   step 2 returns the first response. One order, one charge." style="text;html=1;whiteSpace=wrap;align=left;verticalAlign=top;fontSize=12;fontColor=#3C4043;fontStyle=0;spacing=0;" vertex="1" parent="1"><mxGeometry x="56" y="798" width="670" height="98" as="geometry"/></mxCell>
<mxCell id="c70" value="&lt;b&gt;&lt;/b&gt;" style="rounded=1;arcSize=8;html=1;whiteSpace=wrap;strokeColor=#1E8E3E;fillColor=#F0F9F2;dashed=0;fontSize=12;fontStyle=0;fontColor=#3C4043;align=left;verticalAlign=top;spacingLeft=8;" vertex="1" parent="1"><mxGeometry x="750" y="760" width="710" height="150" as="geometry"/></mxCell>
<mxCell id="c71" value="Why it holds" style="text;html=1;whiteSpace=wrap;align=left;verticalAlign=top;fontSize=13;fontColor=#1E8E3E;fontStyle=1;spacing=0;" vertex="1" parent="1"><mxGeometry x="766" y="770" width="680" height="19" as="geometry"/></mxCell>
<mxCell id="c72" value="Reservations expire on their own, so a crashed checkout never locks stock.&lt;br&gt;Payment is authorized, not captured. Capture happens at shipping.&lt;br&gt;The outbox row commits with the order, so no event is ever lost&lt;br&gt;   and no event is published for an order that rolled back.&lt;br&gt;Everything after step 11 is asynchronous: email, fraud review,&lt;br&gt;   warehouse pick, search update. Checkout does not wait for them." style="text;html=1;whiteSpace=wrap;align=left;verticalAlign=top;fontSize=12;fontColor=#3C4043;fontStyle=0;spacing=0;" vertex="1" parent="1"><mxGeometry x="766" y="798" width="690" height="98" as="geometry"/></mxCell></root></mxGraphModel></diagram>
<diagram id="ecom-peak" name="Black Friday: where 180,000 requests per second go"><mxGraphModel dx="1400" dy="900" grid="1" gridSize="10" guides="1" tooltips="1" connect="1" arrows="1" fold="1" page="1" pageScale="1" pageWidth="1500" pageHeight="750" math="0" shadow="0"><root><mxCell id="0"/><mxCell id="1" parent="0"/><mxCell id="c1" value="Black Friday, 00:00 to 00:15: where 180,000 requests per second go" style="text;html=1;whiteSpace=wrap;align=left;verticalAlign=top;fontSize=18;fontColor=#232F3E;fontStyle=1;spacing=0;" vertex="1" parent="1"><mxGeometry x="20" y="14" width="1200" height="24" as="geometry"/></mxCell>
<mxCell id="c2" value="Each layer exists to make the next one smaller. Numbers are the worked example from the article." style="text;html=1;whiteSpace=wrap;align=left;verticalAlign=top;fontSize=12;fontColor=#5F6368;fontStyle=0;spacing=0;" vertex="1" parent="1"><mxGeometry x="20" y="40" width="1200" height="18" as="geometry"/></mxCell>
<mxCell id="c3" value="&lt;b&gt;&lt;/b&gt;" style="rounded=1;arcSize=8;html=1;whiteSpace=wrap;strokeColor=#5F6368;fillColor=#FFFFFF;dashed=0;fontSize=12;fontStyle=0;fontColor=#3C4043;align=left;verticalAlign=top;spacingLeft=8;" vertex="1" parent="1"><mxGeometry x="40" y="90" width="215" height="380" as="geometry"/></mxCell>
<mxCell id="c4" style="edgeStyle=none;html=1;rounded=0;strokeColor=#5F6368;strokeWidth=5;dashed=0;startArrow=none;startFill=1;endArrow=none;endFill=1;endSize=4;startSize=4;" edge="1" parent="1"><mxGeometry relative="1" as="geometry"><mxPoint x="40" y="94" as="sourcePoint"/><mxPoint x="40" y="466" as="targetPoint"/></mxGeometry></mxCell>
<mxCell id="c5" value="Shoppers" style="text;html=1;whiteSpace=wrap;align=left;verticalAlign=top;fontSize=14;fontColor=#5F6368;fontStyle=1;spacing=0;" vertex="1" parent="1"><mxGeometry x="54" y="104" width="195" height="20" as="geometry"/></mxCell>
<mxCell id="c6" value="2.4 M sessions in the&lt;br&gt;first hour, 600 k live" style="text;html=1;whiteSpace=wrap;align=left;verticalAlign=top;fontSize=11;fontColor=#3C4043;fontStyle=0;spacing=0;" vertex="1" parent="1"><mxGeometry x="54" y="130" width="195" height="32" as="geometry"/></mxCell>
<mxCell id="c7" value="180 k req/s" style="text;html=1;whiteSpace=wrap;align=left;verticalAlign=top;fontSize=16;fontColor=#202124;fontStyle=1;spacing=0;" vertex="1" parent="1"><mxGeometry x="54" y="436" width="195" height="22" as="geometry"/></mxCell>
<mxCell id="c8" value="baseline at 23:58 was&lt;br&gt;9 k req/s" style="text;html=1;whiteSpace=wrap;align=left;verticalAlign=top;fontSize=11;fontColor=#5F6368;fontStyle=0;spacing=0;" vertex="1" parent="1"><mxGeometry x="54" y="266" width="195" height="32" as="geometry"/></mxCell>
<mxCell id="c9" style="edgeStyle=none;html=1;rounded=0;strokeColor=#5F6368;strokeWidth=3;dashed=0;startArrow=none;startFill=1;endArrow=block;endFill=1;endSize=4;startSize=4;" edge="1" parent="1"><mxGeometry relative="1" as="geometry"><mxPoint x="257" y="280" as="sourcePoint"/><mxPoint x="283" y="280" as="targetPoint"/></mxGeometry></mxCell>
<mxCell id="c10" value="&lt;b&gt;&lt;/b&gt;" style="rounded=1;arcSize=8;html=1;whiteSpace=wrap;strokeColor=#D93025;fillColor=#FFFFFF;dashed=0;fontSize=12;fontStyle=0;fontColor=#3C4043;align=left;verticalAlign=top;spacingLeft=8;" vertex="1" parent="1"><mxGeometry x="285" y="110.9" width="215" height="338.2" as="geometry"/></mxCell>
<mxCell id="c11" style="edgeStyle=none;html=1;rounded=0;strokeColor=#D93025;strokeWidth=5;dashed=0;startArrow=none;startFill=1;endArrow=none;endFill=1;endSize=4;startSize=4;" edge="1" parent="1"><mxGeometry relative="1" as="geometry"><mxPoint x="285" y="114.9" as="sourcePoint"/><mxPoint x="285" y="445.1" as="targetPoint"/></mxGeometry></mxCell>
<mxCell id="c12" value="CDN + edge cache" style="text;html=1;whiteSpace=wrap;align=left;verticalAlign=top;fontSize=14;fontColor=#D93025;fontStyle=1;spacing=0;" vertex="1" parent="1"><mxGeometry x="299" y="124.9" width="195" height="20" as="geometry"/></mxCell>
<mxCell id="c13" value="92 % of requests end here:&lt;br&gt;images, JS, product pages" style="text;html=1;whiteSpace=wrap;align=left;verticalAlign=top;fontSize=11;fontColor=#3C4043;fontStyle=0;spacing=0;" vertex="1" parent="1"><mxGeometry x="299" y="150.9" width="195" height="32" as="geometry"/></mxCell>
<mxCell id="c14" value="14.4 k req/s" style="text;html=1;whiteSpace=wrap;align=left;verticalAlign=top;fontSize=16;fontColor=#202124;fontStyle=1;spacing=0;" vertex="1" parent="1"><mxGeometry x="299" y="415.1" width="195" height="22" as="geometry"/></mxCell>
<mxCell id="c15" value="absorbs 165 k req/s&lt;br&gt;at 0 origin cost" style="text;html=1;whiteSpace=wrap;align=left;verticalAlign=top;fontSize=11;fontColor=#D93025;fontStyle=0;spacing=0;" vertex="1" parent="1"><mxGeometry x="299" y="266" width="195" height="32" as="geometry"/></mxCell>
<mxCell id="c16" style="edgeStyle=none;html=1;rounded=0;strokeColor=#5F6368;strokeWidth=3;dashed=0;startArrow=none;startFill=1;endArrow=block;endFill=1;endSize=4;startSize=4;" edge="1" parent="1"><mxGeometry relative="1" as="geometry"><mxPoint x="502" y="280" as="sourcePoint"/><mxPoint x="528" y="280" as="targetPoint"/></mxGeometry></mxCell>
<mxCell id="c17" value="&lt;b&gt;&lt;/b&gt;" style="rounded=1;arcSize=8;html=1;whiteSpace=wrap;strokeColor=#D93025;fillColor=#FFFFFF;dashed=0;fontSize=12;fontStyle=0;fontColor=#3C4043;align=left;verticalAlign=top;spacingLeft=8;" vertex="1" parent="1"><mxGeometry x="530" y="131.8" width="215" height="296.4" as="geometry"/></mxCell>
<mxCell id="c18" style="edgeStyle=none;html=1;rounded=0;strokeColor=#D93025;strokeWidth=5;dashed=0;startArrow=none;startFill=1;endArrow=none;endFill=1;endSize=4;startSize=4;" edge="1" parent="1"><mxGeometry relative="1" as="geometry"><mxPoint x="530" y="135.8" as="sourcePoint"/><mxPoint x="530" y="424.2" as="targetPoint"/></mxGeometry></mxCell>
<mxCell id="c19" value="Waiting room" style="text;html=1;whiteSpace=wrap;align=left;verticalAlign=top;fontSize=14;fontColor=#D93025;fontStyle=1;spacing=0;" vertex="1" parent="1"><mxGeometry x="544" y="145.8" width="195" height="20" as="geometry"/></mxCell>
<mxCell id="c20" value="admits 9,000 new&lt;br&gt;sessions per minute" style="text;html=1;whiteSpace=wrap;align=left;verticalAlign=top;fontSize=11;fontColor=#3C4043;fontStyle=0;spacing=0;" vertex="1" parent="1"><mxGeometry x="544" y="171.8" width="195" height="32" as="geometry"/></mxCell>
<mxCell id="c21" value="11 k req/s" style="text;html=1;whiteSpace=wrap;align=left;verticalAlign=top;fontSize=16;fontColor=#202124;fontStyle=1;spacing=0;" vertex="1" parent="1"><mxGeometry x="544" y="394.2" width="195" height="22" as="geometry"/></mxCell>
<mxCell id="c22" value="peak queue 140 k people&lt;br&gt;longest wait 4 min" style="text;html=1;whiteSpace=wrap;align=left;verticalAlign=top;fontSize=11;fontColor=#D93025;fontStyle=0;spacing=0;" vertex="1" parent="1"><mxGeometry x="544" y="266" width="195" height="32" as="geometry"/></mxCell>
<mxCell id="c23" style="edgeStyle=none;html=1;rounded=0;strokeColor=#5F6368;strokeWidth=3;dashed=0;startArrow=none;startFill=1;endArrow=block;endFill=1;endSize=4;startSize=4;" edge="1" parent="1"><mxGeometry relative="1" as="geometry"><mxPoint x="747" y="280" as="sourcePoint"/><mxPoint x="773" y="280" as="targetPoint"/></mxGeometry></mxCell>
<mxCell id="c24" value="&lt;b&gt;&lt;/b&gt;" style="rounded=1;arcSize=8;html=1;whiteSpace=wrap;strokeColor=#E37400;fillColor=#FFFFFF;dashed=0;fontSize=12;fontStyle=0;fontColor=#3C4043;align=left;verticalAlign=top;spacingLeft=8;" vertex="1" parent="1"><mxGeometry x="775" y="152.7" width="215" height="254.6" as="geometry"/></mxCell>
<mxCell id="c25" style="edgeStyle=none;html=1;rounded=0;strokeColor=#E37400;strokeWidth=5;dashed=0;startArrow=none;startFill=1;endArrow=none;endFill=1;endSize=4;startSize=4;" edge="1" parent="1"><mxGeometry relative="1" as="geometry"><mxPoint x="775" y="156.7" as="sourcePoint"/><mxPoint x="775" y="403.3" as="targetPoint"/></mxGeometry></mxCell>
<mxCell id="c26" value="API gateway" style="text;html=1;whiteSpace=wrap;align=left;verticalAlign=top;fontSize=14;fontColor=#E37400;fontStyle=1;spacing=0;" vertex="1" parent="1"><mxGeometry x="789" y="166.7" width="195" height="20" as="geometry"/></mxCell>
<mxCell id="c27" value="rate limit 20 req/s&lt;br&gt;per session, bots blocked" style="text;html=1;whiteSpace=wrap;align=left;verticalAlign=top;fontSize=11;fontColor=#3C4043;fontStyle=0;spacing=0;" vertex="1" parent="1"><mxGeometry x="789" y="192.7" width="195" height="32" as="geometry"/></mxCell>
<mxCell id="c28" value="10.2 k req/s" style="text;html=1;whiteSpace=wrap;align=left;verticalAlign=top;fontSize=16;fontColor=#202124;fontStyle=1;spacing=0;" vertex="1" parent="1"><mxGeometry x="789" y="373.3" width="195" height="22" as="geometry"/></mxCell>
<mxCell id="c29" value="rejects ~800 req/s&lt;br&gt;with 429" style="text;html=1;whiteSpace=wrap;align=left;verticalAlign=top;fontSize=11;fontColor=#E37400;fontStyle=0;spacing=0;" vertex="1" parent="1"><mxGeometry x="789" y="266" width="195" height="32" as="geometry"/></mxCell>
<mxCell id="c30" style="edgeStyle=none;html=1;rounded=0;strokeColor=#5F6368;strokeWidth=3;dashed=0;startArrow=none;startFill=1;endArrow=block;endFill=1;endSize=4;startSize=4;" edge="1" parent="1"><mxGeometry relative="1" as="geometry"><mxPoint x="992" y="280" as="sourcePoint"/><mxPoint x="1018" y="280" as="targetPoint"/></mxGeometry></mxCell>
<mxCell id="c31" value="&lt;b&gt;&lt;/b&gt;" style="rounded=1;arcSize=8;html=1;whiteSpace=wrap;strokeColor=#1A73E8;fillColor=#FFFFFF;dashed=0;fontSize=12;fontStyle=0;fontColor=#3C4043;align=left;verticalAlign=top;spacingLeft=8;" vertex="1" parent="1"><mxGeometry x="1020" y="173.6" width="215" height="212.8" as="geometry"/></mxCell>
<mxCell id="c32" style="edgeStyle=none;html=1;rounded=0;strokeColor=#1A73E8;strokeWidth=5;dashed=0;startArrow=none;startFill=1;endArrow=none;endFill=1;endSize=4;startSize=4;" edge="1" parent="1"><mxGeometry relative="1" as="geometry"><mxPoint x="1020" y="177.6" as="sourcePoint"/><mxPoint x="1020" y="382.4" as="targetPoint"/></mxGeometry></mxCell>
<mxCell id="c33" value="Browse services" style="text;html=1;whiteSpace=wrap;align=left;verticalAlign=top;fontSize=14;fontColor=#1A73E8;fontStyle=1;spacing=0;" vertex="1" parent="1"><mxGeometry x="1034" y="187.6" width="195" height="20" as="geometry"/></mxCell>
<mxCell id="c34" value="catalog, search, price&lt;br&gt;85 % hit app cache" style="text;html=1;whiteSpace=wrap;align=left;verticalAlign=top;fontSize=11;fontColor=#3C4043;fontStyle=0;spacing=0;" vertex="1" parent="1"><mxGeometry x="1034" y="213.6" width="195" height="32" as="geometry"/></mxCell>
<mxCell id="c35" value="1.4 k q/s to DBs" style="text;html=1;whiteSpace=wrap;align=left;verticalAlign=top;fontSize=16;fontColor=#202124;fontStyle=1;spacing=0;" vertex="1" parent="1"><mxGeometry x="1034" y="352.4" width="195" height="22" as="geometry"/></mxCell>
<mxCell id="c36" value="cache absorbs&lt;br&gt;7.7 k req/s" style="text;html=1;whiteSpace=wrap;align=left;verticalAlign=top;fontSize=11;fontColor=#1A73E8;fontStyle=0;spacing=0;" vertex="1" parent="1"><mxGeometry x="1034" y="266" width="195" height="32" as="geometry"/></mxCell>
<mxCell id="c37" style="edgeStyle=none;html=1;rounded=0;strokeColor=#5F6368;strokeWidth=3;dashed=0;startArrow=none;startFill=1;endArrow=block;endFill=1;endSize=4;startSize=4;" edge="1" parent="1"><mxGeometry relative="1" as="geometry"><mxPoint x="1237" y="280" as="sourcePoint"/><mxPoint x="1263" y="280" as="targetPoint"/></mxGeometry></mxCell>
<mxCell id="c38" value="&lt;b&gt;&lt;/b&gt;" style="rounded=1;arcSize=8;html=1;whiteSpace=wrap;strokeColor=#1E8E3E;fillColor=#FFFFFF;dashed=0;fontSize=12;fontStyle=0;fontColor=#3C4043;align=left;verticalAlign=top;spacingLeft=8;" vertex="1" parent="1"><mxGeometry x="1265" y="194.5" width="215" height="171" as="geometry"/></mxCell>
<mxCell id="c39" style="edgeStyle=none;html=1;rounded=0;strokeColor=#1E8E3E;strokeWidth=5;dashed=0;startArrow=none;startFill=1;endArrow=none;endFill=1;endSize=4;startSize=4;" edge="1" parent="1"><mxGeometry relative="1" as="geometry"><mxPoint x="1265" y="198.5" as="sourcePoint"/><mxPoint x="1265" y="361.5" as="targetPoint"/></mxGeometry></mxCell>
<mxCell id="c40" value="Buy path" style="text;html=1;whiteSpace=wrap;align=left;verticalAlign=top;fontSize=14;fontColor=#1E8E3E;fontStyle=1;spacing=0;" vertex="1" parent="1"><mxGeometry x="1279" y="208.5" width="195" height="20" as="geometry"/></mxCell>
<mxCell id="c41" value="cart 1,100 writes/s&lt;br&gt;checkout 55 orders/s" style="text;html=1;whiteSpace=wrap;align=left;verticalAlign=top;fontSize=11;fontColor=#3C4043;fontStyle=0;spacing=0;" vertex="1" parent="1"><mxGeometry x="1279" y="234.5" width="195" height="32" as="geometry"/></mxCell>
<mxCell id="c42" value="55 payments/s" style="text;html=1;whiteSpace=wrap;align=left;verticalAlign=top;fontSize=16;fontColor=#202124;fontStyle=1;spacing=0;" vertex="1" parent="1"><mxGeometry x="1279" y="331.5" width="195" height="22" as="geometry"/></mxCell>
<mxCell id="c43" value="198 k orders&lt;br&gt;in the first hour" style="text;html=1;whiteSpace=wrap;align=left;verticalAlign=top;fontSize=11;fontColor=#1E8E3E;fontStyle=0;spacing=0;" vertex="1" parent="1"><mxGeometry x="1279" y="266" width="195" height="32" as="geometry"/></mxCell>
<mxCell id="c44" value="&lt;b&gt;&lt;/b&gt;" style="rounded=1;arcSize=8;html=1;whiteSpace=wrap;strokeColor=#1A73E8;fillColor=#F1F6FE;dashed=0;fontSize=12;fontStyle=0;fontColor=#3C4043;align=left;verticalAlign=top;spacingLeft=8;" vertex="1" parent="1"><mxGeometry x="40" y="500" width="700" height="230" as="geometry"/></mxCell>
<mxCell id="c45" value="Capacity plan for the night" style="text;html=1;whiteSpace=wrap;align=left;verticalAlign=top;fontSize=13;fontColor=#1A73E8;fontStyle=1;spacing=0;" vertex="1" parent="1"><mxGeometry x="56" y="510" width="660" height="19" as="geometry"/></mxCell>
<mxCell id="c46" value="T-30 days" style="text;html=1;whiteSpace=wrap;align=left;verticalAlign=top;fontSize=12;fontColor=#1A73E8;fontStyle=1;spacing=0;" vertex="1" parent="1"><mxGeometry x="56" y="540" width="90" height="18" as="geometry"/></mxCell>
<mxCell id="c47" value="load test at 1.5x forecast (270 k req/s at the edge)" style="text;html=1;whiteSpace=wrap;align=left;verticalAlign=top;fontSize=12;fontColor=#3C4043;fontStyle=0;spacing=0;" vertex="1" parent="1"><mxGeometry x="150" y="540" width="580" height="18" as="geometry"/></mxCell>
<mxCell id="c48" value="T-7 days" style="text;html=1;whiteSpace=wrap;align=left;verticalAlign=top;fontSize=12;fontColor=#1A73E8;fontStyle=1;spacing=0;" vertex="1" parent="1"><mxGeometry x="56" y="570" width="90" height="18" as="geometry"/></mxCell>
<mxCell id="c49" value="change freeze on the buy path, kill switches tested" style="text;html=1;whiteSpace=wrap;align=left;verticalAlign=top;fontSize=12;fontColor=#3C4043;fontStyle=0;spacing=0;" vertex="1" parent="1"><mxGeometry x="150" y="570" width="580" height="18" as="geometry"/></mxCell>
<mxCell id="c50" value="T-2 h" style="text;html=1;whiteSpace=wrap;align=left;verticalAlign=top;fontSize=12;fontColor=#1A73E8;fontStyle=1;spacing=0;" vertex="1" parent="1"><mxGeometry x="56" y="600" width="90" height="18" as="geometry"/></mxCell>
<mxCell id="c51" value="pre-scale: checkout 12 → 60 pods, DB read replicas 2 → 6" style="text;html=1;whiteSpace=wrap;align=left;verticalAlign=top;fontSize=12;fontColor=#3C4043;fontStyle=0;spacing=0;" vertex="1" parent="1"><mxGeometry x="150" y="600" width="580" height="18" as="geometry"/></mxCell>
<mxCell id="c52" value="T-15 min" style="text;html=1;whiteSpace=wrap;align=left;verticalAlign=top;fontSize=12;fontColor=#1A73E8;fontStyle=1;spacing=0;" vertex="1" parent="1"><mxGeometry x="56" y="630" width="90" height="18" as="geometry"/></mxCell>
<mxCell id="c53" value="waiting room on, recommendations on cached fallback" style="text;html=1;whiteSpace=wrap;align=left;verticalAlign=top;fontSize=12;fontColor=#3C4043;fontStyle=0;spacing=0;" vertex="1" parent="1"><mxGeometry x="150" y="630" width="580" height="18" as="geometry"/></mxCell>
<mxCell id="c54" value="T+0" style="text;html=1;whiteSpace=wrap;align=left;verticalAlign=top;fontSize=12;fontColor=#1A73E8;fontStyle=1;spacing=0;" vertex="1" parent="1"><mxGeometry x="56" y="660" width="90" height="18" as="geometry"/></mxCell>
<mxCell id="c55" value="watch orders/min and payment success rate, not CPU" style="text;html=1;whiteSpace=wrap;align=left;verticalAlign=top;fontSize=12;fontColor=#3C4043;fontStyle=0;spacing=0;" vertex="1" parent="1"><mxGeometry x="150" y="660" width="580" height="18" as="geometry"/></mxCell>
<mxCell id="c56" value="T+3 h" style="text;html=1;whiteSpace=wrap;align=left;verticalAlign=top;fontSize=12;fontColor=#1A73E8;fontStyle=1;spacing=0;" vertex="1" parent="1"><mxGeometry x="56" y="690" width="90" height="18" as="geometry"/></mxCell>
<mxCell id="c57" value="scale down in 25 % steps; room off after 10 min of empty queue" style="text;html=1;whiteSpace=wrap;align=left;verticalAlign=top;fontSize=12;fontColor=#3C4043;fontStyle=0;spacing=0;" vertex="1" parent="1"><mxGeometry x="150" y="690" width="580" height="18" as="geometry"/></mxCell>
<mxCell id="c58" value="&lt;b&gt;&lt;/b&gt;" style="rounded=1;arcSize=8;html=1;whiteSpace=wrap;strokeColor=#E37400;fillColor=#FEF7E0;dashed=0;fontSize=12;fontStyle=0;fontColor=#3C4043;align=left;verticalAlign=top;spacingLeft=8;" vertex="1" parent="1"><mxGeometry x="760" y="500" width="700" height="230" as="geometry"/></mxCell>
<mxCell id="c59" value="Why not just autoscale?" style="text;html=1;whiteSpace=wrap;align=left;verticalAlign=top;fontSize=13;fontColor=#E37400;fontStyle=1;spacing=0;" vertex="1" parent="1"><mxGeometry x="776" y="510" width="660" height="19" as="geometry"/></mxCell>
<mxCell id="c60" value="Traffic went from 9 k to 180 k req/s in 90 seconds.&lt;br&gt;A new pod takes ~45 s to be ready, a new node ~3 min,&lt;br&gt;a new database read replica 10 to 20 min.&lt;br&gt;Autoscaling reacts to load you already have. For a peak you know&lt;br&gt;is coming, scale before it and let autoscaling handle only the&lt;br&gt;surprise on top. The waiting room covers the rest:&lt;br&gt;a 4 minute queue beats a 40 minute outage." style="text;html=1;whiteSpace=wrap;align=left;verticalAlign=top;fontSize=12;fontColor=#3C4043;fontStyle=0;spacing=0;" vertex="1" parent="1"><mxGeometry x="776" y="540" width="680" height="114" as="geometry"/></mxCell></root></mxGraphModel></diagram>
<diagram id="ecom-failures" name="Three production failures and the design that survives them"><mxGraphModel dx="1400" dy="900" grid="1" gridSize="10" guides="1" tooltips="1" connect="1" arrows="1" fold="1" page="1" pageScale="1" pageWidth="1500" pageHeight="780" math="0" shadow="0"><root><mxCell id="0"/><mxCell id="1" parent="0"/><mxCell id="c1" value="Three production failures, and the design that survives each one" style="text;html=1;whiteSpace=wrap;align=left;verticalAlign=top;fontSize=18;fontColor=#232F3E;fontStyle=1;spacing=0;" vertex="1" parent="1"><mxGeometry x="20" y="14" width="1200" height="24" as="geometry"/></mxCell>
<mxCell id="c2" value="Top: what happened. Bottom: what the platform does instead. All three are covered in the article with numbers." style="text;html=1;whiteSpace=wrap;align=left;verticalAlign=top;fontSize=12;fontColor=#5F6368;fontStyle=0;spacing=0;" vertex="1" parent="1"><mxGeometry x="20" y="40" width="1200" height="18" as="geometry"/></mxCell>
<mxCell id="c3" value="&lt;b&gt;&lt;/b&gt;" style="rounded=1;arcSize=8;html=1;whiteSpace=wrap;strokeColor=#D93025;fillColor=#D93025;dashed=0;fontSize=12;fontStyle=0;fontColor=#3C4043;align=left;verticalAlign=top;spacingLeft=8;" vertex="1" parent="1"><mxGeometry x="40" y="76" width="460" height="50" as="geometry"/></mxCell>
<mxCell id="c4" value="A  Payment provider slows down" style="text;html=1;whiteSpace=wrap;align=left;verticalAlign=top;fontSize=15;fontColor=#FFFFFF;fontStyle=1;spacing=0;" vertex="1" parent="1"><mxGeometry x="54" y="90" width="440" height="21" as="geometry"/></mxCell>
<mxCell id="c5" value="&lt;b&gt;&lt;/b&gt;" style="rounded=1;arcSize=8;html=1;whiteSpace=wrap;strokeColor=#D93025;fillColor=#FDF3F2;dashed=0;fontSize=12;fontStyle=0;fontColor=#3C4043;align=left;verticalAlign=top;spacingLeft=8;" vertex="1" parent="1"><mxGeometry x="40" y="140" width="460" height="170" as="geometry"/></mxCell>
<mxCell id="c6" value="What happened" style="text;html=1;whiteSpace=wrap;align=left;verticalAlign=top;fontSize=13;fontColor=#D93025;fontStyle=1;spacing=0;" vertex="1" parent="1"><mxGeometry x="54" y="152" width="440" height="19" as="geometry"/></mxCell>
<mxCell id="c7" value="PSP p99 goes from 400 ms to 12 s.&lt;br&gt;Client timeout is the library default, 60 s.&lt;br&gt;55 orders/s x 12 s = 660 calls in flight.&lt;br&gt;60 pods x 10 pooled PSP connections = 600.&lt;br&gt;Requests queue for the pool, health checks&lt;br&gt;time out, pods restart. Cart shares the&lt;br&gt;pool, so the whole buy path goes down." style="text;html=1;whiteSpace=wrap;align=left;verticalAlign=top;fontSize=12;fontColor=#3C4043;fontStyle=0;spacing=0;" vertex="1" parent="1"><mxGeometry x="54" y="182" width="436" height="114" as="geometry"/></mxCell>
<mxCell id="c8" style="edgeStyle=none;html=1;rounded=0;strokeColor=#5F6368;strokeWidth=3;dashed=0;startArrow=none;startFill=1;endArrow=block;endFill=1;endSize=4;startSize=4;" edge="1" parent="1"><mxGeometry relative="1" as="geometry"><mxPoint x="270" y="314" as="sourcePoint"/><mxPoint x="270" y="340" as="targetPoint"/></mxGeometry></mxCell>
<mxCell id="c9" value="&lt;b&gt;&lt;/b&gt;" style="rounded=1;arcSize=8;html=1;whiteSpace=wrap;strokeColor=#1E8E3E;fillColor=#F0F9F2;dashed=0;fontSize=12;fontStyle=0;fontColor=#3C4043;align=left;verticalAlign=top;spacingLeft=8;" vertex="1" parent="1"><mxGeometry x="40" y="346" width="460" height="410" as="geometry"/></mxCell>
<mxCell id="c10" value="Design that holds" style="text;html=1;whiteSpace=wrap;align=left;verticalAlign=top;fontSize=13;fontColor=#1E8E3E;fontStyle=1;spacing=0;" vertex="1" parent="1"><mxGeometry x="54" y="358" width="440" height="19" as="geometry"/></mxCell>
<mxCell id="c11" value="Timeout 3 s, one retry with the same key.&lt;br&gt;Circuit breaker opens at 20 % failures&lt;br&gt;   over 30 s, routes new auths to PSP B.&lt;br&gt;Separate pool (bulkhead) per dependency.&lt;br&gt;Unknown result → PAYMENT_UNKNOWN,&lt;br&gt;   reconciler settles it in 60 s.&lt;br&gt;Result: 2 % of orders delayed, 0 lost." style="text;html=1;whiteSpace=wrap;align=left;verticalAlign=top;fontSize=12;fontColor=#3C4043;fontStyle=0;spacing=0;" vertex="1" parent="1"><mxGeometry x="54" y="388" width="436" height="114" as="geometry"/></mxCell>
<mxCell id="c12" value="&lt;b&gt;&lt;/b&gt;" style="rounded=1;arcSize=8;html=1;whiteSpace=wrap;strokeColor=#5F6368;fillColor=#FFFFFF;dashed=0;fontSize=12;fontStyle=0;fontColor=#3C4043;align=left;verticalAlign=top;spacingLeft=8;" vertex="1" parent="1"><mxGeometry x="54" y="590" width="100" height="40" as="geometry"/></mxCell>
<mxCell id="c13" value="Checkout" style="text;html=1;whiteSpace=wrap;align=center;verticalAlign=top;fontSize=11;fontColor=#202124;fontStyle=1;spacing=0;" vertex="1" parent="1"><mxGeometry x="54" y="602" width="100" height="17" as="geometry"/></mxCell>
<mxCell id="c14" value="&lt;b&gt;&lt;/b&gt;" style="rounded=1;arcSize=8;html=1;whiteSpace=wrap;strokeColor=#E37400;fillColor=#FFFFFF;dashed=0;fontSize=12;fontStyle=0;fontColor=#3C4043;align=left;verticalAlign=top;spacingLeft=8;" vertex="1" parent="1"><mxGeometry x="204" y="582" width="110" height="56" as="geometry"/></mxCell>
<mxCell id="c15" value="Breaker&lt;br&gt;closed / open" style="text;html=1;whiteSpace=wrap;align=center;verticalAlign=top;fontSize=11;fontColor=#202124;fontStyle=1;spacing=0;" vertex="1" parent="1"><mxGeometry x="204" y="602" width="110" height="32" as="geometry"/></mxCell>
<mxCell id="c16" value="&lt;b&gt;&lt;/b&gt;" style="rounded=1;arcSize=8;html=1;whiteSpace=wrap;strokeColor=#D93025;fillColor=#FDF3F2;dashed=0;fontSize=12;fontStyle=0;fontColor=#3C4043;align=left;verticalAlign=top;spacingLeft=8;" vertex="1" parent="1"><mxGeometry x="366" y="540" width="120" height="40" as="geometry"/></mxCell>
<mxCell id="c17" value="PSP A  p99 12 s" style="text;html=1;whiteSpace=wrap;align=center;verticalAlign=top;fontSize=11;fontColor=#202124;fontStyle=1;spacing=0;" vertex="1" parent="1"><mxGeometry x="366" y="552" width="120" height="17" as="geometry"/></mxCell>
<mxCell id="c18" value="&lt;b&gt;&lt;/b&gt;" style="rounded=1;arcSize=8;html=1;whiteSpace=wrap;strokeColor=#1E8E3E;fillColor=#FFFFFF;dashed=0;fontSize=12;fontStyle=0;fontColor=#3C4043;align=left;verticalAlign=top;spacingLeft=8;" vertex="1" parent="1"><mxGeometry x="366" y="650" width="120" height="40" as="geometry"/></mxCell>
<mxCell id="c19" value="PSP B  p99 380 ms" style="text;html=1;whiteSpace=wrap;align=center;verticalAlign=top;fontSize=11;fontColor=#202124;fontStyle=1;spacing=0;" vertex="1" parent="1"><mxGeometry x="366" y="662" width="120" height="17" as="geometry"/></mxCell>
<mxCell id="c20" style="edgeStyle=none;html=1;rounded=0;strokeColor=#5F6368;strokeWidth=2;dashed=0;startArrow=none;startFill=1;endArrow=block;endFill=1;endSize=4;startSize=4;" edge="1" parent="1"><mxGeometry relative="1" as="geometry"><mxPoint x="154" y="610" as="sourcePoint"/><mxPoint x="202" y="610" as="targetPoint"/></mxGeometry></mxCell>
<mxCell id="c21" style="edgeStyle=none;html=1;rounded=0;strokeColor=#D93025;strokeWidth=2;dashed=1;startArrow=none;startFill=1;endArrow=block;endFill=1;endSize=4;startSize=4;" edge="1" parent="1"><mxGeometry relative="1" as="geometry"><mxPoint x="314" y="602" as="sourcePoint"/><mxPoint x="364" y="560" as="targetPoint"/><Array as="points"><mxPoint x="340" y="602"/><mxPoint x="340" y="560"/></Array></mxGeometry></mxCell>
<mxCell id="c22" style="edgeStyle=none;html=1;rounded=0;strokeColor=#1E8E3E;strokeWidth=2;dashed=0;startArrow=none;startFill=1;endArrow=block;endFill=1;endSize=4;startSize=4;" edge="1" parent="1"><mxGeometry relative="1" as="geometry"><mxPoint x="314" y="618" as="sourcePoint"/><mxPoint x="364" y="670" as="targetPoint"/><Array as="points"><mxPoint x="340" y="618"/><mxPoint x="340" y="670"/></Array></mxGeometry></mxCell>
<mxCell id="c23" value="3 s timeout" style="text;html=1;whiteSpace=wrap;align=left;verticalAlign=top;fontSize=10;fontColor=#D93025;fontStyle=0;spacing=0;" vertex="1" parent="1"><mxGeometry x="334" y="522" width="140" height="16" as="geometry"/></mxCell>
<mxCell id="c24" value="new auths after trip" style="text;html=1;whiteSpace=wrap;align=left;verticalAlign=top;fontSize=10;fontColor=#1E8E3E;fontStyle=0;spacing=0;" vertex="1" parent="1"><mxGeometry x="344" y="700" width="150" height="16" as="geometry"/></mxCell>
<mxCell id="c25" value="&lt;b&gt;&lt;/b&gt;" style="rounded=1;arcSize=8;html=1;whiteSpace=wrap;strokeColor=#E37400;fillColor=#E37400;dashed=0;fontSize=12;fontStyle=0;fontColor=#3C4043;align=left;verticalAlign=top;spacingLeft=8;" vertex="1" parent="1"><mxGeometry x="520" y="76" width="460" height="50" as="geometry"/></mxCell>
<mxCell id="c26" value="B  500 TVs, 40,000 buyers" style="text;html=1;whiteSpace=wrap;align=left;verticalAlign=top;fontSize=15;fontColor=#FFFFFF;fontStyle=1;spacing=0;" vertex="1" parent="1"><mxGeometry x="534" y="90" width="440" height="21" as="geometry"/></mxCell>
<mxCell id="c27" value="&lt;b&gt;&lt;/b&gt;" style="rounded=1;arcSize=8;html=1;whiteSpace=wrap;strokeColor=#D93025;fillColor=#FDF3F2;dashed=0;fontSize=12;fontStyle=0;fontColor=#3C4043;align=left;verticalAlign=top;spacingLeft=8;" vertex="1" parent="1"><mxGeometry x="520" y="140" width="460" height="170" as="geometry"/></mxCell>
<mxCell id="c28" value="What happened" style="text;html=1;whiteSpace=wrap;align=left;verticalAlign=top;fontSize=13;fontColor=#D93025;fontStyle=1;spacing=0;" vertex="1" parent="1"><mxGeometry x="534" y="152" width="440" height="19" as="geometry"/></mxCell>
<mxCell id="c29" value='Doorbuster: 500 units at 00:00.&lt;br&gt;40,000 checkouts in the first 10 s.&lt;br&gt;Code reads stock, checks &amp;gt; 0, then writes.&lt;br&gt;Hundreds of requests read "available"&lt;br&gt;before any write lands.&lt;br&gt;Result: 731 orders for 500 TVs,&lt;br&gt;231 apology emails and refunds.' style="text;html=1;whiteSpace=wrap;align=left;verticalAlign=top;fontSize=12;fontColor=#3C4043;fontStyle=0;spacing=0;" vertex="1" parent="1"><mxGeometry x="534" y="182" width="436" height="114" as="geometry"/></mxCell>
<mxCell id="c30" style="edgeStyle=none;html=1;rounded=0;strokeColor=#5F6368;strokeWidth=3;dashed=0;startArrow=none;startFill=1;endArrow=block;endFill=1;endSize=4;startSize=4;" edge="1" parent="1"><mxGeometry relative="1" as="geometry"><mxPoint x="750" y="314" as="sourcePoint"/><mxPoint x="750" y="340" as="targetPoint"/></mxGeometry></mxCell>
<mxCell id="c31" value="&lt;b&gt;&lt;/b&gt;" style="rounded=1;arcSize=8;html=1;whiteSpace=wrap;strokeColor=#1E8E3E;fillColor=#F0F9F2;dashed=0;fontSize=12;fontStyle=0;fontColor=#3C4043;align=left;verticalAlign=top;spacingLeft=8;" vertex="1" parent="1"><mxGeometry x="520" y="346" width="460" height="410" as="geometry"/></mxCell>
<mxCell id="c32" value="Design that holds" style="text;html=1;whiteSpace=wrap;align=left;verticalAlign=top;fontSize=13;fontColor=#1E8E3E;fontStyle=1;spacing=0;" vertex="1" parent="1"><mxGeometry x="534" y="358" width="440" height="19" as="geometry"/></mxCell>
<mxCell id="c33" value="One atomic statement, no read first:&lt;br&gt;   UPDATE stock SET reserved = reserved + 1&lt;br&gt;   WHERE sku = ? AND on_hand - reserved &amp;gt;= 1&lt;br&gt;Hot SKU split into 10 rows of 50 units&lt;br&gt;   to spread row-lock contention.&lt;br&gt;Reservation expires after 10 minutes.&lt;br&gt;Result: exactly 500 sold, p99 80 ms." style="text;html=1;whiteSpace=wrap;align=left;verticalAlign=top;fontSize=12;fontColor=#3C4043;fontStyle=0;spacing=0;" vertex="1" parent="1"><mxGeometry x="534" y="388" width="436" height="114" as="geometry"/></mxCell>
<mxCell id="c34" value="SKU-TV55 stock split into 10 rows" style="text;html=1;whiteSpace=wrap;align=left;verticalAlign=top;fontSize=11;fontColor=#3C4043;fontStyle=1;spacing=0;" vertex="1" parent="1"><mxGeometry x="534" y="520" width="432" height="17" as="geometry"/></mxCell>
<mxCell id="c35" value="&lt;b&gt;&lt;/b&gt;" style="rounded=1;arcSize=8;html=1;whiteSpace=wrap;strokeColor=#5F6368;fillColor=#F1F3F4;dashed=0;fontSize=12;fontStyle=0;fontColor=#3C4043;align=left;verticalAlign=top;spacingLeft=8;" vertex="1" parent="1"><mxGeometry x="534" y="546" width="74" height="48" as="geometry"/></mxCell>
<mxCell id="c36" value="bucket 0&lt;br&gt;0 left" style="text;html=1;whiteSpace=wrap;align=center;verticalAlign=top;fontSize=10;fontColor=#202124;fontStyle=1;spacing=0;" vertex="1" parent="1"><mxGeometry x="534" y="562" width="74" height="30" as="geometry"/></mxCell>
<mxCell id="c37" value="&lt;b&gt;&lt;/b&gt;" style="rounded=1;arcSize=8;html=1;whiteSpace=wrap;strokeColor=#5F6368;fillColor=#F1F3F4;dashed=0;fontSize=12;fontStyle=0;fontColor=#3C4043;align=left;verticalAlign=top;spacingLeft=8;" vertex="1" parent="1"><mxGeometry x="618" y="546" width="74" height="48" as="geometry"/></mxCell>
<mxCell id="c38" value="bucket 1&lt;br&gt;0 left" style="text;html=1;whiteSpace=wrap;align=center;verticalAlign=top;fontSize=10;fontColor=#202124;fontStyle=1;spacing=0;" vertex="1" parent="1"><mxGeometry x="618" y="562" width="74" height="30" as="geometry"/></mxCell>
<mxCell id="c39" value="&lt;b&gt;&lt;/b&gt;" style="rounded=1;arcSize=8;html=1;whiteSpace=wrap;strokeColor=#5F6368;fillColor=#F1F3F4;dashed=0;fontSize=12;fontStyle=0;fontColor=#3C4043;align=left;verticalAlign=top;spacingLeft=8;" vertex="1" parent="1"><mxGeometry x="702" y="546" width="74" height="48" as="geometry"/></mxCell>
<mxCell id="c40" value="bucket 2&lt;br&gt;0 left" style="text;html=1;whiteSpace=wrap;align=center;verticalAlign=top;fontSize=10;fontColor=#202124;fontStyle=1;spacing=0;" vertex="1" parent="1"><mxGeometry x="702" y="562" width="74" height="30" as="geometry"/></mxCell>
<mxCell id="c41" value="&lt;b&gt;&lt;/b&gt;" style="rounded=1;arcSize=8;html=1;whiteSpace=wrap;strokeColor=#5F6368;fillColor=#F1F3F4;dashed=0;fontSize=12;fontStyle=0;fontColor=#3C4043;align=left;verticalAlign=top;spacingLeft=8;" vertex="1" parent="1"><mxGeometry x="786" y="546" width="74" height="48" as="geometry"/></mxCell>
<mxCell id="c42" value="bucket 3&lt;br&gt;0 left" style="text;html=1;whiteSpace=wrap;align=center;verticalAlign=top;fontSize=10;fontColor=#202124;fontStyle=1;spacing=0;" vertex="1" parent="1"><mxGeometry x="786" y="562" width="74" height="30" as="geometry"/></mxCell>
<mxCell id="c43" value="&lt;b&gt;&lt;/b&gt;" style="rounded=1;arcSize=8;html=1;whiteSpace=wrap;strokeColor=#5F6368;fillColor=#F1F3F4;dashed=0;fontSize=12;fontStyle=0;fontColor=#3C4043;align=left;verticalAlign=top;spacingLeft=8;" vertex="1" parent="1"><mxGeometry x="870" y="546" width="74" height="48" as="geometry"/></mxCell>
<mxCell id="c44" value="bucket 4&lt;br&gt;0 left" style="text;html=1;whiteSpace=wrap;align=center;verticalAlign=top;fontSize=10;fontColor=#202124;fontStyle=1;spacing=0;" vertex="1" parent="1"><mxGeometry x="870" y="562" width="74" height="30" as="geometry"/></mxCell>
<mxCell id="c45" value="&lt;b&gt;&lt;/b&gt;" style="rounded=1;arcSize=8;html=1;whiteSpace=wrap;strokeColor=#5F6368;fillColor=#F1F3F4;dashed=0;fontSize=12;fontStyle=0;fontColor=#3C4043;align=left;verticalAlign=top;spacingLeft=8;" vertex="1" parent="1"><mxGeometry x="534" y="604" width="74" height="48" as="geometry"/></mxCell>
<mxCell id="c46" value="bucket 5&lt;br&gt;0 left" style="text;html=1;whiteSpace=wrap;align=center;verticalAlign=top;fontSize=10;fontColor=#202124;fontStyle=1;spacing=0;" vertex="1" parent="1"><mxGeometry x="534" y="620" width="74" height="30" as="geometry"/></mxCell>
<mxCell id="c47" value="&lt;b&gt;&lt;/b&gt;" style="rounded=1;arcSize=8;html=1;whiteSpace=wrap;strokeColor=#5F6368;fillColor=#F1F3F4;dashed=0;fontSize=12;fontStyle=0;fontColor=#3C4043;align=left;verticalAlign=top;spacingLeft=8;" vertex="1" parent="1"><mxGeometry x="618" y="604" width="74" height="48" as="geometry"/></mxCell>
<mxCell id="c48" value="bucket 6&lt;br&gt;0 left" style="text;html=1;whiteSpace=wrap;align=center;verticalAlign=top;fontSize=10;fontColor=#202124;fontStyle=1;spacing=0;" vertex="1" parent="1"><mxGeometry x="618" y="620" width="74" height="30" as="geometry"/></mxCell>
<mxCell id="c49" value="&lt;b&gt;&lt;/b&gt;" style="rounded=1;arcSize=8;html=1;whiteSpace=wrap;strokeColor=#1E8E3E;fillColor=#FFFFFF;dashed=0;fontSize=12;fontStyle=0;fontColor=#3C4043;align=left;verticalAlign=top;spacingLeft=8;" vertex="1" parent="1"><mxGeometry x="702" y="604" width="74" height="48" as="geometry"/></mxCell>
<mxCell id="c50" value="bucket 7&lt;br&gt;50 left" style="text;html=1;whiteSpace=wrap;align=center;verticalAlign=top;fontSize=10;fontColor=#202124;fontStyle=1;spacing=0;" vertex="1" parent="1"><mxGeometry x="702" y="620" width="74" height="30" as="geometry"/></mxCell>
<mxCell id="c51" value="&lt;b&gt;&lt;/b&gt;" style="rounded=1;arcSize=8;html=1;whiteSpace=wrap;strokeColor=#1E8E3E;fillColor=#FFFFFF;dashed=0;fontSize=12;fontStyle=0;fontColor=#3C4043;align=left;verticalAlign=top;spacingLeft=8;" vertex="1" parent="1"><mxGeometry x="786" y="604" width="74" height="48" as="geometry"/></mxCell>
<mxCell id="c52" value="bucket 8&lt;br&gt;50 left" style="text;html=1;whiteSpace=wrap;align=center;verticalAlign=top;fontSize=10;fontColor=#202124;fontStyle=1;spacing=0;" vertex="1" parent="1"><mxGeometry x="786" y="620" width="74" height="30" as="geometry"/></mxCell>
<mxCell id="c53" value="&lt;b&gt;&lt;/b&gt;" style="rounded=1;arcSize=8;html=1;whiteSpace=wrap;strokeColor=#1E8E3E;fillColor=#FFFFFF;dashed=0;fontSize=12;fontStyle=0;fontColor=#3C4043;align=left;verticalAlign=top;spacingLeft=8;" vertex="1" parent="1"><mxGeometry x="870" y="604" width="74" height="48" as="geometry"/></mxCell>
<mxCell id="c54" value="bucket 9&lt;br&gt;50 left" style="text;html=1;whiteSpace=wrap;align=center;verticalAlign=top;fontSize=10;fontColor=#202124;fontStyle=1;spacing=0;" vertex="1" parent="1"><mxGeometry x="870" y="620" width="74" height="30" as="geometry"/></mxCell>
<mxCell id="c55" value="Each request picks a random bucket with stock. Empty buckets are skipped." style="text;html=1;whiteSpace=wrap;align=left;verticalAlign=top;fontSize=10;fontColor=#5F6368;fontStyle=0;spacing=0;" vertex="1" parent="1"><mxGeometry x="534" y="670" width="432" height="16" as="geometry"/></mxCell>
<mxCell id="c56" value="&lt;b&gt;&lt;/b&gt;" style="rounded=1;arcSize=8;html=1;whiteSpace=wrap;strokeColor=#8430CE;fillColor=#8430CE;dashed=0;fontSize=12;fontStyle=0;fontColor=#3C4043;align=left;verticalAlign=top;spacingLeft=8;" vertex="1" parent="1"><mxGeometry x="1000" y="76" width="460" height="50" as="geometry"/></mxCell>
<mxCell id="c57" value="C  One tap, two orders" style="text;html=1;whiteSpace=wrap;align=left;verticalAlign=top;fontSize=15;fontColor=#FFFFFF;fontStyle=1;spacing=0;" vertex="1" parent="1"><mxGeometry x="1014" y="90" width="440" height="21" as="geometry"/></mxCell>
<mxCell id="c58" value="&lt;b&gt;&lt;/b&gt;" style="rounded=1;arcSize=8;html=1;whiteSpace=wrap;strokeColor=#D93025;fillColor=#FDF3F2;dashed=0;fontSize=12;fontStyle=0;fontColor=#3C4043;align=left;verticalAlign=top;spacingLeft=8;" vertex="1" parent="1"><mxGeometry x="1000" y="140" width="460" height="170" as="geometry"/></mxCell>
<mxCell id="c59" value="What happened" style="text;html=1;whiteSpace=wrap;align=left;verticalAlign=top;fontSize=13;fontColor=#D93025;fontStyle=1;spacing=0;" vertex="1" parent="1"><mxGeometry x="1014" y="152" width="440" height="19" as="geometry"/></mxCell>
<mxCell id="c60" value='Shopper taps "Place order" on a train.&lt;br&gt;Request reaches checkout, order is made,&lt;br&gt;card is charged, response is lost.&lt;br&gt;App shows "Something went wrong",&lt;br&gt;shopper taps again.&lt;br&gt;Result: 0.3 % of mobile orders are&lt;br&gt;duplicates, each one a support ticket.' style="text;html=1;whiteSpace=wrap;align=left;verticalAlign=top;fontSize=12;fontColor=#3C4043;fontStyle=0;spacing=0;" vertex="1" parent="1"><mxGeometry x="1014" y="182" width="436" height="114" as="geometry"/></mxCell>
<mxCell id="c61" style="edgeStyle=none;html=1;rounded=0;strokeColor=#5F6368;strokeWidth=3;dashed=0;startArrow=none;startFill=1;endArrow=block;endFill=1;endSize=4;startSize=4;" edge="1" parent="1"><mxGeometry relative="1" as="geometry"><mxPoint x="1230" y="314" as="sourcePoint"/><mxPoint x="1230" y="340" as="targetPoint"/></mxGeometry></mxCell>
<mxCell id="c62" value="&lt;b&gt;&lt;/b&gt;" style="rounded=1;arcSize=8;html=1;whiteSpace=wrap;strokeColor=#1E8E3E;fillColor=#F0F9F2;dashed=0;fontSize=12;fontStyle=0;fontColor=#3C4043;align=left;verticalAlign=top;spacingLeft=8;" vertex="1" parent="1"><mxGeometry x="1000" y="346" width="460" height="410" as="geometry"/></mxCell>
<mxCell id="c63" value="Design that holds" style="text;html=1;whiteSpace=wrap;align=left;verticalAlign=top;fontSize=13;fontColor=#1E8E3E;fontStyle=1;spacing=0;" vertex="1" parent="1"><mxGeometry x="1014" y="358" width="440" height="19" as="geometry"/></mxCell>
<mxCell id="c64" value="App makes an Idempotency-Key per&lt;br&gt;   checkout attempt, sends it on retries.&lt;br&gt;Checkout stores key + response for 24 h&lt;br&gt;   (unique index, insert first).&lt;br&gt;Same key, same body → saved response.&lt;br&gt;Same key, different body → 422.&lt;br&gt;Result: duplicates drop to zero." style="text;html=1;whiteSpace=wrap;align=left;verticalAlign=top;fontSize=12;fontColor=#3C4043;fontStyle=0;spacing=0;" vertex="1" parent="1"><mxGeometry x="1014" y="388" width="436" height="114" as="geometry"/></mxCell>
<mxCell id="c65" value="&lt;b&gt;&lt;/b&gt;" style="rounded=1;arcSize=8;html=1;whiteSpace=wrap;strokeColor=#5F6368;fillColor=#FFFFFF;dashed=0;fontSize=12;fontStyle=0;fontColor=#3C4043;align=left;verticalAlign=top;spacingLeft=8;" vertex="1" parent="1"><mxGeometry x="1014" y="580" width="90" height="50" as="geometry"/></mxCell>
<mxCell id="c66" value="App&lt;br&gt;key 7f3a" style="text;html=1;whiteSpace=wrap;align=center;verticalAlign=top;fontSize=11;fontColor=#202124;fontStyle=1;spacing=0;" vertex="1" parent="1"><mxGeometry x="1014" y="597" width="90" height="32" as="geometry"/></mxCell>
<mxCell id="c67" value="&lt;b&gt;&lt;/b&gt;" style="rounded=1;arcSize=8;html=1;whiteSpace=wrap;strokeColor=#5F6368;fillColor=#FFFFFF;dashed=0;fontSize=12;fontStyle=0;fontColor=#3C4043;align=left;verticalAlign=top;spacingLeft=8;" vertex="1" parent="1"><mxGeometry x="1164" y="584" width="100" height="40" as="geometry"/></mxCell>
<mxCell id="c68" value="Checkout" style="text;html=1;whiteSpace=wrap;align=center;verticalAlign=top;fontSize=11;fontColor=#202124;fontStyle=1;spacing=0;" vertex="1" parent="1"><mxGeometry x="1164" y="596" width="100" height="17" as="geometry"/></mxCell>
<mxCell id="c69" value="&lt;b&gt;&lt;/b&gt;" style="rounded=1;arcSize=8;html=1;whiteSpace=wrap;strokeColor=#8430CE;fillColor=#FFFFFF;dashed=0;fontSize=12;fontStyle=0;fontColor=#3C4043;align=left;verticalAlign=top;spacingLeft=8;" vertex="1" parent="1"><mxGeometry x="1304" y="580" width="140" height="50" as="geometry"/></mxCell>
<mxCell id="c70" value="Key store&lt;br&gt;7f3a → 201 o-88213" style="text;html=1;whiteSpace=wrap;align=center;verticalAlign=top;fontSize=11;fontColor=#202124;fontStyle=1;spacing=0;" vertex="1" parent="1"><mxGeometry x="1304" y="597" width="140" height="32" as="geometry"/></mxCell>
<mxCell id="c71" style="edgeStyle=none;html=1;rounded=0;strokeColor=#5F6368;strokeWidth=2;dashed=0;startArrow=none;startFill=1;endArrow=block;endFill=1;endSize=4;startSize=4;" edge="1" parent="1"><mxGeometry relative="1" as="geometry"><mxPoint x="1104" y="596" as="sourcePoint"/><mxPoint x="1162" y="596" as="targetPoint"/></mxGeometry></mxCell>
<mxCell id="c72" style="edgeStyle=none;html=1;rounded=0;strokeColor=#1E8E3E;strokeWidth=2;dashed=0;startArrow=none;startFill=1;endArrow=block;endFill=1;endSize=4;startSize=4;" edge="1" parent="1"><mxGeometry relative="1" as="geometry"><mxPoint x="1162" y="616" as="sourcePoint"/><mxPoint x="1104" y="616" as="targetPoint"/></mxGeometry></mxCell>
<mxCell id="c73" style="edgeStyle=none;html=1;rounded=0;strokeColor=#8430CE;strokeWidth=2;dashed=0;startArrow=none;startFill=1;endArrow=block;endFill=1;endSize=4;startSize=4;" edge="1" parent="1"><mxGeometry relative="1" as="geometry"><mxPoint x="1264" y="604" as="sourcePoint"/><mxPoint x="1302" y="604" as="targetPoint"/></mxGeometry></mxCell>
<mxCell id="c74" value="retry #2, same key" style="text;html=1;whiteSpace=wrap;align=left;verticalAlign=top;fontSize=10;fontColor=#5F6368;fontStyle=0;spacing=0;" vertex="1" parent="1"><mxGeometry x="1014" y="542" width="200" height="16" as="geometry"/></mxCell>
<mxCell id="c75" value="saved 201, no new charge" style="text;html=1;whiteSpace=wrap;align=left;verticalAlign=top;fontSize=10;fontColor=#1E8E3E;fontStyle=0;spacing=0;" vertex="1" parent="1"><mxGeometry x="1074" y="644" width="220" height="16" as="geometry"/></mxCell></root></mxGraphModel></diagram>
</mxfile>
