Skip to content

Commit

Permalink
SBERDOMA-266 add UML inside README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
pahaz committed May 5, 2021
1 parent 71865de commit a5d436f
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 0 deletions.
4 changes: 4 additions & 0 deletions apps/condo/domains/notification/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,10 @@ Features:
- we can delivery message by user preferred transport (not implemented yet)
- user can ignore some messages types if want (not implemented yet)

Everything you needed is to call `sendMessage` inside your code.

![sendMessage Sequence Diagram](http://www.plantuml.com/plantuml/proxy?cache=no&src=https://raw.githubusercontent.com/open-condo-software/condo/master/apps/condo/domains/notification/docs/send-message-sequence-diagram.iuml)

# server side logic example

```javascript
Expand Down
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

0 comments on commit a5d436f

Please sign in to comment.