6. Application Server Issues for the Project

Slides:



Advertisements
Similar presentations
SOAP.
Advertisements

Message Queues COMP3017 Advanced Databases Dr Nicholas Gibbins –
Distributed components
Technical Architectures
Tutorials 2 A programmer can use two approaches when designing a distributed application. Describe what are they? Communication-Oriented Design Begin with.
1 ICS 214B: Transaction Processing and Distributed Data Management Lecture 15: Data Replication with Network Partitions & Transaction Processing Systems.
The Architecture of Transaction Processing Systems
McGraw-Hill/Irwin Copyright © 2007 by The McGraw-Hill Companies, Inc. All rights reserved. Chapter 17 Client-Server Processing, Parallel Database Processing,
.NET Mobile Application Development Remote Procedure Call.
4/25/ Application Server Issues for the Project CSEP 545 Transaction Processing for E-Commerce Philip A. Bernstein Copyright ©2003 Philip A. Bernstein.
Client-Server Processing and Distributed Databases
The Client/Server Database Environment
Beyond DHTML So far we have seen and used: CGI programs (using Perl ) and SSI on server side Java Script, VB Script, CSS and DOM on client side. For some.
Databases and the Internet. Lecture Objectives Databases and the Internet Characteristics and Benefits of Internet Server-Side vs. Client-Side Special.
Lecture 7 Interaction. Topics Implementing data flows An internet solution Transactions in MySQL 4-tier systems – business rule/presentation separation.
Networks QUME 185 Introduction to Computer Applications.
Lecture 15 Introduction to Web Services Web Service Applications.
Week 5 Lecture Distributed Database Management Systems Samuel ConnSamuel Conn, Asst Professor Suggestions for using the Lecture Slides.
The Client/Server Database Environment Ployphan Sornsuwit KPRU Ref.
Advanced Computer Networks Topic 2: Characterization of Distributed Systems.
5/22/ Business Process Management CSEP 545 Transaction Processing Philip A. Bernstein Copyright ©2007 Philip A. Bernstein.
Architectural Patterns Support Lecture. Software Architecture l Architecture is OVERLOADED System architecture Application architecture l Architecture.
CSE 451: Operating Systems Winter 2015 Module 22 Remote Procedure Call (RPC) Mark Zbikowski Allen Center 476 © 2013 Gribble, Lazowska,
Enterprise Integration Patterns CS3300 Fall 2015.
An Introduction to Web Services Web Services using Java / Session 1 / 2 of 21 Objectives Discuss distributed computing Explain web services and their.
Assignment of JAVA id : BSSE-F10-M-10-JAVA1 Overview of J2EE/Session 2/Slide 1 of 38.
Remote Procedure Call and Serialization BY: AARON MCKAY.
CS223: Software Engineering
Implementing Remote Procedure Call Landon Cox February 12, 2016.
E-commerce Architecture Ayşe Başar Bener. Client Server Architecture E-commerce is based on client/ server architecture –Client processes requesting service.
SAP Integration with Oracle 11g Muhammad Raza Fatmi.
Topic 4: Distributed Objects Dr. Ayman Srour Faculty of Applied Engineering and Urban Planning University of Palestine.
The Object-Oriented Thought Process Chapter 13
IST 220 – Intro to Databases
Chapter 9: The Client/Server Database Environment
The Client/Server Database Environment
MVC Architecture, Symfony Framework for PHP Web Apps
Sabri Kızanlık Ural Emekçi
WEB SERVICES From Chapter 19 of Distributed Systems Concepts and Design,4th Edition, By G. Coulouris, J. Dollimore and T. Kindberg Published by Addison.
z/Ware 2.0 Technical Overview
WEB SERVICES.
Distribution and components
The Client/Server Database Environment
The Client/Server Database Environment
Chapter 9: The Client/Server Database Environment
#01 Client/Server Computing
Programming Models for Distributed Application
CSE 451: Operating Systems Winter 2006 Module 20 Remote Procedure Call (RPC) Ed Lazowska Allen Center
Interpreter Style Examples
Sarah Diesburg Operating Systems COP 4610
Lecture 1: Multi-tier Architecture Overview
CSE 451: Operating Systems Autumn 2003 Lecture 16 RPC
Component--based development
CSE 451: Operating Systems Winter 2007 Module 20 Remote Procedure Call (RPC) Ed Lazowska Allen Center
4. Miscellaneous Project Issues
CSE 451: Operating Systems Winter 2004 Module 19 Remote Procedure Call (RPC) Ed Lazowska Allen Center
Service-Oriented Computing: Semantics, Processes, Agents
SAMANVITHA RAMAYANAM 18TH FEBRUARY 2010 CPE 691
Introduction of Week 11 Return assignment 9-1 Collect assignment 10-1
CSE 451: Operating Systems Spring 2012 Module 22 Remote Procedure Call (RPC) Ed Lazowska Allen Center
CSE 451: Operating Systems Autumn 2009 Module 21 Remote Procedure Call (RPC) Ed Lazowska Allen Center
WEB SERVICES From Chapter 19, Distributed Systems
State Handling CS 4640 Programming Languages for Web Applications
CSE 451: Operating Systems Autumn 2010 Module 21 Remote Procedure Call (RPC) Ed Lazowska Allen Center
CSE 451: Operating Systems Winter 2003 Lecture 16 RPC
4. Miscellaneous Project Issues
CSE 451: Operating Systems Messaging and Remote Procedure Call (RPC)
State Handling CS 4640 Programming Languages for Web Applications
Communication.
#01 Client/Server Computing
Presentation transcript:

6. Application Server Issues for the Project CSEP 545 Transaction Processing for E-Commerce Philip A. Bernstein Copyright ©2007 Philip A. Bernstein 4/17/07

Requests A request is a message that describes a unit of work for the system to execute. An application server coordinates the flow of requests between message sources (displays, applications, etc.) and application programs that run requests as transactions. Basic control flow: Translate the display input (form/menu selection, etc.) into a standard-format request Send the request to the appropriate server based on the transaction type in the request header Start the transaction Invoke the transaction type’s application program Commit and send the transaction’s output to the display 4/17/07

Application Server Architecture App server should make the previous control flow scale up Bold lines carry request messages Web Browser http 6 Web Server 1 2 5 other TP systems Request Controller intranet 3 4 Transaction Server Transaction Server Resource Manager Resource Manager 4/17/07

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 turn calls a requestcontroller Request controller (= Workflow Controller in the project) Calls Start, Commit, and Abort App logic that transforms the 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) Resource Manager – usually a database (DB) system 4/17/07

Project’s Process Architecture 1 Web Browser Web Server Client Request Controller Workflow Controller Transaction Server Resource Manager Resource Manager 4/17/07

Request Controller For the most part, Request Controllers and Transaction Servers are just plain old server programs The features that differentiate a Request Controller are that it Brackets transactions (issues Start, Commit, and Abort), so that transaction server procedures can execute either as independent transactions or as steps in larger transactions Reports Commits to the client (e.g., web server) Handles 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) 4/17/07

Transaction Server The features that differentiate a Transaction Server are the inverse of the Workflow Controller, namely that it Does not issue Start, Commit, and Abort (so it can be called either as an independent transaction or as a step in larger transaction) Does not talk directly to the client (e.g., Web Server) Can access the DB system In addition, it can call other transaction servers. Often, some transaction server code runs as stored procedures inside the DB system. So combining the transaction server and resource manager in the project isn’t really an oversimplification. 4/17/07

Transaction Manager (TM) The TM is the server that supports Start, Commit and Abort. It implements two-phase commit (2PC). This is a major feature of many application servers. 10 years ago, it was the major feature (TM + T-RPC). Supports 2PC across different RMs. So it’s useful to have a TM in the application server even though DB products implement 2PC themselves 4/17/07

Project’s Process Architecture 2 Web Browser Web Server Client Request controller Workflow Controller Start, Commit, Abort Transaction Server Resource Manager Transaction Manager Resource Manager 2PC 4/17/07

Remote Procedure Call (RPC) Within a system or intranet, RPC is the most popular form of inter-process communication A program calls a remote procedure (in another process) the same way it would call a local procedure This simplifies the message protocol. It’s always a call message followed by a return message. It hides certain communications errors. It automates the work of marshaling parameters into and out of the call and return messages. There are many implementations of the concept RMI, DCOM, CORBA/IIOP, HTTP, SOAP, ODBC, …. In the project, all inter-process communications is via RPC. 4/17/07

Transactional RPC Transactional RPC is an RPC protocol that implements the necessary plumbing to cope with a caller and/or callee that are running a transaction. Ideally, Start returns a transaction ID that’s hidden from the caller in a transaction context Transactional RPC passes that transaction context as a hidden parameter. It’s an easier programming model and avoids errors. When a transaction first arrives at a callee C, C needs to enlist with the local transaction manager (TM), so the TM knows to call C during two-phase commit. Also, C needs to execute the call in the context of the transaction that called it. 4/17/07

Transactional RPC in the Project You are implementing transactional RPC in the project. In steps 6 and 7 But the transaction context parameter is explicit (not hidden). 4/17/07

Project’s Process Architecture (revisited) Web Browser Web Server Client Request controller Workflow Controller Start, Commit, Abort enlist Transaction Server Resource Manager Transaction Manager Resource Manager 2PC 4/17/07

Partitioning Servers To add system capacity, add server machines. Sometimes, you can just relocate some server processes to different machines. But if an individual server process overloads one machine, then you need to partition the process. Example – flights, cars, and hotel rooms are managed by one server process. Later, you partition them in separate processes. This implies the WFC has to direct its RPC calls based on resource type To facilitate such changes, the mapping of resource name to server name can be made table-driven. This scenario is developed in step (7) of the project, where multiple RMs are required. 4/17/07

Parameter-Based Routing Sometimes, it’s not enough to partition by resource type, because a resource is too popular Example: flights The solution is to partition the popular resource based on value ranges Example – flight number 1-1000 on Server A, flight number 1000-2000 on Server B, etc. This implies that a request controller has to direct its calls based on parameter value (e.g. flight number) To facilitate such changes, the mapping of parameter range to server name can be made table-driven. This is a possible project extension (not required) 4/17/07

Summary of Concepts Request Controller vs. Transaction Server Remote Procedure Call (RPC) Transactional RPC Transaction Manager Partitioning Servers Parameter-Based Routing There’s a lot more to say about Application Servers and other transactional middleware. We’ll return to the topic in a later lecture. 4/17/07