Design a Notification System
A campaign must reach 5 million users. What stops it from sending duplicates, ignoring opt-outs or getting your sender banned?
لم يُترجم هذا التحدي إلى العربية بعد. أنت تقرأ النسخة الإنجليزية.
المهمة:Assemble a notification pipeline: asynchronous fan-out per channel, user preferences, deduplication, dead-lettering and provider rate limits — within a budget of 17.
Brightcart's services emit business events (order shipped, price drop). Today the notification API calls the e-mail provider synchronously; during campaigns it times out, retries, and some customers receive the same e-mail three times. Push notifications are next.
المهمة: Assemble a notification pipeline: asynchronous fan-out per channel, user preferences, deduplication, dead-lettering and provider rate limits — within a budget of 17.
أهداف التعلّم
- Decouple producers from slow providers with a queue.
- Fan out to channel-specific workers.
- Combine at-least-once delivery with deduplication, DLQs and rate limits.
المحاكاةمحاكاة