Skip to content

Commit

Permalink
📝 add sequence diagram
Browse files Browse the repository at this point in the history
  • Loading branch information
Petter Andersson committed Nov 16, 2022
1 parent 0951959 commit eed13c4
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,26 @@ There are three services provided by the project:
- An SMS content service that formats the messages to be sent
- An SMS send service that pushes the message to an external SMS proxy for delivery

```mermaid
sequenceDiagram
autonumber
participant MessageQueue
participant ListenerService
participant ContentService
participant SendService
MessageQueue->>+ListenerService: Event triggered
ListenerService->>+ContentService: Build content
ContentService-->>-ListenerService: Formatted content
ListenerService->>+SendService: Send SMS message
SendService-->>-ListenerService: Return
alt Send successful
ListenerService-->>MessageQueue: Acknowledge
else Send failed
ListenerService-->>-MessageQueue: Negative acknowledge
end
```

<p align="right">(<a href="#readme-top">back to top</a>)</p>

<!-- GETTING STARTED -->
Expand Down

0 comments on commit eed13c4

Please sign in to comment.