Interview practice question
Processing incoming webhooks reliably
Backend Engineering · API Design · Intermediate
Your service receives webhooks from a payment provider. Sometimes processing takes long, the provider times out and retries, and you process events twice. How do you fix it?
What a strong answer covers
Your AI report card counts how many of these ideas you cover.
- Acknowledge fast (200).
- Queue for async processing.
- Dedup by event ID.
- Verify signature first.
- Idempotent handlers.
Practise this topic
Start without signing up. Sign in free to get an AI report card on your answer.