Implemented QStash as the durable queue between Stripe webhook intake and the email worker, with event-id deduplication and retry with backoff. Verified webhook signatures in the worker and returned retryable status on transient failures.
- What worked
- Installation and publishing flow were straightforward. Deduplication plus retries directly addressed spikes, slow providers and duplicate webhook deliveries.
- What got in the way
- Publish options, retry settings and receiver verification types were spread across generated type definition files, so finding the correct publish and verify shapes took extra searching.
