Distributed transactions
Posted
by javi
on Stack Overflow
See other posts from Stack Overflow
or by javi
Published on 2010-05-24T11:45:56Z
Indexed on
2010/05/24
11:51 UTC
Read the original article
Hit count: 386
Hello!
I've a question regarding distributed transactions. Let's assume I have 3 transaction programs:
Transaction A
- begin
- a=read(A)
- b=read(B)
- c=a+b
- write(C,c)
- commit
Transaction B
- begin
- a=read(A)
- a=a+1
- write(A,a)
- commit
Transaction C
- begin
- c=read(C)
- c=c*2
- write(A,c)
- commit
So there are 5 pairs of critical operations: C2-A5, A2-B4, B4-C4, B2-C4, A2-C4.
I should ensure integrity and confidentiality, do you have any idea of how to achieve it?
Thank you in advance!
© Stack Overflow or respective owner