+ All Categories
Home > Documents > Csi315csi315 Client/Server Models. Client/Server Environment LAN or WAN Server Data Berson, Fig 1.4,...

Csi315csi315 Client/Server Models. Client/Server Environment LAN or WAN Server Data Berson, Fig 1.4,...

Date post: 31-Dec-2015
Category:
Upload: clarence-harrington
View: 219 times
Download: 3 times
Share this document with a friend
Popular Tags:
22
csi315 csi315 Client/Server Models Client/Server Models
Transcript
Page 1: Csi315csi315 Client/Server Models. Client/Server Environment LAN or WAN Server Data Berson, Fig 1.4, p.8 clients network.

csi315csi315csi315csi315

Client/Server ModelsClient/Server Models

Page 2: Csi315csi315 Client/Server Models. Client/Server Environment LAN or WAN Server Data Berson, Fig 1.4, p.8 clients network.

Client/Server Environment

LAN or WAN

Server DataBerson,Fig 1.4, p.8

clients

network

Page 3: Csi315csi315 Client/Server Models. Client/Server Environment LAN or WAN Server Data Berson, Fig 1.4, p.8 clients network.

Client• Part of the local computing system • Functions• initiates contact with server (“speaks first”)• typically requests service from server, • for Web, client is implemented in browser; for e-

mail, in mail reader • Requesting the return of records

Client = “Origin”

Page 4: Csi315csi315 Client/Server Models. Client/Server Environment LAN or WAN Server Data Berson, Fig 1.4, p.8 clients network.

Server• Functions• provides requested service to

client• e.g., Web server sends

requested Web page, mail server delivers e-mail

Server = “Target”

Page 5: Csi315csi315 Client/Server Models. Client/Server Environment LAN or WAN Server Data Berson, Fig 1.4, p.8 clients network.

Client-Server Example• The ATM network:

– the clients are the ATM machines • user interfaces;

some simple application processing

– the server is at the bank • most application processing;

very large database of customer accounts

Page 6: Csi315csi315 Client/Server Models. Client/Server Environment LAN or WAN Server Data Berson, Fig 1.4, p.8 clients network.

Client/Server Processing

• Application processing is usually distributed between a client and the server.

• Server controls services/data that the client accesses• Different client/server models are obtained by

locating different components and combinations of the application on the client and server(s).

• In general:– presentation logic stays on the client– DBMS and database move to the server– parts of the business and database logic that can be used by

several clients are placed on the server

Page 7: Csi315csi315 Client/Server Models. Client/Server Environment LAN or WAN Server Data Berson, Fig 1.4, p.8 clients network.

Component Placement?• How much data is required by the local

application?• How many application users require the

same data?• How many interactions occur between

the application parts?• Technical issues

– platforms, networking

Page 8: Csi315csi315 Client/Server Models. Client/Server Environment LAN or WAN Server Data Berson, Fig 1.4, p.8 clients network.

Database App.

Presentation Logic

Business Logic

Database Logic

DBMSDatabase

Stand-aloneApplication

Page 9: Csi315csi315 Client/Server Models. Client/Server Environment LAN or WAN Server Data Berson, Fig 1.4, p.8 clients network.

The 2-tier Model• The database is on the server• Distributed database logic

– most of it is on the client• The client does the presentation and business logic.

Challenges• It is difficult to build heterogeneous database

environments.• Transaction processing is limited by the DBMS.• Asynchronous processing is difficult

– i.e. the client doesn’t wait for the server’s answer• Scalability

Page 10: Csi315csi315 Client/Server Models. Client/Server Environment LAN or WAN Server Data Berson, Fig 1.4, p.8 clients network.

The 2-tier Model

Presentation Logic

Business Logic

Database LogicDBMS

Database

Database Logic

ClientServer

Page 11: Csi315csi315 Client/Server Models. Client/Server Environment LAN or WAN Server Data Berson, Fig 1.4, p.8 clients network.

The 3-tier Model

ServerData

Application/Business logic Data Servers

ServerData

UNIX

Win/NTClients

Page 12: Csi315csi315 Client/Server Models. Client/Server Environment LAN or WAN Server Data Berson, Fig 1.4, p.8 clients network.

The 3-tier Model

Server

Back-End ServerTier 1

Tier 2

Tier 3

Clients

Price/PerformanceFunctionalityLocal Autonomy

Greater IntegritySecurityCentral Control

Page 13: Csi315csi315 Client/Server Models. Client/Server Environment LAN or WAN Server Data Berson, Fig 1.4, p.8 clients network.

3-Tier Architecture-Example

Database

XMLFile System(Web Site)

Or

Middle Tier“Business Logic”

dissociatesUser and Back End

Export/Import

Request

Information

ObjectRepository

Page 14: Csi315csi315 Client/Server Models. Client/Server Environment LAN or WAN Server Data Berson, Fig 1.4, p.8 clients network.

3-tier over 2-tier• Benefits

– The application logic in the middle-tier is more independent of the client and the back-end server

– The application logic in the middle-tier can work more easily with data from multiple sources.

– Encourages multiple back-end servers.

Challenges• Much more complex:• network management, data integrity, maintenance,

development

• Still (partially) dependent on platformse.g. the client may still be restricted

to a certain backend application server, but not (maybe) to any data server

Page 15: Csi315csi315 Client/Server Models. Client/Server Environment LAN or WAN Server Data Berson, Fig 1.4, p.8 clients network.

3 tier-ExampleATM machines are the clients (as before)

– the middle-tier servers provide certain processing• checking balances, money transfer requests• directing queries to the relevant back-end

server– back-end server(s)

• specialized by account type• very robust concurrency control, transaction

processing• Many Web applications are 3-tier:

– the Web browser is the client software– the embedded components in Web pages (e.g.

Java applets) come from the middle-tier– the back-end server contains the database

Page 16: Csi315csi315 Client/Server Models. Client/Server Environment LAN or WAN Server Data Berson, Fig 1.4, p.8 clients network.

Distributing Business Logic

Three ways • Locate it entirely on the client

(‘fat’ client)• Locate it entirely on the server

(‘fat’ server)• Split it between the client and

server

Page 17: Csi315csi315 Client/Server Models. Client/Server Environment LAN or WAN Server Data Berson, Fig 1.4, p.8 clients network.

Business Logic

Presentation Logic

Business LogicDBMS

Database

Database Logic

ClientServer

Business Logic

Page 18: Csi315csi315 Client/Server Models. Client/Server Environment LAN or WAN Server Data Berson, Fig 1.4, p.8 clients network.

Fat Server Advantages• Easier to update the application logic since

clients not involved.

• Data is better hidden from clients.

• Easier to manage and debug since data and code is centrally located.

• Reduces bandwidth problems since data processing stays on the server.

• Better for mission-critical applications when fault-tolerance and stability are important.

Page 19: Csi315csi315 Client/Server Models. Client/Server Environment LAN or WAN Server Data Berson, Fig 1.4, p.8 clients network.

Fat Client Advantages• The server is unaffected when

updates are done to the client’s application logic– the server will be more stable

• Easier to program– less networking– more direct access to client

platform features, such as GUI

Page 20: Csi315csi315 Client/Server Models. Client/Server Environment LAN or WAN Server Data Berson, Fig 1.4, p.8 clients network.

Multi-tier Model

Middleware

Physical Network

Page 21: Csi315csi315 Client/Server Models. Client/Server Environment LAN or WAN Server Data Berson, Fig 1.4, p.8 clients network.

Multi-tier Model• Asynchronous connectivity

• Data distribution using replication

• Name/directory services for resource location independence

• More complex data types• More complex analysis• Authentication services

– you must 'prove' who you are to the system

• Distributed file system(s)

• Time services

Page 22: Csi315csi315 Client/Server Models. Client/Server Environment LAN or WAN Server Data Berson, Fig 1.4, p.8 clients network.

Mult-tier Web Applications

• The Web browser is the client software on the first tier.

• Web page components come from the second tier.

• The third tier is a database front-end for a series of fourth tier heterogeneous databases


Recommended