Question about transactions

Discussion space for community admins

Moderators: hugo, alexandre, rmvanarkel

Post Reply
cebim68
Posts: 2
Joined: Fri Feb 15, 2019 6:35 am

Question about transactions

Post by cebim68 » Fri Feb 15, 2019 6:45 am

Hi all,

I need more precisions about transactions behaviours.

If there are 3 bank accounts involved in a money transaction (A, B, C).

"A" give money to "B" and then "B" give money to "C".

Using the REST API, is there a way to manage these 2 money transactions as only one "atomic transaction" (computer science point of view), in order that a rollback call (still Using REST API) make that C gives the money back to B, and then B gives money back to A.
Or in case of network failure after the transaction between "A" and "B", I want to be sure that the entire transaction is cancelled, and avoid that only "A" give money to "B" and "C" does receive nothing.

Is it possible to have an example using the REST API ?

Best regards.

cebim68
Posts: 2
Joined: Fri Feb 15, 2019 6:35 am

Re: Question about transactions

Post by cebim68 » Fri Feb 22, 2019 11:36 am

up ?

Post Reply