Concept notes
Why this decision matters
Webhook Signature Forensics is focused practice for Webhook verification, replay protection, idempotency, and retry-safe processing. It explains why each answer is safe, risky, or production-ready.
Webhook endpoints are tiny doors into important backend state. This game treats each delivery like a forensic case: prove the evidence is authentic, fresh, unique enough, and safely accepted before it changes anything valuable.
Backend concept notes
Webhook delivery is at-least-once in many systems, so valid events can arrive more than once. The handler must verify the sender and make side effects idempotent.
A safe webhook path verifies the raw signed payload, enforces timestamp tolerance, stores dedupe state, persists accepted work durably, and returns 2xx only after the event is safe to process internally.
Common mistakes
- Verifying a re-serialized JSON body instead of the raw body bytes.
- Treating a valid signature as proof that the event is fresh or unique.
- Sending emails or charging accounts before durable dedupe state exists.
- Returning 500 for work that has already been durably accepted.
Review misses from this game
Related Backend Study Lab articles
Use the main site for deeper reading after playing.
Start here
Read deeper
Related Backend Study Lab tools
Use tools from the main site when you want to inspect real inputs.
FAQ
Short answers for how this game fits backend interview and study practice.
Why do webhooks need idempotency if they are signed?
A signature proves who sent the event. It does not prove this is the first delivery. Providers retry signed events after timeouts and network failures.
Should webhook handlers do all business work synchronously?
Usually no. A common pattern is verify, persist, enqueue internal work, then acknowledge with 2xx so provider retries do not amplify downstream delays.