Skip to content

Commit 46436f2

Browse files
committed
Update diagrams
1 parent e6fd534 commit 46436f2

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed

img/plantuml/postgresql-naive-outbox.puml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,8 +35,8 @@ tx3 --> db: ""SELECT LAST_EVENT_ID""\n""FROM ES_EVENT_SUBSCRIPTION""
3535
db --> tx3: //LAST_EVENT_ID=100//
3636
tx3 --> db: ""SELECT ID FROM ES_EVENT""\n""WHERE ID > 100""
3737
db --> tx3: //ID=102//
38-
tx1 --> db: ""COMMIT""
3938
note over tx3: Process event with ID=102
39+
tx1 --> db: ""COMMIT""
4040
deactivate tx1
4141
tx3 --> db: ""UPDATE ES_EVENT_SUBSCRIPTION""\n""SET LAST_EVENT_ID = 102""
4242
tx3 --> db: ""COMMIT""

img/plantuml/postgresql-reliable-outbox.puml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,8 +36,8 @@ tx3 --> db: ""SELECT LAST_TRANSACTION_ID, LAST_EVENT_ID""\n""FROM ES_EVENT_SUBSC
3636
db --> tx3: //LAST_TRANSACTION_ID=850//\n//LAST_EVENT_ID=100//
3737
tx3 --> db: ""SELECT ID FROM ES_EVENT""\n""WHERE (TRANSACTION_ID, ID) > (850, 100)""\n""AND TRANSACTION_ID < 851""
3838
db --> tx3: //No rows//
39+
note over tx3: No eligible events,\nevent with ID=102 has TRANSACTION_ID=852 (> 851)
3940
tx1 --> db: ""COMMIT""
40-
note over tx3: Event with ID=102 has TRANSACTION_ID=852 (> 851)
4141
deactivate tx1
4242
tx3 --> db: ""COMMIT""
4343
deactivate tx3

0 commit comments

Comments
 (0)