3 ms·
The way I solve all these problems is. Prerequisite: require receiver to be able to process duplicate webhook being resent. Algorithm outline: 1. Have webhoo
by pyrolistical 3y ago
The way I solve all these problems is.
Prerequisite: require receiver to be able to process duplicate webhook being resent.
Algorithm outline:
1. Have webhook body stored by sender
2. Attempt to send body to receiver
3. If 2x status returned mark webhook as sent. Done
4. Otherwise for any other status or timeout increment attempt for webhook and try again later until maximum attempts (which then mark webhook as failed)
This covers the tricky case where success response gets dropped in network by having the sender time out and retry later. The receiver gets a duplicate
- foobiekr 3y agoYou should describe how you are backpressuring internally while this is going on and also how you send an indicator to the receiver that they encountered a gap.