csssia workshop – www 2008 speeding up web service composition with volatile external information...

23
CSSSIA Workshop – WWW 2008 Speeding up Web Service Composition with Volatile External Information John Harney, Prashant Doshi LSDIS Lab, Dept. of Computer Science, University of Georgia Presented By: Haibo Zhao LSDIS Lab, Dept. of Computer Science, University of Georgia

Upload: dylan-justice

Post on 31-Mar-2015

218 views

Category:

Documents


3 download

TRANSCRIPT

Page 1: CSSSIA Workshop – WWW 2008 Speeding up Web Service Composition with Volatile External Information John Harney, Prashant Doshi LSDIS Lab, Dept. of Computer

CSSSIA Workshop – WWW 2008

Speeding up Web Service Composition with Volatile

External InformationJohn Harney, Prashant Doshi

LSDIS Lab, Dept. of Computer Science,University of Georgia

Presented By:Haibo Zhao

LSDIS Lab, Dept. of Computer Science,University of Georgia

Page 2: CSSSIA Workshop – WWW 2008 Speeding up Web Service Composition with Volatile External Information John Harney, Prashant Doshi LSDIS Lab, Dept. of Computer

Adaptation of WS Compositions• Many Web service composition (WSC) techniques

assume static environments– Service parameters are assumed fixed

• Environments are often dynamic – Examples -- Trip planner

• Price of an airline ticket offered by a service (such as Delta’s online booking) increases

• Availabilities of rooms at a specific hotel may increase or decrease

• Service response time increases due to network outage

Page 3: CSSSIA Workshop – WWW 2008 Speeding up Web Service Composition with Volatile External Information John Harney, Prashant Doshi LSDIS Lab, Dept. of Computer

Optimal WSC• Optimality – Selecting services so as to minimize

cost of trip and optimize other parameters

• Underlying objective – maintain WSC optimality• Depends on how accurately the services’ parameters are

captured• Requires cognizance of changes in parameter values that

may have occurred• Backtracking to previous points in the composition and

recomposition may be needed

Page 4: CSSSIA Workshop – WWW 2008 Speeding up Web Service Composition with Volatile External Information John Harney, Prashant Doshi LSDIS Lab, Dept. of Computer

Motivating Scenario – Travel Planning

StartDelta

Ticketing Service

Rental car Service

Hotel Service

Ticket price expires

Backtrack prior to selection of Airline

Ticket Service

United Ticketing Service

Finish

Delta ticket price increases

United ticket becomes cheapest available

Page 5: CSSSIA Workshop – WWW 2008 Speeding up Web Service Composition with Volatile External Information John Harney, Prashant Doshi LSDIS Lab, Dept. of Computer

Greedy Composition

• Composition method selects the best service amax at every step (state) without look ahead

Start

… … …

Finisha2(s0)

a1(s0)

an(s0)

a2(s1)

a1(s1)

an(s1)

a2(sm)

a1(sm)

an(sm)

amax

amax

amax

Starta2(s0)

Starta2(s0)

StartStartStart

Page 6: CSSSIA Workshop – WWW 2008 Speeding up Web Service Composition with Volatile External Information John Harney, Prashant Doshi LSDIS Lab, Dept. of Computer

Greedy Composition

Problem formalization

},,,ˆ,,,{ 0 AvCsAAsSP g

Set of all states

Set of all candidate WSs

Initial State

Availability of services

Set of possible WSs that can be invoked at a state

Cost of services

Goal state

Page 7: CSSSIA Workshop – WWW 2008 Speeding up Web Service Composition with Volatile External Information John Harney, Prashant Doshi LSDIS Lab, Dept. of Computer

Greedy Composition

• A service a is chosen based on its value:a

Av

a

Ca AvwCwV

Importance of Cost Importance of Availability

Normalized Cost Normalized Availability

a

sAa

Vs)(ˆ

maxarg)(*

Service selected is the one that yields the greatest value.

Policy for choosing the best service at each state

Page 8: CSSSIA Workshop – WWW 2008 Speeding up Web Service Composition with Volatile External Information John Harney, Prashant Doshi LSDIS Lab, Dept. of Computer

Reactive Query Policies

• Introduced by Au and Nau (2006)– Reactive Query Policy

• Set of rules that decide when expired parameters of services should be queried and revised values integrated during the composition

– Three policies were introduced• Eager• Lazy• Presumptive

Page 9: CSSSIA Workshop – WWW 2008 Speeding up Web Service Composition with Volatile External Information John Harney, Prashant Doshi LSDIS Lab, Dept. of Computer

Reactive Query Policies

• Eager – When a service expires, query that service and halt

composition until answer arrives; if needed, backtrack and recompose

Airline Ticket

Service

Rental Car

Servicestart

Ticket Expires

Query issued Query response received

Backtrack if needed

endHotel

ServiceHALTS

Page 10: CSSSIA Workshop – WWW 2008 Speeding up Web Service Composition with Volatile External Information John Harney, Prashant Doshi LSDIS Lab, Dept. of Computer

Reactive Query Policies

• Lazy – When a service expires, query that service and continue

composition until goal is reached; if needed, backtrack and recompose

Airline Ticket

Service

Rental Car

Servicestart

Ticket Expires

Query issued

CONTINUE

Query response received

Hotel Service

Backtrack if needed

end

Page 11: CSSSIA Workshop – WWW 2008 Speeding up Web Service Composition with Volatile External Information John Harney, Prashant Doshi LSDIS Lab, Dept. of Computer

Reactive Query Policies

• Presumptive – When a service expires, query that service and continue

composition until the answer to the query is received; if needed, backtrack and recompose

Airline Ticket

Service

Rental Car

Servicestart

Ticket Expires

Query issued

CONTINUE

Query response received

Backtrack if needed

endHotel

Service

Page 12: CSSSIA Workshop – WWW 2008 Speeding up Web Service Composition with Volatile External Information John Harney, Prashant Doshi LSDIS Lab, Dept. of Computer

Reactive Query Policies

• All previous policies suffer from:– Excessive backtracking (some backtracking is

not required)– Checks if the value of the service parameter

changes rather than if the policy changes

Not all changes in the values of the parameters cause changes in the composition!

Page 13: CSSSIA Workshop – WWW 2008 Speeding up Web Service Composition with Volatile External Information John Harney, Prashant Doshi LSDIS Lab, Dept. of Computer

Our Approach: Informed-Presumptive• Improves the presumptive approach

– Identifies regions of revised parameter values for which the optimal policy does not change

– Uses gradient descent to identify the regions

For a WSC, there exists at least one revised parameter vector

for which the value of using the current policy with is the same

as the value of using the optimal policy with .

},{'' aaa AvCp

Theorem

Typically, there are more parameter vectors for which the above is true!

ap

ap

Page 14: CSSSIA Workshop – WWW 2008 Speeding up Web Service Composition with Volatile External Information John Harney, Prashant Doshi LSDIS Lab, Dept. of Computer

Informed-PresumptiveGradient Descent

– How is the descent performed?

Value Difference

Cost

Availability

Start with 2 distinct points on the surface

Use gradient to descend down surface

Descend until Value Difference is zero

Form a line

Plot of Cost vs Availability vs Value Difference

Page 15: CSSSIA Workshop – WWW 2008 Speeding up Web Service Composition with Volatile External Information John Harney, Prashant Doshi LSDIS Lab, Dept. of Computer

Informed-Presumptive

• Presumptive vs Informed-Presumptive

Value Difference

Cost

Availability

Presumptive does not backtrack if the revised values are unchanged

Informed-presumptive does not backtrack if the revised values fall in region that policy is unchanged

VV *

VV **V

V

Value using optimal policy

Value using current policy

Page 16: CSSSIA Workshop – WWW 2008 Speeding up Web Service Composition with Volatile External Information John Harney, Prashant Doshi LSDIS Lab, Dept. of Computer

Informed-Presumptive

• Gradient Descent– Computationally inexpensive to find the region

Given that Va is a linear function of the parameters of a service a, the gradient :

is constant.

Theorem

})(

,)(

{)( a

a

a

aa

Av

pE

C

pEpE

Page 17: CSSSIA Workshop – WWW 2008 Speeding up Web Service Composition with Volatile External Information John Harney, Prashant Doshi LSDIS Lab, Dept. of Computer

Empirical Results• Experimental Setup

– Change Likelihood (probability that upon expiration, a service parameter will change)– Compared Informed-Presumptive against the previous existing strategies (Lazy, Eager, Presumptive) for the following:

• Time required to complete the WSC• Number of backtracks in the composition• Number of compositions that were not completed

Page 18: CSSSIA Workshop – WWW 2008 Speeding up Web Service Composition with Volatile External Information John Harney, Prashant Doshi LSDIS Lab, Dept. of Computer

Empirical Results

• Average Composition Times

As likelihood of change increases, the informed-presumptive out performs others by a wide margin

For lower change likelihoods, presumptive may outperform informed-presumptive

Reason: overstepping in gradient descent leads to slight error in division line

Page 19: CSSSIA Workshop – WWW 2008 Speeding up Web Service Composition with Volatile External Information John Harney, Prashant Doshi LSDIS Lab, Dept. of Computer

Empirical Results

• Average Number of Backtracks

As likelihood of change increases, the informed-presumptive backtracks less than the others

Note: Lazy approach performs limited backtracking, but the backtracks are more costly than the informed presumptive

Page 20: CSSSIA Workshop – WWW 2008 Speeding up Web Service Composition with Volatile External Information John Harney, Prashant Doshi LSDIS Lab, Dept. of Computer

Empirical Results

• Average Number of Incomplete Compositions

As likelihood of change increases, the informed-presumptive has less “incomplete” compositions

Page 21: CSSSIA Workshop – WWW 2008 Speeding up Web Service Composition with Volatile External Information John Harney, Prashant Doshi LSDIS Lab, Dept. of Computer

Conclusion

• Many Web service compositions must function in dynamic environments– Backtracking may be required

• Previous composition strategies perform redundant backtracks

• Our Informed-Presumptive strategy:– eliminates unnecessary backtracks – implemented without much extra overhead– outperforms previous strategies

Page 22: CSSSIA Workshop – WWW 2008 Speeding up Web Service Composition with Volatile External Information John Harney, Prashant Doshi LSDIS Lab, Dept. of Computer

Future Work

• Compositions with nonlinear combinations of parameters

• Challenges:– Dependencies between services– Gradient descent could be more expensive

computationally

Page 23: CSSSIA Workshop – WWW 2008 Speeding up Web Service Composition with Volatile External Information John Harney, Prashant Doshi LSDIS Lab, Dept. of Computer

Thank you

Questions