4 ms·
How 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 tel
by StavrosK 12y ago
How 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".