Design the Reminder and Expiration Service for Pending Envelopes
Last updated: November 29, 2026
Quick Overview
Design the service that sends reminder emails and SMS to recipients who have not acted on an envelope, on a per-envelope schedule set by the sender, and expires envelopes at their deadline, for hundreds of millions of open envelopes.
DocuSign
November 29, 20260
0
0 solved
Design the service that sends reminder emails and SMS to recipients who have not acted on an envelope, on a per-envelope schedule set by the sender, and expires envelopes at their deadline, for hundreds of millions of open envelopes.
Reminders and expirations are a quiet but heavy part of DocuSign eSignature: each envelope carries its own schedule, and a missed or duplicated reminder is visible to customers' clients. The interviewer looks for a durable timer design, idempotent delivery, and correct interaction with routing order and state changes.
What the Interviewer Expects
- Model timers durably rather than relying on in-memory schedulers
- Use bucketed due-time scanning or a delayed queue that scales to hundreds of millions of timers
- Re-check envelope state at fire time so signed or voided envelopes never get reminded
- Make sends idempotent with a key per envelope, recipient and reminder number
- Respect quiet hours, per-account rate limits and data residency
Key Topics to Cover
How to Approach This
- Start by clarifying functional and non-functional requirements with the interviewer.
- Estimate the scale: QPS, storage, bandwidth. This drives your design decisions.
- Draw a high-level architecture first, then deep dive into 1-2 critical components.
- Discuss trade-offs explicitly (e.g., consistency vs availability, SQL vs NoSQL).
- Address failure scenarios, monitoring, and how the system handles 10x traffic spikes.
Possible Follow-up Questions
- A sender changes the reminder settings on 50,000 envelopes at once through bulk edit. What happens?
- How do you avoid a thundering herd at midnight when many expirations land at the same second?
- How do you recover if the scanner is down for two hours?
- How would you add a smart reminder time based on when each recipient usually opens email?
Sharpen Your Skills on Codemia
Practice similar problems with our interactive workspace, get AI feedback, and track your progress.
Practice System Design ProblemsSample Answer
Requirements
Functional: per-envelope first-reminder delay and repeat frequency; reminders go only to recipients whose turn it is and who have not acted; expiration voids the envelope and notifies the sender; chan...
High-Level Design
Envelope service emits events (sent, recipient completed, voided, settings changed). A Timer service stores rows (due_minute_bucket, shard, envelope_id, kind, version) in a partitioned table. Scanne...