From e1fe87201e1199d3951c7a39172257d8887c468f Mon Sep 17 00:00:00 2001 From: Marc Gorzala Date: Tue, 26 Mar 2024 14:22:14 +0100 Subject: [PATCH] state management --- .../arc42/src/06_runtime_view.adoc | 41 +++++++++++++++++++ 1 file changed, 41 insertions(+) diff --git a/src/main/jbake/content/documentation/arc42/src/06_runtime_view.adoc b/src/main/jbake/content/documentation/arc42/src/06_runtime_view.adoc index 8f7c8ce..4f98e47 100644 --- a/src/main/jbake/content/documentation/arc42/src/06_runtime_view.adoc +++ b/src/main/jbake/content/documentation/arc42/src/06_runtime_view.adoc @@ -68,6 +68,47 @@ end === <> 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.