News for hackers. Stuff that matters.
Re:Ask HN: Distributed transactions from mobile app to web s... by amarraja on Friday May 08, 2015 @03:10AM (#9510365)
Not sure if this is a recommended approach, but I did something similar recently.

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.

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.