How distributed systems make sure that even when you press the payment button twice the money is deducted only once.
Shouldn't PaymentService have a much smaller retry window than the client, so that i can retry calling the paymentprocessor before the lock expires which can minimize the total processing time?
Thanks for Sharing
Shouldn't PaymentService have a much smaller retry window than the client, so that i can retry calling the paymentprocessor before the lock expires which can minimize the total processing time?
Thanks for Sharing