generated from 8iq/nodejs-hackathon-boilerplate-starter-kit
-
Notifications
You must be signed in to change notification settings - Fork 30
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
SBERDOMA-266 add UML inside README.md
- Loading branch information
Showing
2 changed files
with
23 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
19 changes: 19 additions & 0 deletions
19
apps/condo/domains/notification/docs/send-message-sequence-diagram.iuml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
@startuml | ||
collections WEB | ||
boundary GQL | ||
database postgres | ||
database redis | ||
collections WORKER | ||
boundary API | ||
|
||
WEB -> GQL: sendMessage (type, meta, to) | ||
|
||
GQL -> postgres: 1) create Message record | ||
GQL -> WEB: OK (answer) | ||
GQL -> redis: 2) schedule send task | ||
|
||
redis //-- WORKER: wait task | ||
WORKER -> API: 3) choose message transport | ||
WORKER -> API: 4) render message template with meta data | ||
WORKER -> API: 5) call remote transport API to send it | ||
@enduml |