-
Notifications
You must be signed in to change notification settings - Fork 0
/
RetryFlow.wsd
49 lines (35 loc) · 1.03 KB
/
RetryFlow.wsd
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
@startuml
group Kafka Stream Processed
entity RetryStream
entity Offset
entity PrincipalStream
end
control Producer
control Consumer
collections RetryManager
RetryManager -> Consumer : List partitions of the topic
RetryManager <- Consumer
loop on partition
RetryManager -> Consumer : assign partition and poll one second
RetryStream <- Consumer : Get Records
RetryStream -> Consumer : Get Records
loop on records
Consumer -> RetryManager : Get Next Record
RetryManager -> RetryManager : Is time ?
alt successful
RetryManager -> Producer : push the payload
Producer -> PrincipalStream : push the record
Producer <- PrincipalStream
RetryManager <- Producer
RetryManager -> Consumer : Commit
Consumer -> Offset : push and commit
Consumer <- Offset
RetryManager <- Consumer
else
RetryManager->RetryManager: break and go to the next partition
end
end
RetryManager -> Consumer : refresh partitions list
RetryManager <- Consumer
end
@enduml