Re:Ask HN: Distributed transactions from mobile app to web s...
by tobinharris on Friday May 08, 2015 @12:03PM
(#9512432)
Cheers, I think this might be what we settle on (or similar).
One slight tweak would be to do a "retry" using the guid, but the server knows to send result of last success if the guid matches a completed transaction.
I create a guid on the client, and send this with the request. If I get a connection error or no response, I re-query with my client side id to see if the transaction succeeded.
I'm sure there are downsides to this, however for now it's simple and seems to be working well.