Skip to content

Commit

Permalink
Mail
Browse files Browse the repository at this point in the history
  • Loading branch information
Marc Gorzala committed Mar 26, 2024
1 parent 7d93198 commit b35b928
Showing 1 changed file with 10 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -37,10 +37,12 @@ kikeriki -> smtp: send the email
autonumber
participant "Some System" as ss
box kikeriki #LightBlue
participant "Kafka-Adapter" as ka
participant "Application Event" as ae
participant "Outbox"
participant "Outbox Job" as oj
end box
participant "SMTP-Server" as smtp
ss -> ka: send mail command
Expand All @@ -51,11 +53,17 @@ loop for each stored mail
oj -> Outbox : get Mail
Outbox -> smtp : send Mail
end
@enduml
....



1. send mail command reaches kikeriki
1. command is being mapped +
Kikeriki uses https://docs.spring.io/spring-framework/reference/testing/testcontext-framework/application-events.html[Spring Application Events] to couple it's distince modules. The incoming Mail-Command from Kafka is being mapped into a an Application Event, that is being thrown.
1. The Mail Command is stored into an outbox +
The Mail Command ist handled by storing it into on outbox table. (when this fails, also the Kafka-Adapter will try to reconsume the event until this is successfull)
1. A Job polls the outbox +
Every two seconds the Job looks for more Mails to be send.


=== Info-Mail Sending
Expand Down

0 comments on commit b35b928

Please sign in to comment.