Jeffrey A. Hoffer, Mary B. Prescott, Fred R. Mcfadden: Modern Database Management 8 Edition
Jeffrey A. Hoffer, Mary B. Prescott, Fred R. Mcfadden: Modern Database Management 8 Edition
Jeffrey A. Hoffer, Mary B. Prescott, Fred R. Mcfadden: Modern Database Management 8 Edition
Objectives
Definition of terms List advantages of client/server architecture Explain three application components: presentation, processing, and storage Suggest partitioning possibilities Distinguish between file server, database server, 3tier, and n-tier approaches Describe and discuss middleware Explain database linking via ODBC and JDBC
Chapter 9
Client/Server Systems
Networked computing model Processes distributed between clients and servers ClientWorkstation (usually a PC) that requests and uses a service ServerComputer (PC/mini/mainframe) that provides a service For DBMS, server is a database server
Chapter 9
Inputkeyboard/mouse Outputmonitor/printer
GUI Interface
2007 by Prentice Hall FAROOQ
Processing Logic
Storage Logic
DBMS activities
4
Chapter 9
Client/Server Architectures
File Server Architecture Database Server Architecture Three-tier Architecture
FAT CLIENT
Chapter 9
Chapter 9
Chapter 9
10
Thinner clients
11
Three-Tier Architectures
Client
Application server Database server
GUI interface (I/O processing) Business rules
Browser
Web Server
Data storage
DBMS
Thin Client
PC just for user interface and a little application processing. Limited or no data storage (sometimes no hard drive)
Chapter 9
12
13
Chapter 9
14
Application Partitioning
Placing portions of the application code in different locations (client vs. server) AFTER it is written Advantages
Improved performance Improved interoperability Balanced workloads
2007 by Prentice Hall FAROOQ
15
Chapter 9
Figure 9-5b n-tier clientserver environment Processing logic will be at application server or Web server
Chapter 9
16
Rule of thumb
Mainframe for centralized data that does not need to be moved Client for data requiring frequent user access, complex graphics, and user interface Chapter 9
17
Middleware
Software that allows an application to interoperate with other software No need for programmer/user to understand internal processing Accomplished via Application Program Interface (API)
18
Types of Middleware
Remote Procedure Calls (RPC)
client makes calls to procedures running on remote computers synchronous and asynchronous
Chapter 9
Publish/Subscribe
Database Middleware
ODBCOpen Database Connectivity
Most DB vendors support this
2007 by Prentice Hall FAROOQ
OLE-DB
Microsoft enhancement of ODBC
20
Chapter 9
Client/Server Security
Network environment complex security issues Security levels:
System-level password security
for allowing access to the system
21
Chapter 9
22
Chapter 9
23
Required parameters:
2007 by Prentice Hall FAROOQ
ODBC driver Back-end server name Database name User id and password
Additional information:
Data source name (DSN) Windows client computer name Client application programs executable name
Java Database Connectivity (JDBC) is similar to ODBCbuilt specifically for Java applications
24
Chapter 9
ODBC Architecture
(Figure 9-6)
Client does not need to know anything about the DBMS
2007 by Prentice Hall FAROOQ
Chapter 9