News for hackers. Stuff that matters.
Re:Adding Optimistic Locking to an API by durbatuluk on Thursday August 26, 2021 @02:07PM (#28318380)
We had similar problem (banking service). Instead of "moving" directly to destination we include a safe account in the middle.

A > safe > B

Safe account is called this way because we don't risk the misuse of money in case of rollback.

Re:Adding Optimistic Locking to an API by cbetti on Thursday August 26, 2021 @04:44PM (#28320458)
Generally in banking you either separate preauthorization (or reservation of funds) from authorization, or you separate transaction from settlement and you compute an acceptable rate of loss.

Why did you decide to go with an escrow model in your use case?