Design a Timezone-Aware Batch Outbound Calling Scheduler

Last updated: November 29, 2026

Quick Overview

Design the service that takes a customer's uploaded list of contacts for an outbound voice agent campaign and places calls only within each contact's allowed local calling hours, with retries for no-answer and voicemail and a hard cap on calls in progress.

Retell AI
System Design
Software Engineer
Retell AI
November 29, 2026
Software Engineer
System Design Round
System Design
Medium

0

0

0 solved


Design the service that takes a customer's uploaded list of contacts for an outbound voice agent campaign and places calls only within each contact's allowed local calling hours, with retries for no-answer and voicemail and a hard cap on calls in progress.

Batch calling is how Retell customers run reminders, collections and lead follow-ups, and calling the wrong person at 7 a.m. their time is a compliance problem, not just a bug. The interviewer looks for durable job state, time-window scheduling, retry policy and fairness across campaigns.

What the Interviewer Expects
  • Persist each contact attempt as a durable state machine
  • Compute each contact's next eligible time from their timezone and allowed hours
  • Use a time-indexed queue so workers pull only due work
  • Respect concurrency caps and fairness between campaigns of one customer
  • Honor do-not-call and stop requests immediately
  • Expose progress and results to the customer
Key Topics to Cover
job scheduling
state machines
timezones
compliance windows
idempotency
fairness
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
  • How do you infer a contact's timezone when only a phone number is given?
  • How would you pause a campaign of 200k contacts instantly?
  • How do you stop two workers from dialing the same contact?
  • How would you spread retries so they do not all land at 9:00 a.m. local time?
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

Upload CSV up to about 1M rows with phone, variables and optional timezone. Per campaign: calling window (for example 9 a.m. to 8 p.m. local, weekdays), max attempts, retry delay, concurrency cap. Res...

High-Level Design

Upload service validates and writes contacts to Postgres (campaign_contacts with status, attempts, next_eligible_at). A scheduler loop selects due rows with next_eligible_at <= now() and `stat...


Submit Your Answer
Markdown supported

Related Questions