From 8e261a5ff5a2ed588ed0186c8f0988b3a249889b Mon Sep 17 00:00:00 2001 From: Alexander Nozik Date: Tue, 9 Jun 2020 14:43:04 +0300 Subject: [PATCH] uml diagrams --- docs/uml/async.puml | 9 +++++++++ docs/uml/eventbus-bi.puml | 16 ++++++++++++++++ docs/uml/eventbus-uni.puml | 17 +++++++++++++++++ 3 files changed, 42 insertions(+) create mode 100644 docs/uml/async.puml create mode 100644 docs/uml/eventbus-bi.puml create mode 100644 docs/uml/eventbus-uni.puml diff --git a/docs/uml/async.puml b/docs/uml/async.puml new file mode 100644 index 0000000..ebd9858 --- /dev/null +++ b/docs/uml/async.puml @@ -0,0 +1,9 @@ +@startuml +title Simple call with callback +Main -> Async: call +activate Async + +Async -> Main: result +deactivate Async + +@enduml \ No newline at end of file diff --git a/docs/uml/eventbus-bi.puml b/docs/uml/eventbus-bi.puml new file mode 100644 index 0000000..2455010 --- /dev/null +++ b/docs/uml/eventbus-bi.puml @@ -0,0 +1,16 @@ +@startuml +title Unidirectional event bus +Node1 -> Bus: send +activate Bus + +Bus -> Node2: consume +Node2 -> Bus: send +Bus -> Node1: consume +Node1 -> Bus: send +Bus -> Node2: consume +Node2 -> Bus: send +Bus -> Node1: consume + +deactivate Bus + +@enduml \ No newline at end of file diff --git a/docs/uml/eventbus-uni.puml b/docs/uml/eventbus-uni.puml new file mode 100644 index 0000000..cd12ed3 --- /dev/null +++ b/docs/uml/eventbus-uni.puml @@ -0,0 +1,17 @@ +@startuml +title Unidirectional event bus +Source -> Bus: send +activate Bus + +Source -> Bus: send +Bus -> Target: consume +Source -> Bus: send +Bus -> Target: consume +Source -> Bus: send +Bus -> Target: consume + +Bus -> Target: consume + +deactivate Bus + +@enduml \ No newline at end of file