<mxfile><diagram name="event-sourcing-cqrs"><mxGraphModel adaptiveColors="auto" background="#FFFFFF" pageWidth="985" pageHeight="400"><root><mxCell id="0"/><mxCell id="1" parent="0"/><mxCell id="g1" value="Lado de escrita (comandos)" 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="15" y="0" width="930" height="130" as="geometry"/></mxCell><mxCell id="g2" value="Lado de leitura (consultas)" 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="15" y="230" width="930" height="130" as="geometry"/></mxCell><mxCell id="cli" value="Cliente" style="rounded=1;fillColor=#F2F4F7;strokeColor=#B8C0CC;whiteSpace=wrap;html=1;fontSize=13;fontColor=#1B1F24;" vertex="1" parent="1"><mxGeometry x="40" y="150" width="140" height="56" as="geometry"/></mxCell><mxCell id="cmd" value="API de comandos&lt;br&gt;(valida regras)" style="rounded=1;fillColor=#EEF4FF;strokeColor=#9DB8F2;whiteSpace=wrap;html=1;fontSize=13;fontColor=#1B1F24;" vertex="1" parent="1"><mxGeometry x="230" y="45" width="170" height="60" as="geometry"/></mxCell><mxCell id="log" value="Tópico de eventos&lt;br&gt;(log imutável, fonte da verdade)" style="rounded=1;fillColor=#FFF0E5;strokeColor=#F0B48A;whiteSpace=wrap;html=1;fontSize=13;fontColor=#1B1F24;" vertex="1" parent="1"><mxGeometry x="470" y="40" width="230" height="70" as="geometry"/></mxCell><mxCell id="proj" value="Projetor&lt;br&gt;(consumer ou Kafka Streams)" style="rounded=1;fillColor=#EEF4FF;strokeColor=#9DB8F2;whiteSpace=wrap;html=1;fontSize=13;fontColor=#1B1F24;" vertex="1" parent="1"><mxGeometry x="750" y="45" width="170" height="60" as="geometry"/></mxCell><mxCell id="rdb" value="Banco de leitura&lt;br&gt;(modelo para consulta)" style="rounded=1;fillColor=#EAF7EE;strokeColor=#8FCB9F;whiteSpace=wrap;html=1;fontSize=13;fontColor=#1B1F24;" vertex="1" parent="1"><mxGeometry x="750" y="275" width="170" height="60" as="geometry"/></mxCell><mxCell id="q" value="API de consultas" style="rounded=1;fillColor=#EEF4FF;strokeColor=#9DB8F2;whiteSpace=wrap;html=1;fontSize=13;fontColor=#1B1F24;" vertex="1" parent="1"><mxGeometry x="480" y="275" width="210" height="60" as="geometry"/></mxCell><mxCell id="e1" value="comando" style="edgeStyle=orthogonalEdgeStyle;rounded=1;html=1;strokeColor=#8A94A6;fontColor=#5A626E;fontSize=11;labelBackgroundColor=#FFFFFF;endArrow=block;exitX=0.5;exitY=0;entryX=0;entryY=0.5;" edge="1" source="cli" target="cmd" parent="1"><mxGeometry relative="1" as="geometry"/></mxCell><mxCell id="e2" value="append do evento" 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="cmd" target="log" parent="1"><mxGeometry relative="1" as="geometry"/></mxCell><mxCell id="e3" value="consome" 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="log" target="proj" parent="1"><mxGeometry relative="1" as="geometry"/></mxCell><mxCell id="e4" value="atualiza" 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="proj" target="rdb" 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;exitX=0;exitY=0.5;entryX=1;entryY=0.5;" edge="1" source="rdb" target="q" parent="1"><mxGeometry relative="1" as="geometry"/></mxCell><mxCell id="e6" value="resposta" style="edgeStyle=orthogonalEdgeStyle;rounded=1;html=1;strokeColor=#8A94A6;fontColor=#5A626E;fontSize=11;labelBackgroundColor=#FFFFFF;endArrow=block;exitX=0;exitY=0.5;entryX=0.5;entryY=1;" edge="1" source="q" target="cli" parent="1"><mxGeometry relative="1" as="geometry"/></mxCell></root></mxGraphModel></diagram></mxfile>