Distributed
Distributed
ATABASES
Ahmed Hussien Abdo
Reg. Num. : 2212630
Prof. Mohamed Kholief
INTRODUCTION
2
WHAT CONSTITUTES A
DISTRIBUTED DATABASE?
• Connection of database nodes over a computer
network
3
DIFFERENCE BETWEEN CENTRALIZED DATABASE AND DISTRIBUTED
DATABASE
6
AVAILABILITY AND
RELIABILITY
Availability: The probability that the distributed
system is continuously available during a
specified time interval.
7
SCALABILITY AND
PARTITION TOLERANCE
8
AUTONOMY
• Determines the extent to which nodes can operate
independently
9
ADVANTAGES OF
DISTRIBUTED DATABASES
Improved ease and flexibility of application
development: Development can occur at geographically
dispersed sites.
10
DATA FRAGMENTATION, REPLICATION,
AND ALLOCATION TECHNIQUES
11
HORIZONTAL FRAGMENTATION (SHARDING):
• Horizontal fragmentation (sharding) divides a relation into subsets of tuples, called shards, by
specifying conditions on attributes or other methods. It groups rows to create these subsets.
12
VERTICAL FRAGMENTATION:
• Vertical fragmentation involves dividing a relation by columns, keeping only
certain attributes of the relation.
13
Vertical
16
• Complete vertical fragmentation
• Apply OUTER JOIN operation to reconstruct
relation
Age
25
30
User
Ahmed
Mohamed
User Age
Ahmed 25
Mohamed 30
20XX Pitch deck title 17
• Apply UNION operation to the fragments to
reconstruct relation
User Age
Mohamed 30
User Age
Ahmed 25
User Age
Ahmed 25
Mohamed 30
19
DATA FRAGMENTATION, REPLICATION,
AND ALLOCATION TECHNIQUES
CONT’D
• Replication and allocation: Strategies for storing
fragments and replicas across nodes for performance
and availability.
• Fully replicated distributed database: Whole
database is replicated at every site.
20
DATA FRAGMENTATION, REPLICATION,
AND ALLOCATION TECHNIQUES
CONT’D
• Data allocation involves assigning each
fragment of data to a specific site within a
distributed system. The choices for allocation
are determined based on the system's
performance and availability objectives.
21
22
23
24
TYPES OF DISTRIBUTED DATABASE
SYSTEMS
• Homogeneous DDBMS
• Heterogeneous DDBM
25
TYPES OF DISTRIBUTED DATABASE
SYSTEMS
26
TYPES OF DISTRIBUTED DATABASE
SYSTEMS
• Heterogeneous DDBMS: Nodes with different software
and configurations.
27
TYPES OF DISTRIBUTED DATABASE
SYSTEMS
• Multi database system and federated database system
(FDBS) with shared global schema.
28
CLIENT-SERVER DATABASE ARCHITECTURE
29
CLIENT-SERVER DATABASE ARCHITECTURE
30