Replication Overview
766 views
Oct 24, 2024
Replication Overview Watch more Videos at https://www.tutorialspoint.com/videotutorials/index.htm Lecture By: Mr. Arnab Chakraborty, Tutorials Point India Private Limited
View Video Transcript
0:00
In this video we are discussing replication overview
0:04
Replication means keeping multiple instances of the same data. Replication has only one disadvantage
0:11
That means if we want to store the same data into multiple locations in the multiple storage spaces
0:17
then obviously we require a huge storage. Obviously, nowadays the storage cost has got reduced to a very nice extent
0:26
So, that's why we can easily sacrifice that one. but this replication is having manifold advantages
0:33
So, if one data is getting lost or getting damaged or getting deleted from a certain
0:38
data source, we can access the same data from the multiple other locations where it got
0:44
replicated earlier. From the application, this replication will remain transparent. From the application, we cannot get the idea that this particular data from where we are
0:55
accessing to which other locations, the same data was replicated. replicated. So, replication enhances the availability probability and accessibility probability
1:06
So, that's why more availability and more data access will be obtained if you go for
1:11
data replication. So, let us go for some further discussion on this replication overview
1:18
So, what is replication in MongoDB? So, replication is the process of synchronizing data
1:24
across multiple servers. The thing is that when a same data has got replicated
1:29
replicated into multiple different locations. If there is one update in any one of the instances
1:35
then that update must be synchronized with the other instances. Otherwise, the database will
1:40
become inconsistent. Replication provides redundancy and increases data availability with multiple copies of data on different database servers So we are having multiple different database servers where this particular data will get replicated Obviously it requires more storage space but obviously it will increase the more availability and more accessibility
2:06
Replication protects a database from the loss of single server and replication also allows you
2:13
to recover from the hardware failure, the service interruptions and so on. So data will not be lost
2:19
that we can ensure. So, with additional copies of the data, you can dedicate one of the
2:26
disasters recovery reporting or backup. So, this are the advantages of our replication
2:36
Why we should use replication? So, let us make one summary. So these are the points we have
2:41
made a summary so that you can understand better. The replication is used for some reasons
2:46
and the reasons are like below. The first one, to keep our data safe
2:52
So, safe means if one server is going down, then the data can be accessed from the other servers
2:59
Next one is a high, that is 24 into 7, availability of data
3:05
Disaster recovery. Next one is no downtime for maintenance, like the backups, index rebuilds, and compaction
3:12
We can access data from the other instances. So there is no downtime
3:16
downtime in this case. Next one is our read scaling, that is extra copies to read from
3:23
So depending upon the network concessions or depending on some other features and other problems
3:29
we can read our data from different sources as when available. So read scaling is getting
3:35
enhanced. Next one is the replica set is transparent to the application as I have mentioned
3:42
earlier. So, these are the different advantages we are going to enjoy if we do the replication
3:49
in our databases and MongoDB supports replication. Thanks for watching this video
#Programming