Design Webhook Delivery for a Developer Payments Platform
Last updated: November 29, 2026
Quick Overview
Design the system that sends event notifications (payment updated, order created, refund completed) to thousands of third-party developer endpoints reliably, securely and in a way developers can debug.
Square
November 29, 20260
0
0 solved
Design the system that sends event notifications (payment updated, order created, refund completed) to thousands of third-party developer endpoints reliably, securely and in a way developers can debug.
Developers building on the Square API subscribe to webhooks to keep their systems in sync with payments, orders and catalog changes, and reliable delivery is part of the platform's reputation. The interviewer looks for at-least-once delivery, isolation between slow and fast endpoints, signing, and a practical retry policy.
What the Interviewer Expects
- Choose at-least-once delivery and require consumer dedupe by event id
- Isolate slow or failing endpoints from healthy ones
- Use exponential backoff with a capped retry horizon
- Sign payloads (HMAC) and include timestamps
- Offer delivery logs and manual replay
- Discuss ordering guarantees honestly
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 stop one endpoint that times out for 30 seconds from delaying everyone?
- Should you guarantee ordering per payment, and at what cost?
- When do you automatically disable a subscription?
- How would you let developers replay a day of events after their outage?
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
Inputs are domain events from payment, order and catalog services. Each subscription has a URL, event types and a signature key. Deliver within seconds normally, retry for up to about 24 hours, never ...
High-Level Design
Domain services publish to Kafka. A fan-out service matches events to subscriptions and writes one delivery record per (event, subscription) into a delivery store plus a work queue partitioned by subs...