Docsity

Application Servers - E-Commerce - Lecture Slides, Slides of Fundamentals of E-Commerce

Partial preview of the text

Download Application Servers - E-Commerce - Lecture Slides and more Slides Fundamentals of E-Commerce in PDF only on Docsity!

11. Application Servers

(a.k.a. TP Monitors)

Transaction Processing

Outline

1. Introduction2. Two-Tier vs. Three-Tier3. Web Servers4. Transaction Bracketing5. Processes and Threads6. Remote Procedure Call

Reading

Textbook: Chapter 2, and

Chapter 3 sections 3.1 – 3.

Application Server Components

Web Browser

A smart device, with forms, menus, input validation

Web server

Performs front-end work, e.g., security, data caching, ….

“Calls” the web page associated with the URL, which in turncalls a workflow controller

Workflow controller

Calls Start, Commit, and Abort

App logic that transforms request (automatic loan payment,money transfer) into calls on basic objects (loan, account).Sometimes called

business rules

Transaction server

Business objects (customer, account, loan, teller)

DBMS – Database Management System

Application Server Functions

Glue and veneer for TP applications

glue fills in gaps in system functionality

covers the interface with a seamless veneer

Mostly, it provides run-time functions for applications(workflow control and transaction servers).

OS functions: threading and inter-process communication,often passed through from the underlying OS.

Dist’d system functions: transactions, security, queuing, nameservice, object pools, load balancing, …

Portal functions: shopping cart, catalog mgmt, personalization ...

Provides some application development tools

Provides system mgmt for the running application.

Two-Tier vs. Three-Tier

Before the web, most small-to-medium scale apps were implementedin 2 tiers on a LAN

PC runs a 4GL, such as Visual Basic,PowerBuilder, or Delphi

Server system includes transaction serverapplication and DBMS

Presentation

Server

Transaction

Server DBMS

Two-Tier for the Web

Presentation server

Web server

In essence, the web browser is a device

Web server invokes a web page thathas embedded script

Active Server Page (ASP .NET) orJava Server Page (JSP)

Page (file) extension tells the web serverto run the ASP/JSP interpreter

Script can include DBMS calls andcan run as a transaction

DBMS

Web Server

ASP/JSP

Scalability Problem of Two-Tier

2-tier is feasible, but does not scale as well as 3-tier due tosession management

Session - shared state between communicating parties

Entails a memory cost and a setup (processing) cost

Sessions reduce amount of per-request context passing(comm. addresses, authenticated user/device)

Standard DB APIs (e.g., ODBC) work this way

Hence, in 2-tier, N clients and M servers

N

×

M sessions

E.g. 10

5

presentation servers and 100 servers

7

sessions

Partition presentation servers across workflow controllers

Each workflow controller still connects to all txn servers butthere are many fewer workflow controllers than presentationservers