How it works
Track accepted intents, eligibility suppressions, queue age, worker failures, provider latency and error rate, retries, dead-letter count, accepted-by-provider rate, bounces, and invalid tokens. Label these by channel, provider, and priority without placing personal content in metrics or logs. Alert on end-to-end time for urgent messages, not just total queue depth.
An event timeline keyed by notification ID lets support answer what happened. One receipt might read: 12:00:01 accepted and queued, 12:00:03 attempt 1 timed out, 12:00:09 attempt 2 accepted by provider, 12:00:20 delivered callback. Open and click events are incomplete and affected by client behavior; Apple Mail Privacy Protection, for instance, can load tracking images without the person reading anything. They are product signals, not delivery proof. Retain only necessary personal data and constrain access to message content.
Timelines cost storage. At an example 6 million notifications a day, 5 events each, and 100 bytes per event, that is 3 GB a day, or 90 GB over 30 days, so choose a retention period deliberately.
For provider outages, pause or divert the affected queue according to policy, keep the durable backlog, use controlled retries or a consented fallback, and monitor age against the promise. Drill a failure where one provider is down while others continue, and another where a callback is duplicated. The design is complete only when operators can explain and recover those paths.
Email queue depth is steady, but some receipts arrive two hours late. What should an operator inspect?
Check oldest-item age and end-to-end latency by priority, worker throughput, provider throttling and errors, retry churn, and whether campaign traffic consumed receipt capacity. Stable depth does not mean a timely queue.
Use this as a guide for self review; written answers are not graded.Keep in mind
- Follow one stable ID through acceptance, policy, queue, provider, and callback states.
- Measure age and user-facing delay; queue depth alone can hide slow delivery.