Yichuan Wang - PowerPoint PPT Presentation

1 / 16
About This Presentation
Title:

Yichuan Wang

Description:

4.3 Transaction Communication Yichuan Wang ywang38_at_student.gsu.edu What is transaction Network Business[2006, Chun-I Fan etc.] Database Communication Web Service Let ... – PowerPoint PPT presentation

Number of Views:73
Avg rating:3.0/5.0
Slides: 17
Provided by: ycwa
Learn more at: http://www.cs.gsu.edu
Category:

less

Transcript and Presenter's Notes

Title: Yichuan Wang


1
4.3 Transaction Communication
  • Yichuan Wang
  • ywang38_at_student.gsu.edu

2
What is transaction
  • Network
  • Business2006, Chun-I Fan etc.
  • Database
  • Communication
  • Web Service

3
Lets jog memory
  • The first presentation by Yang Wang
  • The Goal Concurrency Transparency
  • What is it again?
  • Service Oriented Request/Reply
  • Multicast

4
Transaction
  • Come from the transaction concept in the Database
    Management System
  • A sequence of synchronous request/reply that
    satisfy ACID
  • In distributed communication
  • Use asynchronous request/reply and multicast that
    satisfy ACID1997, Randy Chow etc.?

5
ACID
  • Atomicity
  • Consistency
  • Isolation
  • Durability

6
Atomicity
  • All (success) or none (fail)
  • Why?

7
Concurrency?
  • Or serializebility
  • Interleaved transactions is equivalent to a
    serial execution

8
Isolation
  • Partial result not visible until commit

9
Durability
  • After commitment, result is permanent even if
    system failed

10
Transaction Model
  • Coordinator
  • Participants
  • Commit or abort, based on whether conform to ACID
  • How?

11
Two-phase commit Protocol
  • 2PCwikipedia
  • Like a vote

12
2PC
  • Coordinator
  • Participants
  • Basic Idea
  • Logging, Shadow Caching
  • Time line

13
2PC recovery on error cases
  • Log old, new and vote.
  • Redo Only2000, Mohammad Alrifai etc.
  • Undo Only
  • Hybrid
  • Cascade rollbackwikipedia

14
Problem with 2PC
  • Uncertain time lock
  • Non-Blocking Asynchronous not possible unless
  • 3PC2004,Wenbing Zhao etc.

15
Transaction in web service
  • from different trusted domain and use
    heterogeneous application logics, flows, and
    platforms.
  • the sub-transaction of each participant may
    execute for various periods of time.
  • we cant just undo or roll back the whole
    transaction.

16
Reference
  • 1Randy Chow etc. Distributed Operating System
    Algorithm 1997
  • 2Wenbing Zhao etc., A Reservation-Based
    Extended Transaction Protocol,2004
  • 3 Mohammad Alrifai etc., Transactions
    Concurrency Control in Web Service
    Environment,2000
  • 4http//en.wikipedia.org/wiki/Two-phase_commit_p
    rotocol
  • 5 Chun-I Fan etc., Fair Transaction Protocols
    Based on Electronic Cash, 2006
  • 6 http//en.wikipedia.org/wiki/Cascading_rollbac
    k
Write a Comment
User Comments (0)
About PowerShow.com