Design Reliable Post-Call Webhook Delivery for Customers
Last updated: November 29, 2026
Quick Overview
Design the system that delivers call lifecycle events (call started, call ended, call analyzed) to thousands of customer webhook endpoints with retries, signing, per-endpoint isolation and a way for customers to replay missed events.
Retell AI
November 29, 20260
0
0 solved
Design the system that delivers call lifecycle events (call started, call ended, call analyzed) to thousands of customer webhook endpoints with retries, signing, per-endpoint isolation and a way for customers to replay missed events.
Retell customers wire webhooks into CRMs and scheduling systems, so a lost 'call_analyzed' event can mean a booked appointment never lands. The interviewer checks at-least-once delivery, isolation of slow endpoints, idempotency guidance and operational visibility.
What the Interviewer Expects
- Write events durably before attempting delivery (outbox)
- At-least-once delivery with exponential backoff and a retry ceiling
- Per-endpoint queues or concurrency limits so one slow customer does not block others
- HMAC signatures, timestamps and event ids for idempotent consumers
- Delivery logs and manual replay in the dashboard
- Auto-disable or alert on endpoints that fail for a long time
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
- Do you guarantee ordering between call_started and call_ended for the same call?
- How do you handle an endpoint that takes 25 seconds to respond?
- How would you support a large payload such as a full transcript with recording URL?
- What metrics would you alert on internally?
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
Event types per call, roughly 3 per call, peaking at a few thousand per second. At-least-once delivery, retries for up to 24 hours, per-event delivery history visible to the customer, signing secret p...
High-Level Design
Call services write the event to an events table in the same transaction as the state change (outbox). A relay publishes new events to a queue partitioned by endpoint id. Delivery workers pull per p...