<mxfile><diagram name="kafka-streams"><mxGraphModel adaptiveColors="auto" background="#FFFFFF" pageWidth="970" pageHeight="380"><root><mxCell id="0"/><mxCell id="1" parent="0"/><mxCell id="in1" value="Tópico pedidos&lt;br&gt;(stream de eventos)" style="rounded=1;fillColor=#FFF0E5;strokeColor=#F0B48A;whiteSpace=wrap;html=1;fontSize=13;fontColor=#1B1F24;" vertex="1" parent="1"><mxGeometry x="20" y="60" width="180" height="64" as="geometry"/></mxCell><mxCell id="in2" value="Tópico clientes&lt;br&gt;(compactado, vira KTable)" style="rounded=1;fillColor=#FFF0E5;strokeColor=#F0B48A;whiteSpace=wrap;html=1;fontSize=13;fontColor=#1B1F24;" vertex="1" parent="1"><mxGeometry x="20" y="200" width="180" height="64" as="geometry"/></mxCell><mxCell id="g" value="Aplicação Kafka Streams (N instâncias, mesmo application.id)" style="rounded=1;arcSize=4;whiteSpace=wrap;html=1;fillColor=#F7F8FA;strokeColor=#D5DAE1;dashed=1;verticalAlign=top;align=left;spacingLeft=10;spacingTop=6;fontSize=13;fontStyle=1;fontColor=#5A626E;" vertex="1" parent="1"><mxGeometry x="260" y="10" width="430" height="330" as="geometry"/></mxCell><mxCell id="top" value="Topologia&lt;br&gt;filter → join → aggregate" style="rounded=1;fillColor=#EEF4FF;strokeColor=#9DB8F2;whiteSpace=wrap;html=1;fontSize=13;fontColor=#1B1F24;" vertex="1" parent="1"><mxGeometry x="290" y="60" width="190" height="70" as="geometry"/></mxCell><mxCell id="ss" value="State store local&lt;br&gt;(RocksDB)" style="rounded=1;fillColor=#EAF7EE;strokeColor=#8FCB9F;whiteSpace=wrap;html=1;fontSize=13;fontColor=#1B1F24;" vertex="1" parent="1"><mxGeometry x="510" y="60" width="160" height="70" as="geometry"/></mxCell><mxCell id="cl" value="Tópico changelog&lt;br&gt;(backup do estado no Kafka)" style="rounded=1;fillColor=#FFF0E5;strokeColor=#F0B48A;whiteSpace=wrap;html=1;fontSize=13;fontColor=#1B1F24;" vertex="1" parent="1"><mxGeometry x="510" y="220" width="160" height="70" as="geometry"/></mxCell><mxCell id="tk" value="Threads e tasks:&lt;br&gt;1 task por partição de entrada" style="rounded=1;fillColor=#F2F4F7;strokeColor=#B8C0CC;whiteSpace=wrap;html=1;fontSize=13;fontColor=#1B1F24;" vertex="1" parent="1"><mxGeometry x="290" y="220" width="190" height="70" as="geometry"/></mxCell><mxCell id="out" value="Tópico saída&lt;br&gt;pedidos-por-cliente" style="rounded=1;fillColor=#FFF0E5;strokeColor=#F0B48A;whiteSpace=wrap;html=1;fontSize=13;fontColor=#1B1F24;" vertex="1" parent="1"><mxGeometry x="750" y="130" width="180" height="64" as="geometry"/></mxCell><mxCell id="e1" value="" style="edgeStyle=orthogonalEdgeStyle;rounded=1;html=1;strokeColor=#8A94A6;fontColor=#5A626E;fontSize=11;labelBackgroundColor=#FFFFFF;endArrow=block;exitX=1;exitY=0.5;entryX=0;entryY=0.5;" edge="1" source="in1" target="top" parent="1"><mxGeometry relative="1" as="geometry"/></mxCell><mxCell id="e2" value="" style="edgeStyle=orthogonalEdgeStyle;rounded=1;html=1;strokeColor=#8A94A6;fontColor=#5A626E;fontSize=11;labelBackgroundColor=#FFFFFF;endArrow=block;exitX=1;exitY=0.5;entryX=0;entryY=0.5;" edge="1" source="in2" target="top" parent="1"><mxGeometry relative="1" as="geometry"/></mxCell><mxCell id="e3" value="lê/escreve" style="edgeStyle=orthogonalEdgeStyle;rounded=1;html=1;strokeColor=#8A94A6;fontColor=#5A626E;fontSize=11;labelBackgroundColor=#FFFFFF;endArrow=block;exitX=1;exitY=0.5;entryX=0;entryY=0.5;" edge="1" source="top" target="ss" parent="1"><mxGeometry relative="1" as="geometry"/></mxCell><mxCell id="e4" value="replica" style="edgeStyle=orthogonalEdgeStyle;rounded=1;html=1;strokeColor=#8A94A6;fontColor=#5A626E;fontSize=11;labelBackgroundColor=#FFFFFF;endArrow=block;exitX=0.5;exitY=1;entryX=0.5;entryY=0;" edge="1" source="ss" target="cl" parent="1"><mxGeometry relative="1" as="geometry"/></mxCell><mxCell id="e5" value="" style="edgeStyle=orthogonalEdgeStyle;rounded=1;html=1;strokeColor=#8A94A6;fontColor=#5A626E;fontSize=11;labelBackgroundColor=#FFFFFF;endArrow=block;dashed=1;exitX=0.5;exitY=1;entryX=0.5;entryY=0;" edge="1" source="top" target="tk" parent="1"><mxGeometry relative="1" as="geometry"/></mxCell><mxCell id="e6" value="resultado" style="edgeStyle=orthogonalEdgeStyle;rounded=1;html=1;strokeColor=#8A94A6;fontColor=#5A626E;fontSize=11;labelBackgroundColor=#FFFFFF;endArrow=block;exitX=1;exitY=0.5;entryX=0;entryY=0.5;" edge="1" source="g" target="out" parent="1"><mxGeometry relative="1" as="geometry"/></mxCell></root></mxGraphModel></diagram></mxfile>