Skip to content

Commit 87de540

Browse files
AchoArnoldCopilot
andcommitted
docs: use mermaid diagram for queue decision flow
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
1 parent fe05df4 commit 87de540

1 file changed

Lines changed: 13 additions & 15 deletions

File tree

outgoing-message-queue.md

Lines changed: 13 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -147,21 +147,19 @@ In this example, with a default rate of 10 messages/minute:
147147

148148
## Summary: Queue Decision Flow
149149

150-
```
151-
Message received by httpSMS API
152-
153-
├── Has explicit `send_at` time?
154-
│ │
155-
│ YES → Dispatch at exactly that time
156-
│ (bypasses rate-limit AND schedule window)
157-
158-
└── No `send_at` time
159-
160-
├── Calculate rate-based delay
161-
│ (index × 60s ÷ messages_per_minute)
162-
163-
└── Apply send schedule window
164-
(hold until window opens if outside active hours)
150+
```mermaid
151+
flowchart TD
152+
A[Message received by httpSMS API] --> B{Has explicit send_at time?}
153+
B -->|YES| C[Dispatch at exactly that time]
154+
C --> D[Bypasses rate-limit AND schedule window]
155+
B -->|NO| E[Calculate rate-based delay]
156+
E --> F["delay = index × (60s ÷ messages_per_minute)"]
157+
F --> G{Send schedule window enabled?}
158+
G -->|YES| H{Within active window?}
159+
G -->|NO| I[Dispatch with rate delay only]
160+
H -->|YES| I
161+
H -->|NO| J[Hold until window opens]
162+
J --> I
165163
```
166164

167165
## Key Points

0 commit comments

Comments
 (0)