Database Fundamentals Distributed Databases
Database Fundamentals Distributed Databases
Distributed Databases
Overview
Distributed vs. decentralized Why distributed databases Distributed database architecture and environment Explain advantages and risks of distributed databases Explain strategies and options for distributed database design
Business unit autonomy and distribution Data sharing Data communication costs Data communication reliability and costs Multiple application vendors Database recovery Transaction and analytic processing
4
Homogeneous Database
Identical DBMSs
Non-identical DBMSs
Autonomous - Independent DBMSs Non-autonomous - Central, coordinating DBMS Easy to manage, difficult to enforce
Systems With full or partial DBMS functionality Gateways - Simple paths are created to other databases without the benefits of one logical database Difficult to manage, preferred by independent organizations
9
Data is distributed across all the nodes Same DBMS at each node All data is managed by the distributed DBMS (no exclusively local data) All access is through one, global schema The global schema is the union of all the local schema
10
Data distributed across all the nodes Different DBMSs may be used at each node Local access is done using the local DBMS and schema Remote access is done using the global schema
11
Major Objectives
Location Transparency
User does not have to know the location of the data Data requests automatically forwarded to appropriate sites
Local site can operate with its database when network connections fail Each site controls its own data, security, logging, recovery
Local Autonomy
12
Significant Trade-Offs
All copies of the same data are always identical Data updates are immediately applied to all copies throughout network Good for data integrity High overhead slow response times Some data inconsistency is tolerated Data update propagation is delayed Lower data integrity Less overhead faster response time
Increased reliability/availability Local control over data Modular growth Lower communication costs Faster response for certain queries
14
Software cost and complexity Processing overhead Data integrity exposure Slower response for certain queries
15
Data replication
Copies of data distributed to different sites Different rows of a table distributed to different sites Different columns of a table distributed to different sites
Horizontal partitioning
Vertical partitioning
16
Distributed DBMS
Locate data with a distributed data dictionary Determine location from which to retrieve data and process query components DBMS translation between nodes with different local DBMSs (using middleware) Data consistency (via multiphase commit protocols) Global primary key control Scalability Security, concurrency, query optimization, failure recovery
18