This is distributed transaction problem, and there are multiple ways to solve it with the simple one being callback (webhook) with timeout. Put debit in a pending state, wait for response from API call, if successful complete transaction else fail and log it.

On the Calbank app, a transaction can fail and when you try again you realize the failed one went through resulting in multiple transactions. I'm curious how they are not catching that. Backend guys, there should be a way to prevent this right? How do you handle such cases?



United States Trends
Loading...

Something went wrong.


Something went wrong.