Distributed Database and Its Architecture Using MySql
Distributed Database and Its Architecture Using MySql
Nowadays, we have huge amounts of data to store. But, it is not possible to store
everything at the same place or on the same network. In other words, we can say
that it is not possible to store all data in a centralized manner.
Without further ado, let’s move forward. Firstly we need to know what is distributed
database system.
Jump to Section
1. Distributed Database System
2. Centralized vs Distributed database
2.1. Why We Need Distributing Database System and What Are Its Features?
3. Reasons/Needs of This System
4. Features of DDBS
5. The Process to Maintain Consistency
6. Types of Distributed Database
7. Homogeneous Distributed Database
8. Heterogeneous Distributed Database
9. Client/Server Database Architecture
10. Distributed Database Architecture Using Mysql Replication
11. Steps For MySQL Replication
11.1. Replication Documentation
12. Advantages of Replication in MySQL
13. Conclusion
Before this concept “distributed database”, data stored in one place that approach
known as a centralized database. Firstly, We need to understand centralize database
to know the features or the advantages of the distributed database over the
centralized database.
Let’s see a comparison between the centralized database and the distributed
database.
In a distributed database, the data stored in storage devices that are located in
different physical locations or in different geographical locations. They are not
attached to a common CPU but the database is controlled by a central DBMS. To
access data from the distributed database. The replication and duplication
processes used to make the database up-to-date. Designing and maintain a
distributed database is a more complex task rather than maintaining a centralized
database.
Features of DDBS
Reliability: Diversity of data reduces data loss. If the failure or data loss
occurs on one site then the data on the other site does not have any impact or
loss.
Security: By giving permission to a single unit or section of the overall
database. It provides internal and external protection of the data.
Cost-effective: It reduces the bandwidth prices because users are accessing
remote data.
Local access: If the failure occurs in the umbrella network still you can access
the portion of your data.
Easy Integration: It is easy to create or add an additional node to the
database. This integration makes distribution highly scalable.
Speed & resource efficiency: It reduces remote traffic.
It is important that the distributed database remain up-to-date because of its
distribution. The consistency should be there when the users use data that is
remotely stored.
But the question arises that is it possible? If yes then how is it possible?
Here is the answer to these questions. We have some process that remains database
up-to-date. Those processes are as follows:
1. Replication
2. Duplication
Some specialized software used in the Replication process. This software observes
all the changes/ modifications in the distributive database. Once that software
identifies changes, the replication process makes all the databases look the same.
The replication process can be complex. The Complexity of this process depends on
the size and number of the distributed databases.
So, after the understanding of data replication and data duplication, it’s time to
know about the type of distributed database.
Local Applications
Global Applications
A homogeneous distributed database uses the same software and hardware on all
the database sites. It appears a single interface as if it were a single database. So it
is easy to design and manage this system. There are some conditions that must be
satisfied by the system. Those conditions are as follows, the:
The homogeneous distributed database further divided into two categories that are
as follows:
Autonomous: Each database has its own independent functions. All are
integrated by a controlling application. It uses message passing to share data
updates.
Non-autonomous: Data distributed across the homogeneous sites. A central
or master DBMS co-ordinates data updates across the different sites.
For example
One location is using the latest database of relational DB, while another location
using conventional files/ old version of the database to store the data. Similarly, the
UNIX operating system used on one location, while another may be using Windows
operating system.
All the computers connect with each other over a network. Each computer in a
network is known as a node. So, that node can host one or more databases. Each
node in a distributed database system can act as a client, a server, or sometimes
both. It all depends on the situation.
So, now let’s talk about the Distributed database architecture using MySQL
replication.
Distributed Database Architecture Using Mysql
Replication
A distributed database system allows applications to access data from the local and
from the remote databases. We use a client/server architecture to process
information requests in a Distributed databases of MySQL replication.
The word replication stands for the operation of copying data and maintaining
database objects. These objects belonging to a distributed database system.
The architecture is based on a series of delivery servers that reports back to a central
database. The server can be scaled by adding more delivery servers.
This architecture provides good redundancy. So that any failure on a single server
will not disable the whole system. A load balancer takes place here. This load
balancer will handle a delivery server outage by distributing the extra load across
the other delivery servers. This architecture will eliminate most single points of
failure, and allows unlimited scalability almost.
We can balance the writes across the web servers With the Distributed Database
Architecture.
Also to have full High Availability and Redundancy we can use a Master-Master
replication at the Admin/Central Database.
Replication Documentation
You can refer to this link for further understanding of the MySQL replication process
because it is not possible to make all the things understandable in a brief part.
http://dev.mysql.com/doc/refman/5.5/en/replication.html
Advantages of Replication in MySQL
Scale-out solutions,
Data security,
Analytics,
Long-distance data distribution.
This is a brief introductory part of the distributed database system and its
architecture. So now it is the time to conclude it.
Conclusion
The distributed database system makes work easier in every field especially it fulfills
the business needs. Hence, it changes the way of data access and reduces the
network loads by the distribution of the data. So, we are free to store and retrieve
data from different networks or locations.
This concept of the distributed data system makes cloud computing a worthy
technology. Without the data distribution, cloud computing is nothing.
Hence, this system has more advantages over the centralized database system. So, I
think it gives some basic understanding of a distributed database system and its
architecture.
Ravi Verma
Manager- Data Analytics at Loginworks Softwares LLC
A technologist, speaker, educator, writer, and a Data Visualization Jedi .
I excel when it comes to making bespoke data dashboards and visualizations
that users and clients absolutely love. Sharing about things I enjoy doing is
my hobby, whether it's about a project, collaboration, feedback, or just simple
how-to guides about visualization.
If you have something to ask or share, I'd love to hear from you!
Data Analytics
How to work with Triggers and its Types in SQL?
30 Designing Tips for Creating a Good Portfolio
Leave a Comment
Name *
Email *
POST COMMENT
Name
Email*
SIGN ME UP!
Popular Categories
All Categories
Artificial Intelligence
Big Data
Branding
Data Analytics
Data Processing
FILTER
www.loginworks.com
+1 (804) 678- 7331
sales@loginworks.com
Solutions
Data Analytics
BI & Reporting
Industries
Ecommerce
Job
Travel
Real Estate
Automobile
Finance
Company
Awards
Case Study
Blogs
Follow
Get in Touch
Name*
Email*
Country/Region*
Phone number*
Comments
Submit