From Dev.to
A correct webhook handler that still caused duplicate emails
Our webhook handler did everything inline: verify the signature, update the order, send the receipt email, push to the ERP, then return 200. On a normal day that took 300 ms. During an ERP slowdown it...
