Design an E-Signature Envelope Service Like Box Sign
Last updated: November 29, 2026
Quick Overview
Design a service that lets a sender prepare a document, route it to multiple signers in a set order or in parallel, collect signatures, and produce a tamper-evident signed PDF with an audit trail stored back in the sender's folder.
Box
November 29, 20260
0
0 solved
Design a service that lets a sender prepare a document, route it to multiple signers in a set order or in parallel, collect signatures, and produce a tamper-evident signed PDF with an audit trail stored back in the sender's folder.
Box Sign lives inside the content platform, so signed documents and their audit trails land in Box folders under existing permissions and retention rules. The interviewer looks for a clean workflow state machine, reliable notifications, document integrity, and how the service reuses storage and permission systems instead of rebuilding them.
What the Interviewer Expects
- Models an envelope as a state machine with per-signer states
- Supports sequential and parallel routing with reminders and expiry
- Makes signer actions idempotent and secure via single-use tokens
- Freezes the document with a hash at send time and seals it at completion
- Stores outputs and audit trail in Box with the sender's permissions
- Covers failure handling for email and PDF rendering
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
- How do you prove later that the PDF was not altered after signing?
- A signer declines halfway through a sequential flow. What happens to the envelope?
- How would you support templates sent to 10,000 recipients at once?
- What changes for signers who do not have Box accounts?
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: create an envelope from a Box file, place fields, add signers with order, send, sign or decline via a link, remind, expire, void, and produce a final signed PDF plus a signing log saved in...
High-Level Design
An Envelope API service backed by a relational store (envelopes, signers, fields, events). When sent, the service copies the source file version into an immutable working copy and records its SHA-256....