Interview practice question
Webhooks arrive out of order
System Design · APIs and Communication · Intermediate
Your app receives "subscription updated" webhooks from a billing provider, sometimes out of order, causing wrong subscription states. How do you handle it?
What a strong answer covers
Your AI report card counts how many of these ideas you cover.
- Don't trust delivery order.
- Use event timestamps or sequence numbers.
- Fetch latest state from provider API.
- Ignore older events.
- Idempotent processing.
Practise this topic
Start without signing up. Sign in free to get an AI report card on your answer.