



Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
Prepare for your exams
Study with the several resources on Docsity
Earn points to download
Earn points by helping other students or get them with a premium plan
E-Commerce is taking over the traditional commerce practices. It is of special concern for the IT students. Following are the key points of these Lecture Slides : Persistent Queuing, Explicit Traffic, Safe Place, Application, Transactional Resource, Sem Antics, Server Program, Client, Client Runs, Client Recovery
Typology: Slides
1 / 7
This page cannot be seen from the preview
Don't miss anything!




2/22/ 05 1
2/22/ 05 2
2/22/ 05 3
Client (^) Server Enqueue (^) Dequeue
2/22/ 05 5
2/22/ 05 6
Start Dequeue(Req, Q1) process request Req Enqueue(Reply, Q2) Commit
Client^ Enqueue Dequeue
Server’s request queue
Client’s reply queue
Q1 Server Program
2
2/22/ 05 7
Transaction Sem antics
ServerV iew (cont’d)
2/22/ 05 8
Transaction Sem antics-ClientV iew
Txn1: Start get input construct request Enqueue(Request, Q1) Commit Txn3: Start Dequeue(Reply, Q2) decode reply process output Commit
Txn2: Start Dequeue(Req, Q1) process request Req Enqueue(Reply, Q2) Commit
2/22/ 05 9
Transaction Sem antics
ClientV iew (cont’d)
2/22/ 05 10
ClientRecovery
2/22/ 05 11
ClientRecovery (2)
2/22/ 05 12
Transaction Sem antics-ClientV iew
Txn1: Start Get Request R from local DB Enqueue(Request R, Q1) State(R) = “Submitted” Commit Txn3: Start Dequeue(Reply for R, Q2) decode reply & process output State(R) = “Done” Commit
Txn2: Start Dequeue(Req, Q1) process request Req Enqueue(Reply, Q2) Commit
Txn0: Start construct request & store it in local DB State(R) = “NotSubmitted” Commit
Notin the textbook
4
2/22/ 05 19
O ptim izations
2/22/ 05 20
9.3 Q ueue M anager
2/22/ 05 21
Q ueue M anager(cont’d)
2/22/ 05 22
Exam ple ofEnqueue Param eters
(IBM M Q Series)
2/22/ 05 23
Priority O rdering
2/22/ 05 24
Routing
5
2/22/ 05 25
State ofthe A rt
2/22/ 05 26
A ppendix A :M arshaling
A pp Proxy Runtim e (^) Runtim e Stub A pp callP
return to caller
pack argu- m ents
unpack results
send
receive
receive
send
unpack argu- m ents
pack results
P
w ork
return
w ait
Client’s System Server’sSystem Call packet
Return packet
2/22/ 05 27
A dapting RPC M arshaling forQ ueues
A pp Proxy Runtim e (^) Runtim e Stub A pp callP
return to app
pack argu- m ents
unpack results
enqueue request
dequeue reply
dequeue request
enqueue reply
unpack argu- m ents
pack results
P
w ork
return
w ait
Client’s System (^) requestserver Server’sSystem queue
client reply queue
2/22/ 05 28
A ppendix B:M ulti-Transaction Requests
2/22/ 05 29
W orkflow
M anaging W orkflow w ith Q ueues
Submit expense claim
Validate claim
Get Manager Approval
Authorize Payment
Request Automatic Deposit
Email notification
7
2/22/ 05 37
M SM Q Interoperation