Documenti di Didattica
Documenti di Professioni
Documenti di Cultura
Lecture 10
Client-Server Architecture
Basic idea is to distribute functionality Gives two level architecture The term used in different meanings; generally C and S refer to processes, may be running at the same machines
Virtual University of Pakistan
3
As you can see in the figure Server performs most of the data Management;
Query Processing
Client passes user queries to server without trying to understand or optimize them One Server Multiple Clients Multiple Servers
One Server at a time Multiple Servers (transparently) at a time
ES1
ES2 GCS
ES1
ESn
LCS1
LIS1
LCS2
LCSn
LIS2
LISn
Physical data organization at each site defining Local Internal Schemas On top of that, Local Conceptual Schema Then the overall view is depicted by Global conceptual schema that supports the External schemas
Virtual University of Pakistan
8
Transparencies Supported Extension of ANSI/SPARC Model Data Independence supported Local Data Dictionary and global exist Both support local and global mappings
Virtual University of Pakistan
9
10
Chooses best access path to any data item Makes sure the consistency of local data even in case of failure Physically accesses the data as per the commands generated by query optimizer. Interacts with the OS
Virtual University of Pakistan
11
12
L External Schema
Component Schema
Component Schema
L External Schema
Schema Translation
Local Schema
Local Schema
13