Skip to content

Commit

Permalink
state management
Browse files Browse the repository at this point in the history
  • Loading branch information
Marc Gorzala committed Mar 26, 2024
1 parent 65fb3d6 commit e1fe872
Showing 1 changed file with 41 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,47 @@ end

=== <<Info-Mail>> Sending

Currently we are sending out mails, to inform the customer about new chat-message that he has.
For this to happen we have three processes in place.

==== Maintaining the state per dancer
[plantuml, state-dancer, svg]
....
@startuml
autonumber
participant "Some System" as ss
participant KafkaAdapter
participant ApplicationEventListener
participant StateAdapter
participant ScheduleInfoMailCheck
ss -> KafkaAdapter : send Business Event
KafkaAdapter -> ApplicationEventListener : via mapped Application Event
ApplicationEventListener -> StateAdapter: load State
ApplicationEventListener -> ApplicationEventListener: update State
ApplicationEventListener -> StateAdapter: write State
ApplicationEventListener -> ScheduleInfoMailCheck : schedule InfoMailCheck
@enduml
....
==== Sending out the Mail to the dancer
[plantuml, check-and-send, svg]
....
@startuml
participant CheckAndSendService
participant StateAdapter
@enduml
....



==== Maintaining a dancier to email-address mapping

=== Process how Recommendations are being computed

When a user changes his profile, this is likey to invalidate all score he has in relation to other dancers.
Expand Down

0 comments on commit e1fe872

Please sign in to comment.