Skip to main content

Design a reliable Webhook Delivery System

Deliver tenant-configured HTTP webhooks reliably even when customer endpoints are slow, flaky, or malicious (SSRF).

Official Reference

Model Answer & Explanation

Enqueue events via transactional outbox -> partition or per-endpoint fair queuing so one slow customer doesn’t starve others -> workers enforce strict DNS/IP SSRF blocking (no private 10.x/169.254.x IPs), short timeouts (5–10s), HMAC-SHA256 signatures, exponential backoff over 24–72h, circuit-breaking dead endpoints, and a delivery log UI.

Follow-up Interview Question · How do you defend against DNS rebinding SSRF attacks when fetching arbitrary webhook URLs?

Module Context & References

System Design · Widely asked design scenarios The 80/20 classic architecture prompts: requirements, data model, bottlenecks & tradeoffs
Personal Notes · Markdown

Technologies & Interview Topics Covered

Switch between short-term interview tracks and long-term 80/20 engineering depth to practice JavaScript internals, React rendering and hooks, timed frontend machine coding UI challenges, MeetaPro FG300, Blind 75 & NeetCode 150 DSA patterns, Python & FastAPI APIs, PostgreSQL query optimization & MVCC, Redis caching, Applied AI RAG pipelines & evaluations, and distributed system design.