Docsity

Transaction Processing - E-Commerce - Lecture Slides, Slides of Fundamentals of E-Commerce

Partial preview of the text

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

1. Introduction^ Transaction Processing

Outline

1. The Basics2. ACID Properties3. Atomicity and Two-Phase Commit4. Performance5. Styles of System

The “ities” are What MakesTransaction Processing (TP) Hard • Reliability - system should rarely fail • Availability - system must be up all the time • Response time - within 1-2 seconds • Throughput - thousands of transactions/second • Scalability - start small, ramp up to Internet-scale • Security – for confidentiality and high finance • Configurability - for above requirements + low cost • Atomicity - no partial results • Durability - a transaction is a legal contract • Distribution - of users and data

What Makes TP Important? • It’s at the core of electronic commerce • Most medium-to-large businesses use TP fortheir production systems. The business can’toperate without it. • It’s a^ huge^ slice of the computer systemmarket. One of the largest applications ofcomputers.

TP System Infrastructure … Defines System and Application Structure^ Presentation

Manager Workflow Control (routes requests andsupervises their execution)^ Database System

Front-End(Client) Back-End(Server)

End-User

requests Transaction Program

System Characteristics

-^ Typically < 100 transaction types per application •^ Transaction size has high variance. Typically,^ –^ 0-30 disk accesses^ –^ 10K - 1M instructions executed^ –^ 2-20 messages •^ A large-scale example: airline reservations^ –^ 150,000 active display devices^ –^ plus indirect access via Internet^ –^ thousands of disk drives^ –^ thousands of transactions per second, peak

Application Servers

-^ A software product to create, execute and manage TPapplications •^ Formerly called

TP monitors.

Some people say App Server = TP monitor + web functionality. • Programmer writes an app to process a single request.App Server scales it up to a large, distributed system^ –^ E.g. application developer writes programs to debit a checkingaccount and verify a credit card purchase.^ –^ App Server

helps system engineer deploy it to 10s/100s of servers and 10Ks of displays – App Server helps system engineer deploy it on the Internet,accessible from web browsers