Design Reliable Developer Webhooks for API Events Like Batch Completion

Last updated: November 29, 2026

Quick Overview

Design a webhook system that notifies developers' servers about platform events (batch finished, fine-tuning job done, background response completed) with signatures, retries and delivery visibility.

OpenAI
System Design
Software Engineer
OpenAI
November 29, 2026
Software Engineer
System Design Round
System Design
Medium

0

0

0 solved


Design a webhook system that notifies developers' servers about platform events (batch finished, fine-tuning job done, background response completed) with signatures, retries and delivery visibility.

As OpenAI's API moves toward asynchronous work, developers need push notifications rather than polling. The interviewer checks at-least-once delivery, isolation from slow customer endpoints, security, and developer ergonomics.

What the Interviewer Expects
  • Define event schema with IDs, types and versioning
  • Persist events before delivery and deliver at least once
  • Sign payloads (HMAC with timestamp) to prevent spoofing and replay
  • Retry with exponential backoff and isolate slow or failing endpoints
  • Give developers a delivery log, manual redelivery and endpoint testing
Key Topics to Cover
webhooks
at-least-once delivery
HMAC signatures
retries
multi-tenant isolation
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 stop one customer's endpoint timing out from slowing everyone else?
  • Do you guarantee ordering? If not, how should developers cope?
  • How would you protect against SSRF when customers can enter any URL?
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
  • Developers register endpoints per project with event type subscriptions.
  • Deliver events within seconds typically; retry for up to 3 days.
  • Signed payloads; secret rotation.
  • Dashboard of attempt...
High-Level Design
  • Producer services write events to an event store (append-only table keyed event_id) and a Kafka topic.
  • Fan-out service matches subscriptions and creates delivery records `(delivery_id, e...

Submit Your Answer
Markdown supported