
1
2/2/05 1
6. A pplication Server
Issues for the Project
Tran saction Proc essing
for E-Comm erce
2/2/05 2
R equests
•A re q u e st is a message that describes a unit of work fo r the
system to execu te.
•An app lication server coordinates the flow of requests
betw een message sou rces (disp lays, ap plications, etc.) and
app lication program s that run requests as transactions.
•Basic control flow :
–Translate the disp lay input (fo rm /m enu selection, etc.)
into a standard-form at requ e st
– S end the re q u es t to the app rop riate serv er based on the
tran saction type in the req u e st h eader
–Start the transaction
–In voke the transaction type’s application program
–Commit and send the transaction’s output to the disp lay
2/2/05 3
A pplication Server Architecture
• A pp server should make the previous con trol flow scale up
•Bold lines carry req ue st messages
Web Server
Workflow Controller
Transaction Serve r Transaction Server
intranet
ht
t
p
other TP
systems
2
34
5
Web Browser
Resource Manager
1
6
Resource Manager
2/2/05 4
A pplication Server C om ponents
•Web Browser
–A sm a rt device, with forms, menus, input validation
•Web serv er
–Performs front-en d work, e.g., security, data caching, ….
–“Calls” the web page assoc iated with the URL, which in turn
calls a workflow controller
•Workflow contro ller
–Calls Start, Com m it, and Abort
–A pp logic that transforms the request (autom atic loan paym ent,
money transfer) into calls on basic objects (loan, accoun t).
Som etimes called business rules.
•Transaction server
–Business objects (custom er, accoun t, loan, teller)
•R esource M anager –usually a database (DB) sy stem
2/2/05 5
Project’s Pro cess Architecture 1
Web Brow ser
Web Server
Workflow controller
Transaction Server
Resource Manager
Client
Workflow Controller
Resource Manager
2/2/05 6
Workflow C ontroller
•For the most part, Workflow Contro llers and
Transaction Servers are just plain old se rv er program s
•The fea tures that differen tiate a W o rk flow Contro ller
are that it
–Brackets transactions (issu es Start, Commit, and Abort),
so that transaction se rver procedures can execu te either as
independent tran sactions or as step s in larger transactions
–Reports Com m its to the client (e.g. web server)
–H andles Aborts and other failures (e.g. re-runs the transaction)
–Does not access the DB system , so it need not be close to the
DB system (i.e. Resource Manager)