---
title: "Discussion on \"System Design Drill Day 13: Designing a Multi-Channel Notification System\" | Hashnode"
description: "Discussion on \"System Design Drill Day 13: Designing a Multi-Channel Notification System\". How to design a notification service with per-channel workers, priority queues, preferences, dedup and signed webhook retries."
url: "https://hashnode.com/posts/system-design-drill-day-13-designing-a-multi-channel-notification-system/6aec10be05f6196496e97837"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [System Design Drill Day 13: Designing a Multi-Channel Notification System](https://blog.anishansari.com.np/system-design-drill-day-13-designing-a-multi-channel-notification-system?utm_source=hashnode&utm_medium=feed)

How to design a notification service with per-channel workers, priority queues, preferences, dedup and signed webhook retries.

Nov 5 · 7 min read · blog.anishansari.com.np  
Read the article

-   [#system-design](https://hashnode.com/tag/system-design)
-   [#backend](https://hashnode.com/tag/backend)
-   [#laravel](https://hashnode.com/tag/laravel)
-   [#redis](https://hashnode.com/tag/redis)
-   [#interview-preparation](https://hashnode.com/tag/interview-preparation)

## Written by

[Anish Ansari](https://hashnode.com/@anish78)

@anish78 · kathmandu, Nepal

  
[View profile](https://hashnode.com/@anish78)

Food,Code and Cloud Computing. You can support here :https://www.buymeacoffee.com/anishansari

## Responses 10

Markdown supported · ⌘↵ to post

[Steven Mock](https://hashnode.com/@stevenmock)

[Nov 7](https://hashnode.com/posts/system-design-drill-day-13-designing-a-multi-channel-notification-system/6aec10be05f6196496e97837/comment/6aeea5290b6dcfae4b0f8b7f)

Really useful drill. The OTP-behind-a-marketing-campaign example makes the priority point stick — I have lived the version where a time-sensitive message sat behind a bulk send. Giving OTPs and receipts their own lane, with a separate queue per channel, is the part I would build first. The dedup key plus row locking before calling the provider is also a clean way to stop the double-SMS problem without overcomplicating it.

[Anish Ansari](https://hashnode.com/@anish78)

[Nov 7](https://hashnode.com/posts/system-design-drill-day-13-designing-a-multi-channel-notification-system/6aec10be05f6196496e97837/comment/6aeea5290b6dcfae4b0f8b7f#reply-6aef2823d62f923148a0fa9e)

Glad the OTP-behind-campaign example landed. Separate lanes for OTPs and receipts is exactly where I'd start too, and locking the row before the provider call is the simplest way I've found to keep a retry from sending a second SMS.

[SMTasker](https://hashnode.com/@smtasker)

[Nov 6](https://hashnode.com/posts/system-design-drill-day-13-designing-a-multi-channel-notification-system/6aec10be05f6196496e97837/comment/6aee2c1d84e31be5cdf51cdd)

The failover path seems to need one more distinction: a definite rejection versus a timeout after the provider may have accepted the SMS. A provider-scoped idempotency key may not carry across to the fallback provider. I'd test 'A accepts, response is lost, B is selected' and document how that uncertain outcome is reconciled or deliberately retried. Row locking alone cannot settle what happened outside the database.

[Anish Ansari](https://hashnode.com/@anish78)

[Nov 7](https://hashnode.com/posts/system-design-drill-day-13-designing-a-multi-channel-notification-system/6aec10be05f6196496e97837/comment/6aee2c1d84e31be5cdf51cdd#reply-6aef263bf07c51fd4860a8b0)

You're right that a lost response after A may have accepted is a different failure mode than a clean reject. I'd treat that path as uncertain and reconcile with a provider status check (or a careful deliberate retry policy) before falling over to B, since a provider-scoped key won't help the fallback.

[SMTasker](https://hashnode.com/@smtasker)

[Nov 10](https://hashnode.com/posts/system-design-drill-day-13-designing-a-multi-channel-notification-system/6aec10be05f6196496e97837/comment/6aee2c1d84e31be5cdf51cdd#reply-6af37abd953abc28ba3865c2)

That distinction makes the failover policy clearer. One extra fixture I'd add is that the reconciliation lookup also times out. Preserve the uncertain state and the original provider reference, then make the next retry decision explicit. An inconclusive status check should not quietly turn an ambiguous send into a definite rejection.

[Anish Ansari](https://hashnode.com/@anish78)

[Nov 11](https://hashnode.com/posts/system-design-drill-day-13-designing-a-multi-channel-notification-system/6aec10be05f6196496e97837/comment/6aee2c1d84e31be5cdf51cdd#reply-6af4696d4b78a8243a6fce5b)

Good fixture to add. If the status check itself times out, keeping the send in that uncertain state with the original provider reference means the next retry is a deliberate call instead of a quiet rejection.

[Branden Floris](https://hashnode.com/@branden991)

[Nov 6](https://hashnode.com/posts/system-design-drill-day-13-designing-a-multi-channel-notification-system/6aec10be05f6196496e97837/comment/6aed1d28ce7bc9005a7a536e)

The OTP behind the campaign queue story is a great opener because everyone has lived some version of it. One thing worth adding, separate queues is necessary but not sufficient. If both queues drain through the same provider account, the campaign still eats your OTP throughput at the rate limit. Priority has to survive all the way to the provider, separate sending identities or reserved capacity, otherwise you just moved the head of line blocking one hop downstream. Also OTPs deserve a short TTL. Delivering a login code five minutes late is worse than dropping it, the user already asked for a new one.

[Anish Ansari](https://hashnode.com/@anish78)

[Nov 6](https://hashnode.com/posts/system-design-drill-day-13-designing-a-multi-channel-notification-system/6aec10be05f6196496e97837/comment/6aed1d28ce7bc9005a7a536e#reply-6aedaa581e2815f0d224c9cd)

Yeah, the shared provider account is the part that bites after you split the queues. Separate sending identities or reserved capacity is what actually keeps OTP throughput safe, and a short TTL so a late login code gets dropped instead of confusing the user is a solid call.

[Seedance AI](https://hashnode.com/@seedance-ai)

[Nov 5](https://hashnode.com/posts/system-design-drill-day-13-designing-a-multi-channel-notification-system/6aec10be05f6196496e97837/comment/6aec1ebc25aa400062e01876)

Great breakdown on decoupling priority queues from delivery providers. Handling provider-side rate limits and backpressure with exponential backoff and dead-letter queues is crucial when spikes hit.

[Anish Ansari](https://hashnode.com/@anish78)

[Nov 7](https://hashnode.com/posts/system-design-drill-day-13-designing-a-multi-channel-notification-system/6aec10be05f6196496e97837/comment/6aec1ebc25aa400062e01876#reply-6aef0ec12f2f28abe734cbf3)

Thanks for reading and sharing your thoughts!
