-
Notifications
You must be signed in to change notification settings - Fork 5
Open
Description
Description
The Altinn Notifications Email service reads messages from the Kafka topic altinn.notifications.email.queue and forwards them to Azure Communication Services (ACS) for email delivery. ACS enforces rate limits and returns HTTP 429 Too Many Requests when those limits are exceeded. Currently, the email service continues attempting to send messages even after receiving the first 429 response. This leads to unnecessary retries and can result in delays exceeding one hour.
Expected Behavior
- When the service receives a 429 response from ACS:
- Temporarily stop sending further emails.
- Return messages to the Altinn Notifications API to update their status.
Acceptance Criteria
- Email service stops sending to ACS immediately after a 429 response.
- Altinn Notifications API updates the single row in the
notifications.resourcelimitlogtable with the next valid sending date and time. - Messages are handed back to the Altinn Notifications API.
- Altinn Notifications API updates the status of those messages back to
NewfromSending. - Altinn Notifications API resumes sending only after the retry interval.
- Unit/integration tests added to verify throttling behavior.
- Clear logs and metrics published for observability.
Metadata
Metadata
Assignees
Labels
No labels
Type
Projects
Status
📈 Accepted for clarification & planning