April 20023CSG11 Electronic Commerce Transaction processing John Wordsworth Department of Computer Science The University of Reading

Slides:



Advertisements
Similar presentations
Database Systems, 8 th Edition Concurrency Control with Time Stamping Methods Assigns global unique time stamp to each transaction Produces explicit.
Advertisements

Function Point Analysis example. Function point FP is defined as one end-user business function FPA evaluates the system from a user perspective.
April 20023CSG11 Electronic Commerce Java (1) John Wordsworth Department of Computer Science The University of Reading Room 129,
Data and Database Administration Chapter 12. Outline What is Concurrency Control? Background Serializability  Locking mechanisms.
ICOM 6005 – Database Management Systems Design Dr. Manuel Rodríguez-Martínez Electrical and Computer Engineering Department Lecture 16 – Intro. to Transactions.
Distributed Databases Logical next step in geographically dispersed organisations goal is to provide location transparency starting point = a set of decentralised.
Computer Science Lecture 12, page 1 CS677: Distributed OS Last Class Distributed Snapshots –Termination detection Election algorithms –Bully –Ring.
Transaction Management and Concurrency Control
Database Systems: Design, Implementation, and Management Eighth Edition Chapter 10 Transaction Management and Concurrency Control.
The Architecture of Transaction Processing Systems
Chapter 4: Database Management. Databases Before the Use of Computers Data kept in books, ledgers, card files, folders, and file cabinets Long response.
Database Systems: Design, Implementation, and Management Eighth Edition Chapter 10 Transaction Management and Concurrency Control.
Distributed Systems Fall 2009 Distributed transactions.
Computer Science Lecture 12, page 1 CS677: Distributed OS Last Class Vector timestamps Global state –Distributed Snapshot Election algorithms.
Distributed Databases
April 20023CSG11 Electronic Commerce Design (1) John Wordsworth Department of Computer Science The University of Reading Room.
Managing Multi-User Databases AIMS 3710 R. Nakatsu.
IS 466 ADVANCED TOPICS IN INFORMATION SYSTEMS LECTURER : NOUF ALMUJALLY 3 – 10 – 2011 College Of Computer Science and Information, Information Systems.
DBS201: Introduction to Database Design
This presentation prepared for MIS 421 / MBA 575 at Western Washington University. Material in this presentation drawn from Richard T. Watson, Data Management:
Multi-user Database Processing Architectures Architectures Transactions Transactions Security Security Administration Administration.
Distributed Transactions March 15, Transactions What is a Distributed Transaction?  A transaction that involves more than one server  Network.
Client Server Technologies Middleware Technologies Ganesh Panchanathan Alex Verstak.
McGraw-Hill/Irwin Copyright © 2013 by The McGraw-Hill Companies, Inc. All rights reserved. Chapter 3 Databases and Data Warehouses: Supporting the Analytics-Driven.
Case 2: Emerson and Sanofi Data stewards seek data conformity
Csi315csi315 Client/Server Models. Client/Server Environment LAN or WAN Server Data Berson, Fig 1.4, p.8 clients network.
BIS Database Systems School of Management, Business Information Systems, Assumption University A.Thanop Somprasong Chapter # 10 Transaction Management.
CS551 - Lecture 18 1 CS551 Object Oriented Middleware (VII) Advanced Topics (Chap of EDO) Yugi Lee STB #555 (816)
PMIT-6102 Advanced Database Systems By- Jesmin Akhter Assistant Professor, IIT, Jahangirnagar University.
Unit 9 Transaction Processing. Key Concepts Distributed databases and DDBMS Distributed database advantages. Distributed database disadvantages Using.
April 20023CSG1HTF 1 Electronic Commerce HTML forms John Wordsworth Department of Computer Science The University of Reading
April 20023CSG11 Electronic Commerce HTML John Wordsworth Department of Computer Science The University of Reading Room 129, Ext.
Lecture # 3 & 4 Chapter # 2 Database System Concepts and Architecture Muhammad Emran Database Systems 1.
INFO1408 Database Design Concepts Week 15: Introduction to Database Management Systems.
FILES AND DATABASES. A FILE is a collection of records with similar characteristics, e.g: A Sales Ledger Stock Records A Price List Customer Records Files.
April 20023CSG11 Electronic Commerce Smartcards John Wordsworth Department of Computer Science The University of Reading Room.
Chapter 3 Databases and Data Warehouses: Building Business Intelligence Copyright © 2010 by the McGraw-Hill Companies, Inc. All rights reserved. McGraw-Hill/Irwin.
INTRODUCTION TO DBS Database: a collection of data describing the activities of one or more related organizations DBMS: software designed to assist in.
Introduction to Distributed Databases Yiwei Wu. Introduction A distributed database is a database in which portions of the database are stored on multiple.
April 20023CSG1CRM 1 Electronic Commerce Customer relationship management John Wordsworth Department of Computer Science The University of Reading
April 20022CS3X1 Database Design Normalisation (1) John Wordsworth Department of Computer Science The University of Reading Room.
©Bob Godfrey, 2002, 2005 Lecture 17: Transaction Integrity and Concurrency BSA206 Database Management Systems.
3 Database Systems: Design, Implementation, and Management CHAPTER 9 Transaction Management and Concurrency Control.
April 20022CS3X1 Database Design Introduction John Wordsworth Department of Computer Science The University of Reading Room 129,
April 2002Information Systems Design John Ogden & John Wordsworth FOI: 1 Database Design File organisations and indexes John Wordsworth Department of Computer.
April 20022/CS/3X EER 1 Database Design Enhanced entity-relationship modelling John Wordsworth Department of Computer Science The University of Reading.
Lecture On Introduction (DBMS) By- Jesmin Akhter Assistant Professor, IIT, Jahangirnagar University.
April 2002Information Systems Design John Ogden & John Wordsworth SQL2: 1 Database Design SQL (2) John Wordsworth Department of Computer Science The University.
April 20023CSG11 Electronic Commerce Encryption John Wordsworth Department of Computer Science The University of Reading Room.
April 20022/CS/3XWHN 1 Database Design Where next? John Wordsworth Department of Computer Science The University of Reading Room.
April 20022/CS/3XAPP 1 Database Design Anatomy of an application John Wordsworth Department of Computer Science The University of Reading
April 20023CSG11 Electronic Commerce Markup languages John Wordsworth Department of Computer Science The University of Reading
ICOM 6005 – Database Management Systems Design Dr. Manuel Rodríguez-Martínez Electrical and Computer Engineering Department Lecture 16 – Intro. to Transactions.
April 20023CSG11 Electronic Commerce Introduction John Wordsworth Department of Computer Science The University of Reading Room.
Ch 15 Data Sharing Myungchul Kim
April 20022CS3X1 Database Design Entity-relationship modelling John Wordsworth Department of Computer Science The University of Reading
April 20023CSG11 Electronic Commerce Authentication John Wordsworth Department of Computer Science The University of Reading Room.
April 20023CSG1DE2 1 Electronic Commerce Design (2) John Wordsworth Department of Computer Science The University of Reading Room.
SYSTEMS IMPLEMENTATION TECHNIQUES TRANSACTION PROCESSING DATABASE RECOVERY DATABASE SECURITY CONCURRENCY CONTROL.
April 20022/CS/3X1 Database Design Design method John Wordsworth Department of Computer Science The University of Reading Room.
April 20023CSG1XSL 1 Electronic Commerce XSL transformations John Wordsworth Department of Computer Science The University of Reading
April 20023CSG11 Electronic Commerce Payment systems John Wordsworth Department of Computer Science The University of Reading
Electronic Commerce Java (1)
Databases and DBMSs Todd S. Bacastow January 2005.
Electronic Commerce Smartcards
Database Database is a large collection of related data that can be stored, generally describes activities of an organization. An organised collection.
Chapter 10 Transaction Management and Concurrency Control
Flowcharting Exercise (flowchart the following activities)
Flowcharting Exercise (flowchart the following activities)
Electronic Commerce Design (1)
Presentation transcript:

April 20023CSG11 Electronic Commerce Transaction processing John Wordsworth Department of Computer Science The University of Reading Room 129, Ext 6544

April 20023CSG12 Lecture objectives Introduce the notion of a transaction Understand the role of the transaction manager and resource managers in transaction processing Describe the use of locks to protect resources Understand the two-phase commit protocol for data integrity

April 20023CSG13 What is a transaction A (small?) piece of work done in tier 3 to satisfy a request from tier 1:  Cash withdrawal from an ATM  Add details of a new retail customer Types of transactions:  Inquiry – changes nothing  Simple update – changes one thing, or many things under the control of one resource manager (DBMS)  Complex update – changes things under the control of more than one resource manager

April 20023CSG14 Transaction program A transaction program is a repository of business logic:  Analyse the transaction request  Get the resource managers to change the resources  Send the response

April 20023CSG15 Resource manager Know who is asking for changes Advise transaction manager about interest in transactions Manage locks on resources Make provisional changes to resources Be prepared to:  Commit the changes  Rollback the changes

April 20023CSG16 Locking Read R1 R1’ (B) R1 (A) R1 (free) Txn BTxn AR Mgr Commit Write R1’ R1’ (A)

April 20023CSG17 Transaction manager Keep account of transactions that are active Keep account of which resource managers have interests in which transactions Manage the committing (at normal end of transaction) or rolling back (at abnormal end of transaction) of the provisional changes made by a transaction in order to maintain data integrity For multiple resource managers, use the two-phase commit protocol

April 20023CSG18 Transaction processing monitor Provides an environment for multiple transaction processing programs:  Access to resource mangers (files, databases, devices, …)  Access to private resources (storage, temporary storage queues, …) Provides transaction management facilities Provides operations management facilities (distributed transaction processing, multiple platforms, …)

April 20023CSG19 Two-phase commit (1) Prepare Commit OK RM1 RM2 Transaction Manager

April 20023CSG110 Two-phase commit (2) Prepare Rollback OK RM1 RM2 Transaction Manager

April 20023CSG111 Key points Transactions are small pieces of work Resource mangers use locks to maintain the integrity of their resources The transaction manager uses two-phase commit protocol to maintain data integrity of all resources