OpenWSTransaction Enabling Reliable Web Service Transactions - PowerPoint PPT Presentation

1 / 18
About This Presentation
Title:

OpenWSTransaction Enabling Reliable Web Service Transactions

Description:

MySQL. Coord. Flight. Hotel. Web. Client. PgSQL. X. Participant Failures (WS-AT) ... Hosting server crashes Recover coordination context and database activity ... – PowerPoint PPT presentation

Number of Views:17
Avg rating:3.0/5.0
Slides: 19
Provided by: amit196
Category:

less

Transcript and Presenter's Notes

Title: OpenWSTransaction Enabling Reliable Web Service Transactions


1
OpenWS-TransactionEnabling Reliable Web Service
Transactions
Ivan Vasquez Kunal Verma John Miller Amit Sheth
2
What is it?
  • A middleware framework based on
    WS-Coordination, WS-AT, WS-BA
  • Provides fault tolerance
  • Minimizes impact to existing Web services
  • Application code changes
  • Performance

3
Actors
  • Service composition BPEL
  • Context management WS-Coordination
  • Transaction management WS-AT/BA
  • Participating services
  • Conventional services (wrap applications)
  • Database back-ends

4
Adapting Conventional Web Services
5
Coordination and Transaction Management
6
Putting it all together
7
Demo Normal Conditions
  • Process under WS-AT
  • Short duration
  • Full isolation (close nested transaction)
  • Local database transactions commit at the end of
    the transaction protocol
  • Sequential, synchronous interactions

8
Demo Normal Conditions
  • Process under WS-BA
  • Potentially long duration
  • Partial changes visible (open nested transaction)
  • Local database transactions commit immediately
  • Compensation to undo preliminary work (delegated)
  • Parallel, asynchronous interactions
  • Note Operational success ? Logical success

9
What can go wrong?
  • Logical errors (business logic)
  • Handled by
  • Business process definition
  • Web Services themselves
  • Transaction protocols (e.g. 2PC, Business
    Agreement)
  • Operational errors (technical failures)
  • Process engine
  • Coordination service
  • Transaction service
  • Participants
  • Involves hosting servers, database servers,
    network.

10
Demo Setup
WS BPEL
Coord.
Flight
Web Client
Hotel
Bank
Tomcat 8080
Tomcat 8088
PgSQL
MySQL
PgSQL
11
Participant Failures
WS BPEL
Coord.
Flight
Web Client
Hotel
Bank
X
Tomcat 8080
Tomcat 8088
X
PgSQL
MySQL
PgSQL
12
Coordinator Failure
WS BPEL
Coord.
Flight
Web Client
Hotel
Bank
X
Tomcat 8080
Tomcat 8088
PgSQL
MySQL
PgSQL
13
Participant Failures (WS-AT)
  • Before transaction is decided Understood as a
    negative vote.
  • After transaction is decided Problem!
  • Logical Logging Track operations on data, rather
    than data itself. Log
  • database calls
  • parameters
  • Scenario
  • Transactional process will commit
  • Database crashes ? Recover database activity
  • Hosting server crashes ? Recover coordination
    context and database activity
  • Process resumes normal execution

14
Participant Failures (WS-BA)
  • No need to recover database activity, however
  • Compensation is required
  • Coordinator invokes compensating operations based
    on original operation names
  • Actual compensation is delegated to Web services
  • Scenario
  • Transactional process will be canceled
  • A service voted to complete
  • Its hosting server crashes ? Recover coord.
    context
  • Compensate operation
  • Process resumes operation

15
Coordinator Failure
  • Failures leave pending operations at participants
  • Coordinator logs transactions, their state and
    participant endpoints (not their outcomes)
  • Scenario
  • Coordinator goes down amid a transaction
  • On restart, recovery process asks participants to
    vote once again
  • If a participant is not ready, it is recovered
    too
  • Business process can resume execution
  • Otherwise, transaction eventually times out and
    cancels all operations

16
Adopting the Framework
1
2
(WS-AT only)
3
17
Transactional BPELProcess
Begin
Tx Scope
End
18
Future Work
  • Provide contingent recovery using related work on
    Web service Autonomic Management
  • Integrate with existing transaction managers
Write a Comment
User Comments (0)
About PowerShow.com