3 ms·
Yeah and if Stripe goes down your server goes down with it.
by cdelsolar 12y ago
Yeah and if Stripe goes down your server goes down with it.
- StavrosK 12y agoHow are you architecting things that an upstream error will cause your server to die? Look, in both cases, the request needs to be synchronous. You need to tell the customer that their purchase went through. If you're going to add a whole other bus into the thing and make it asynchronous and have an elaborate polling solution on the client, that's fine, but I would (and do) just have them wait the two extra seconds and either say "your card has been charged" or handle the rare case with "there has been an upstream error, please don't close this window while we retry the request".
- pyre 12y agoIf Stripe is your payment processor, how do you propose that one should process payments if Stripe is down? How does making payment processing asynchronous help? Why would your entire server die because Stripe's API failed to return?