Files
hrynco-notification-service/README.md
T
Anatolii Grynchuk 25fb48ccf0 refactor: modularize email processing logic and improve service structure
- Extract email template handling, rendering, and sending code into `Worker.Services` project.
- Introduce `EmailTemplateService`, `EmailTemplateRenderingService`, and `SendEmailService`.
- Simplify consumer logic by delegating to scoped services.
- Update project dependencies and package references accordingly.
2026-05-14 22:15:15 +03:00

18 lines
517 B
Markdown

# hrynco-notification-service
## Notification worker flow
```mermaid
flowchart TD
A[Worker host starts] --> B[Load config and register services]
B --> C[Start SendEmailConsumer]
C --> D[Receive message from notification.send-email]
D --> E[Resolve SendEmailService]
E --> F[Pick channel and template]
F --> G[Render email content]
G --> H[Send via SMTP]
H --> I[Update usage counters]
I --> J[Optionally publish result to reply queue]
H -. failure .-> K[Log and rethrow]
```