OpenBook
  • Problems
  • Tracks
  • How it works
  • Pricing
Start practicingSign In
Problems/Integrations

8. Webhook Receiver with Retries

Hard

Verify signatures, deduplicate deliveries and retry downstream processing with backoff.

55 minute budget29.8% acceptanceidempotency · queues

Requirements

  1. 01POST /webhooks verifies the x-webhook-signature header (HMAC-SHA256 of the raw body with the shared secret in the starter) and rejects a bad or missing signature with 401.
  2. 02Deliveries are deduplicated by the x-delivery-id header.
  3. 03Each delivery is handed to the in-process downstream at once; a failed attempt is retried with exponential backoff, and a delivery that keeps failing is eventually given up on.
  4. 04Time is simulated: every request may carry an x-now header, and POST /retries/run gives every retry due at that time one attempt. Nothing sleeps.
  5. 05GET /deliveries/:id reports status, attempts and the next attempt time; an unknown id is a 404.

What the hidden tests check

  • Everything the interviewer tells you is checked.
  • Signatures are verified over the exact bytes, time is driven only through x-now, and the downstream log must show each event exactly once.

4 more details are held back. In a mock interview they come out only when you ask the interviewer the right question; in practice they are listed in the workspace.

Sign in to start

Attempts, files and transcripts are saved to your account so the grader can review how you worked.

Sign inCreate an account
OpenBook

Practice for interviews where you build a feature with an AI assistant.

Early preview. Problems, grading and the interviewer are still changing.

Practice

  • Problems
  • Tracks
  • How it works
  • Pricing

Legal

  • Terms
  • Privacy
© 2026 OpenBook.