Merge branch 'master' of https://github.com/drubioa/demo-cqrs-kafka into master
This commit is contained in:
26
.github/workflows/maven.yml
vendored
Normal file
26
.github/workflows/maven.yml
vendored
Normal file
@@ -0,0 +1,26 @@
|
||||
# This workflow will build a Java project with Maven
|
||||
# For more information see: https://help.github.com/actions/language-and-framework-guides/building-and-testing-java-with-maven
|
||||
|
||||
name: Java CI with Maven
|
||||
|
||||
on:
|
||||
push:
|
||||
branches: [ master ]
|
||||
pull_request:
|
||||
branches: [ master ]
|
||||
|
||||
jobs:
|
||||
build:
|
||||
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
- name: Set up JDK 1.8
|
||||
uses: actions/setup-java@v1
|
||||
with:
|
||||
java-version: 1.8
|
||||
- name: Build demo-command with Maven
|
||||
run: mvn -B package --file demo-command/pom.xml
|
||||
- name: Build demo-query with Maven
|
||||
run: mvn -B package --file demo-query/pom.xml
|
||||
114
cqrs.drawio
Normal file
114
cqrs.drawio
Normal file
@@ -0,0 +1,114 @@
|
||||
<mxfile host="app.diagrams.net" modified="2020-11-25T22:42:10.345Z" agent="5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/87.0.4280.66 Safari/537.36" etag="uOwEGMkwF35_2qVTCl63" version="13.10.3" type="github">
|
||||
<diagram id="dwUuTy2cjDjsSNc9xWwy" name="Page-1">
|
||||
<mxGraphModel dx="865" dy="457" grid="1" gridSize="10" guides="1" tooltips="1" connect="1" arrows="1" fold="1" page="1" pageScale="1" pageWidth="827" pageHeight="1169" math="0" shadow="0">
|
||||
<root>
|
||||
<mxCell id="0" />
|
||||
<mxCell id="1" parent="0" />
|
||||
<mxCell id="FPQnXXEWQoTXQ_zC0M5o-1" value="" style="ellipse;whiteSpace=wrap;html=1;fillColor=#dae8fc;strokeColor=none;" parent="1" vertex="1">
|
||||
<mxGeometry x="60" y="160" width="40" height="40" as="geometry" />
|
||||
</mxCell>
|
||||
<mxCell id="FPQnXXEWQoTXQ_zC0M5o-2" value="User" style="text;html=1;strokeColor=none;fillColor=none;align=center;verticalAlign=middle;whiteSpace=wrap;rounded=0;" parent="1" vertex="1">
|
||||
<mxGeometry x="60" y="200" width="40" height="20" as="geometry" />
|
||||
</mxCell>
|
||||
<mxCell id="FPQnXXEWQoTXQ_zC0M5o-6" value="POST" style="text;html=1;strokeColor=none;fillColor=none;align=center;verticalAlign=middle;whiteSpace=wrap;rounded=0;" parent="1" vertex="1">
|
||||
<mxGeometry x="130" y="170" width="40" height="20" as="geometry" />
|
||||
</mxCell>
|
||||
<mxCell id="FPQnXXEWQoTXQ_zC0M5o-11" value="" style="shape=flexArrow;endArrow=classic;html=1;endWidth=30.697674418604652;endSize=8.411627906976745;width=23.72093023255814;" parent="1" target="FPQnXXEWQoTXQ_zC0M5o-12" edge="1">
|
||||
<mxGeometry width="50" height="50" relative="1" as="geometry">
|
||||
<mxPoint x="100" y="179.88" as="sourcePoint" />
|
||||
<mxPoint x="220" y="179.88" as="targetPoint" />
|
||||
</mxGeometry>
|
||||
</mxCell>
|
||||
<mxCell id="FPQnXXEWQoTXQ_zC0M5o-14" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;exitX=1;exitY=0.5;exitDx=0;exitDy=0;entryX=0;entryY=0.5;entryDx=0;entryDy=0;entryPerimeter=0;dashed=1;" parent="1" source="FPQnXXEWQoTXQ_zC0M5o-12" target="FPQnXXEWQoTXQ_zC0M5o-13" edge="1">
|
||||
<mxGeometry relative="1" as="geometry" />
|
||||
</mxCell>
|
||||
<mxCell id="FPQnXXEWQoTXQ_zC0M5o-19" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;exitX=0.5;exitY=1;exitDx=0;exitDy=0;entryX=0;entryY=0.5;entryDx=0;entryDy=0;dashed=1;" parent="1" source="FPQnXXEWQoTXQ_zC0M5o-12" target="FPQnXXEWQoTXQ_zC0M5o-15" edge="1">
|
||||
<mxGeometry relative="1" as="geometry" />
|
||||
</mxCell>
|
||||
<mxCell id="FPQnXXEWQoTXQ_zC0M5o-12" value="Command&nbsp;<br>Microservice" style="rounded=0;whiteSpace=wrap;html=1;fillColor=#ffe6cc;strokeColor=none;" parent="1" vertex="1">
|
||||
<mxGeometry x="250" y="150" width="120" height="60" as="geometry" />
|
||||
</mxCell>
|
||||
<mxCell id="FPQnXXEWQoTXQ_zC0M5o-13" value="command&nbsp;<br>H2" style="shape=cylinder3;whiteSpace=wrap;html=1;boundedLbl=1;backgroundOutline=1;size=15;" parent="1" vertex="1">
|
||||
<mxGeometry x="430" y="140" width="70" height="80" as="geometry" />
|
||||
</mxCell>
|
||||
<mxCell id="FPQnXXEWQoTXQ_zC0M5o-23" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;exitX=0.602;exitY=0.978;exitDx=0;exitDy=0;entryX=0.5;entryY=0;entryDx=0;entryDy=0;dashed=1;exitPerimeter=0;" parent="1" source="FPQnXXEWQoTXQ_zC0M5o-15" target="FPQnXXEWQoTXQ_zC0M5o-22" edge="1">
|
||||
<mxGeometry relative="1" as="geometry" />
|
||||
</mxCell>
|
||||
<mxCell id="FPQnXXEWQoTXQ_zC0M5o-15" value="Apache Kafka Topic" style="rounded=1;whiteSpace=wrap;html=1;fillColor=#fff2cc;strokeColor=#d6b656;" parent="1" vertex="1">
|
||||
<mxGeometry x="250" y="250" width="180" height="30" as="geometry" />
|
||||
</mxCell>
|
||||
<mxCell id="FPQnXXEWQoTXQ_zC0M5o-17" value="" style="shape=image;verticalLabelPosition=bottom;labelBackgroundColor=#ffffff;verticalAlign=top;aspect=fixed;imageAspect=0;image=https://cdn.icon-icons.com/icons2/2248/PNG/512/apache_kafka_icon_138937.png;" parent="1" vertex="1">
|
||||
<mxGeometry x="430" y="250" width="32" height="32" as="geometry" />
|
||||
</mxCell>
|
||||
<mxCell id="FPQnXXEWQoTXQ_zC0M5o-26" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;exitX=1;exitY=0.5;exitDx=0;exitDy=0;entryX=0;entryY=0.5;entryDx=0;entryDy=0;entryPerimeter=0;dashed=1;" parent="1" source="FPQnXXEWQoTXQ_zC0M5o-21" target="FPQnXXEWQoTXQ_zC0M5o-25" edge="1">
|
||||
<mxGeometry relative="1" as="geometry" />
|
||||
</mxCell>
|
||||
<mxCell id="FPQnXXEWQoTXQ_zC0M5o-21" value="Query<br>Microservice" style="rounded=0;whiteSpace=wrap;html=1;fillColor=#d5e8d4;strokeColor=#82b366;" parent="1" vertex="1">
|
||||
<mxGeometry x="250" y="350" width="120" height="60" as="geometry" />
|
||||
</mxCell>
|
||||
<mxCell id="FPQnXXEWQoTXQ_zC0M5o-22" value="" style="rounded=0;whiteSpace=wrap;html=1;fillColor=#e1d5e7;strokeColor=#9673a6;" parent="1" vertex="1">
|
||||
<mxGeometry x="348" y="335" width="20" height="20" as="geometry" />
|
||||
</mxCell>
|
||||
<mxCell id="FPQnXXEWQoTXQ_zC0M5o-24" value="KafkaListener" style="text;html=1;strokeColor=none;fillColor=none;align=center;verticalAlign=middle;whiteSpace=wrap;rounded=0;fontSize=9;" parent="1" vertex="1">
|
||||
<mxGeometry x="380" y="330" width="40" height="20" as="geometry" />
|
||||
</mxCell>
|
||||
<mxCell id="CqvscLPTOn5NIJj6WVxx-2" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;exitX=0.5;exitY=1;exitDx=0;exitDy=0;exitPerimeter=0;entryX=0.5;entryY=1;entryDx=0;entryDy=0;dashed=1;fontSize=9;" edge="1" parent="1" source="FPQnXXEWQoTXQ_zC0M5o-25" target="FPQnXXEWQoTXQ_zC0M5o-21">
|
||||
<mxGeometry relative="1" as="geometry" />
|
||||
</mxCell>
|
||||
<mxCell id="FPQnXXEWQoTXQ_zC0M5o-25" value="query<br>H2" style="shape=cylinder3;whiteSpace=wrap;html=1;boundedLbl=1;backgroundOutline=1;size=15;" parent="1" vertex="1">
|
||||
<mxGeometry x="440" y="340" width="70" height="80" as="geometry" />
|
||||
</mxCell>
|
||||
<mxCell id="FPQnXXEWQoTXQ_zC0M5o-27" value="" style="ellipse;whiteSpace=wrap;html=1;fillColor=#dae8fc;strokeColor=none;" parent="1" vertex="1">
|
||||
<mxGeometry x="60" y="360" width="40" height="40" as="geometry" />
|
||||
</mxCell>
|
||||
<mxCell id="FPQnXXEWQoTXQ_zC0M5o-28" value="User" style="text;html=1;strokeColor=none;fillColor=none;align=center;verticalAlign=middle;whiteSpace=wrap;rounded=0;" parent="1" vertex="1">
|
||||
<mxGeometry x="60" y="400" width="40" height="20" as="geometry" />
|
||||
</mxCell>
|
||||
<mxCell id="FPQnXXEWQoTXQ_zC0M5o-29" value="" style="shape=flexArrow;endArrow=classic;html=1;endWidth=30.697674418604652;endSize=8.411627906976745;width=23.72093023255814;" parent="1" edge="1">
|
||||
<mxGeometry width="50" height="50" relative="1" as="geometry">
|
||||
<mxPoint x="100" y="379.71000000000004" as="sourcePoint" />
|
||||
<mxPoint x="250" y="379.7957142857142" as="targetPoint" />
|
||||
</mxGeometry>
|
||||
</mxCell>
|
||||
<mxCell id="FPQnXXEWQoTXQ_zC0M5o-30" value="GET" style="edgeLabel;html=1;align=center;verticalAlign=middle;resizable=0;points=[];" parent="FPQnXXEWQoTXQ_zC0M5o-29" vertex="1" connectable="0">
|
||||
<mxGeometry x="-0.1707" y="1" relative="1" as="geometry">
|
||||
<mxPoint as="offset" />
|
||||
</mxGeometry>
|
||||
</mxCell>
|
||||
<mxCell id="FPQnXXEWQoTXQ_zC0M5o-33" value="<font color="#97d077">ACEPTED</font>" style="text;html=1;strokeColor=none;fillColor=none;align=center;verticalAlign=middle;whiteSpace=wrap;rounded=0;fontSize=9;" parent="1" vertex="1">
|
||||
<mxGeometry x="138" y="200" width="40" height="20" as="geometry" />
|
||||
</mxCell>
|
||||
<mxCell id="CqvscLPTOn5NIJj6WVxx-6" value="1" style="ellipse;whiteSpace=wrap;html=1;aspect=fixed;fontSize=9;labelBackgroundColor=#000000;fontColor=#FFFFFF;fontStyle=1;fillColor=#000000;" vertex="1" parent="1">
|
||||
<mxGeometry x="236" y="150" width="14" height="14" as="geometry" />
|
||||
</mxCell>
|
||||
<mxCell id="CqvscLPTOn5NIJj6WVxx-9" value="2" style="ellipse;whiteSpace=wrap;html=1;aspect=fixed;fontSize=9;labelBackgroundColor=#000000;fontColor=#FFFFFF;fontStyle=1;fillColor=#000000;" vertex="1" parent="1">
|
||||
<mxGeometry x="393" y="164" width="14" height="14" as="geometry" />
|
||||
</mxCell>
|
||||
<mxCell id="CqvscLPTOn5NIJj6WVxx-10" value="3" style="ellipse;whiteSpace=wrap;html=1;aspect=fixed;fontSize=9;labelBackgroundColor=#000000;fontColor=#FFFFFF;fontStyle=1;fillColor=#000000;" vertex="1" parent="1">
|
||||
<mxGeometry x="210" y="250" width="14" height="14" as="geometry" />
|
||||
</mxCell>
|
||||
<mxCell id="CqvscLPTOn5NIJj6WVxx-11" value="5" style="ellipse;whiteSpace=wrap;html=1;aspect=fixed;fontSize=9;labelBackgroundColor=#000000;fontColor=#FFFFFF;fontStyle=1;fillColor=#000000;" vertex="1" parent="1">
|
||||
<mxGeometry x="334" y="326" width="14" height="14" as="geometry" />
|
||||
</mxCell>
|
||||
<mxCell id="CqvscLPTOn5NIJj6WVxx-12" value="6" style="ellipse;whiteSpace=wrap;html=1;aspect=fixed;fontSize=9;labelBackgroundColor=#000000;fontColor=#FFFFFF;fontStyle=1;fillColor=#000000;" vertex="1" parent="1">
|
||||
<mxGeometry x="426" y="360" width="14" height="14" as="geometry" />
|
||||
</mxCell>
|
||||
<mxCell id="CqvscLPTOn5NIJj6WVxx-13" value="1" style="ellipse;whiteSpace=wrap;html=1;aspect=fixed;fontSize=9;labelBackgroundColor=#FF0000;fontColor=#FFFFFF;fontStyle=1;fillColor=#FF0000;labelBorderColor=none;strokeColor=none;" vertex="1" parent="1">
|
||||
<mxGeometry x="110" y="355" width="14" height="14" as="geometry" />
|
||||
</mxCell>
|
||||
<mxCell id="CqvscLPTOn5NIJj6WVxx-14" value="2" style="ellipse;whiteSpace=wrap;html=1;aspect=fixed;fontSize=9;labelBackgroundColor=#FF0000;fontColor=#FFFFFF;fontStyle=1;fillColor=#FF0000;labelBorderColor=none;strokeColor=none;" vertex="1" parent="1">
|
||||
<mxGeometry x="370" y="430" width="14" height="14" as="geometry" />
|
||||
</mxCell>
|
||||
<mxCell id="CqvscLPTOn5NIJj6WVxx-16" value="4" style="ellipse;whiteSpace=wrap;html=1;aspect=fixed;fontSize=9;labelBackgroundColor=#000000;fontColor=#FFFFFF;fontStyle=1;fillColor=#000000;" vertex="1" parent="1">
|
||||
<mxGeometry x="122" y="203" width="14" height="14" as="geometry" />
|
||||
</mxCell>
|
||||
<mxCell id="CqvscLPTOn5NIJj6WVxx-18" value="<font color="#97d077">OK</font>" style="text;html=1;strokeColor=none;fillColor=none;align=center;verticalAlign=middle;whiteSpace=wrap;rounded=0;fontSize=9;" vertex="1" parent="1">
|
||||
<mxGeometry x="148" y="390" width="40" height="20" as="geometry" />
|
||||
</mxCell>
|
||||
<mxCell id="CqvscLPTOn5NIJj6WVxx-19" value="3" style="ellipse;whiteSpace=wrap;html=1;aspect=fixed;fontSize=9;labelBackgroundColor=#FF0000;fontColor=#FFFFFF;fontStyle=1;fillColor=#FF0000;labelBorderColor=none;strokeColor=none;" vertex="1" parent="1">
|
||||
<mxGeometry x="143" y="393" width="14" height="14" as="geometry" />
|
||||
</mxCell>
|
||||
</root>
|
||||
</mxGraphModel>
|
||||
</diagram>
|
||||
</mxfile>
|
||||
Reference in New Issue
Block a user