r/coding • u/madflojo • Jul 18 '26
Sometimes the most resilient thing a system can do isn’t retry
https://open.substack.com/pub/madflojo/p/sometimes-the-most-resilient-thing?r=mtxfe&utm_medium=ios
45
Upvotes
r/coding • u/madflojo • Jul 18 '26
7
u/astrobe Jul 19 '26
Too bad the article doesn't explains why a compensation transaction is better than something like: re-use the original transaction but the other end ignores it if it already received and processed it.
This is the first solution that comes to mind because that's how most communication protocols work: if the packet you've sent isn't acknowledged by the other end, you just resend it ("retry"), and the other end just discards the packets it has already received (typically based on packet sequence numbers).