Design a Compliant SMS Campaign Send Pipeline at Billions Per Week

Last updated: November 29, 2026

Quick Overview

Design the backend that takes a marketer's scheduled SMS campaign targeting millions of subscribers and delivers it through carrier aggregators, honoring consent, quiet hours, frequency caps and per-number throughput, at peak loads of billions of messages per week.

Attentive
System Design
Software Engineer
Attentive
November 29, 2026
Software Engineer
System Design Round
System Design
Hard

0

0

0 solved


Design the backend that takes a marketer's scheduled SMS campaign targeting millions of subscribers and delivers it through carrier aggregators, honoring consent, quiet hours, frequency caps and per-number throughput, at peak loads of billions of messages per week.

This is the heart of Attentive's messaging platform. Black Friday week pushes volume to billions of texts, and a missed opt-out or a duplicate send costs both money and compliance exposure. The interviewer checks fan-out design, idempotency, backpressure toward rate-limited aggregators, and correctness under retries.

What the Interviewer Expects
  • Separate audience resolution, message rendering and delivery into stages connected by durable queues
  • Check consent and opt-out as close to send time as possible, not only at audience build
  • Shard work so per-sender throughput limits and per-subscriber caps are enforced without global locks
  • Make sends idempotent with a per (campaign, subscriber) key so retries never double-text
  • Handle delivery receipts and aggregator failures with retries, failover and dead-letter queues
  • Size the system with back-of-envelope numbers
Key Topics to Cover
Fan-out
Message queues
Idempotency
Rate limiting
Compliance
Backpressure
How to Approach This
  1. Start by clarifying functional and non-functional requirements with the interviewer.
  2. Estimate the scale: QPS, storage, bandwidth. This drives your design decisions.
  3. Draw a high-level architecture first, then deep dive into 1-2 critical components.
  4. Discuss trade-offs explicitly (e.g., consistency vs availability, SQL vs NoSQL).
  5. Address failure scenarios, monitoring, and how the system handles 10x traffic spikes.
Possible Follow-up Questions
  • A marketer cancels a campaign that is 40% sent. How fast can you stop it and how?
  • One aggregator starts returning errors for one carrier. What happens?
  • How do you guarantee a STOP received one second before a send is honored?
  • How would you add send-time optimization so each subscriber gets the text at their own best hour?
Sharpen Your Skills on Codemia

Practice similar problems with our interactive workspace, get AI feedback, and track your progress.

Practice System Design Problems
Sample Answer
Requirements

Functional: schedule a campaign for a segment, render a personalized body (name, link, coupon), and send over SMS/MMS through several aggregators. Track delivery and clicks, and allow cancel. Non-func...

High-Level Design
  1. Campaign service stores the campaign and, at the scheduled time, emits a job.
  2. Audience resolver evaluates the segment against the subscriber store. It writes recipient ids in chunks of a...

Submit Your Answer
Markdown supported

Related Questions