0% found this document useful (0 votes)
27 views3 pages

Understanding Distributed Databases

A Distributed Database (DDB) is a collection of interrelated databases located across a network, appearing to users as a single database. It consists of components like databases, networks, and Distributed DBMS (DDBMS), and can be classified into homogeneous and heterogeneous types. While DDBs offer advantages such as reliability, faster access, and scalability, they also present challenges like complexity in management, higher costs, and potential security issues.

Uploaded by

anlabibofficial
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
27 views3 pages

Understanding Distributed Databases

A Distributed Database (DDB) is a collection of interrelated databases located across a network, appearing to users as a single database. It consists of components like databases, networks, and Distributed DBMS (DDBMS), and can be classified into homogeneous and heterogeneous types. While DDBs offer advantages such as reliability, faster access, and scalability, they also present challenges like complexity in management, higher costs, and potential security issues.

Uploaded by

anlabibofficial
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd

1. What is a Distributed Database (DDB)?

●​ A Distributed Database is a collection of multiple logically interrelated databases


distributed over a computer network.​

●​ Data is stored at different sites/locations, but it appears to the user as one single
database.​

Example:

●​ A multinational company has offices in Dhaka, Chittagong, and Sylhet.​

●​ Each office stores its own employee data locally.​

●​ But the Distributed DBMS (DDBMS) allows managers to access all employee data as if
it is stored in one place.​

2. Components of Distributed Database


1.​ Database: Actual data stored at different locations.​

2.​ Network: Communication link connecting databases.​

3.​ Distributed DBMS (DDBMS): Software that manages the distributed database and
makes it look like a single system.​

3. Types of Distributed Databases


1.​ Homogeneous DDB:​

○​ All sites use the same DBMS software.​

○​ Data structures are same.​

○​ Easier to manage.​

○​ Example: All branches of a bank using Oracle DBMS.​


2.​ Heterogeneous DDB:​

○​ Sites use different DBMS software.​

○​ More complex because of format differences.​

○​ Example: One branch uses Oracle, another uses MySQL.​

4. Characteristics of Distributed Database


●​ Transparency: Users should not know where data is stored.​

○​ Types of transparency:​

■​ Location transparency: User doesn’t care where the data is physically


located.​

■​ Replication transparency: User doesn’t care if data is duplicated in


many sites.​

■​ Fragmentation transparency: Data may be split into parts but user sees
it as one.​

●​ Data Distribution: Data can be replicated or fragmented.​

●​ Reliability & Availability: Even if one site fails, other sites can work.​

●​ Scalability: Easy to add more sites to system.​

5. Data Distribution Techniques


1.​ Replication: Same data is copied and stored at multiple sites.​

○​ Advantage: High availability.​

○​ Example: Student records stored in both Dhaka and Sylhet servers.​

2.​ Fragmentation: Data is split into smaller parts and stored at different sites.​
○​ Horizontal Fragmentation: Rows divided (Dhaka site stores students from Dhaka,
Sylhet site stores Sylhet students).​

○​ Vertical Fragmentation: Columns divided (one site stores student names, another
stores student grades).

6. Advantages of Distributed Databases


●​ Reliability: Failure at one site does not stop the whole system.​

●​ Faster access: Data closer to the user location.​

●​ Scalability: Easy to add new sites.​

●​ Local autonomy: Each site can control its own data.​

7. Disadvantages of Distributed Databases


●​ Complex to design and manage.​

●​ Higher cost (network, hardware, software).​

●​ Security issues due to multiple access points.​

●​ More chances of inconsistency if replication is not handled properly.​

8. Real-Life Examples
●​ Banking System: Each branch stores customer transactions locally but still accessible
globally.​

●​ Railway/Airline Reservation System: Distributed servers handle ticket booking from


different regions.​

●​ University System: Each campus stores student data locally but combined for
reporting.

Common questions

Powered by AI

Scalability is a crucial aspect of distributed databases as it allows the system to grow by adding new sites without significantly altering the existing system architecture. This ability to expand seamlessly facilitates resource optimization and supports increasing user demands or data volumes. By appropriately distributing additional loads across new and existing sites, distributed databases can maintain performance efficiency and prevent bottlenecks that often accompany large central systems, thus enabling continuous growth with minimal complications .

Fragmentation transparency is crucial in distributed databases as it allows users to interact with data without awareness of its underlying distribution into fragments, which are often divided based on criteria like location or data type. This transparency aids in simplifying user interactions and enhancing user productivity by offering a cohesive data view. However, it presents challenges in maintaining coherence, as it requires sophisticated management for data retrieval and composition across different fragments. The complexity of ensuring correct data aggregation and minimizing inter-site communication overhead also poses significant operational challenges .

To overcome the complexity and inconsistency issues in distributed databases, several strategies can be employed: adopting uniform DBMS platforms across sites can reduce complexity; implementing strict synchronization protocols and consistency models like eventual consistency can manage data inconsistencies; establishing robust security protocols to manage multiple access points effectively; using middleware to provide seamless data integration; and investing in advanced network infrastructure to support reliable data transfer and communication. Such strategies help mitigate the inherent challenges and enhance the reliability and functionality of distributed systems .

Distributed databases enhance data availability and reliability by leveraging decentralized data storage across multiple locations. This architecture ensures that even if one site fails, other sites can continue to function and provide data access, unlike centralized systems where a single point of failure can disrupt the entire system. Additionally, distributed systems can replicate data across various sites, thereby increasing availability and reducing downtime, which is harder to achieve in a centralized environment with a single data repository .

Real-life applications like banking systems, airline reservation systems, and university management systems exemplify the benefits of distributed databases. In banking, each branch stores local customer transactions, yet global access remains possible, enhancing transaction processing speed and resilience. Airline reservation systems leverage distributed servers for regional ticket booking, increasing responsiveness and reliability. University systems use distributed databases to store data across campuses, facilitating seamless student information access for centralized reporting. These systems utilize characteristics like data distribution, transparency, and scalability to improve service delivery, offering robustness and efficiency across sectors .

Data distribution via replication improves the reliability and availability of a distributed database by creating multiple copies of the same data across several sites, thus ensuring data accessibility even if one site experiences failure. Fragmentation, on the other hand, divides data into smaller, more manageable parts stored at different sites, which can optimize access speed and balance the load. However, it requires careful management to prevent data loss and maintain consistency across the system. While replication boosts availability, it can also increase the risk of inconsistency if not correctly synchronized, whereas fragmentation relies on robust integration and data retrieval mechanisms to maintain system reliability .

Homogeneous distributed databases use the same DBMS software across all sites, which ensures uniformity in data structures and reduces complexity in management. This ease of management derives from having a consistent environment and centralized control. Conversely, heterogeneous distributed databases involve different DBMS software at various sites, leading to additional complexity due to format and system differences. This complexity arises from the need to integrate and manage diverse systems effectively .

A Distributed Database Management System (DDBMS) consists of three main components: 1) the database, 2) the network, and 3) the DDBMS software itself. The databases are actual data stored at different geographical locations. The network acts as a communication link connecting these databases, enabling data transfer and ensuring connectivity between different sites. The DDBMS software manages these distributed databases and creates an illusion of a single, unified system to the user by handling various transparencies such as location, replication, and fragmentation transparency .

Transparency types in distributed databases significantly enhance user experience by abstracting the complexity of data distribution. Location transparency allows users to access data without concern for its physical storage location, replication transparency obscures the duplication of data across sites, and fragmentation transparency hides the division of data into fragments. This seamless interaction increases user efficiency and reduces the potential for error by presenting a unified data environment, thereby mimicking the simplicity of accessing a centralized database while benefiting from distributed architecture .

Key advantages of using distributed databases include increased reliability due to decentralized data storage, faster data access because of proximity to the user, scalability through the addition of new sites, and local autonomy allowing each site to manage its data independently. However, distributed databases also present challenges such as design and management complexity, increased costs due to the requirements for sophisticated network and hardware, security concerns due to multiple access points, and a higher risk of data inconsistency if replication is not properly managed .

You might also like