Lesson 1: Introduction to Replication / Learn

Video Transcript (English)

In this video, you’ll learn what replication is and the benefits of using it.

Replication is the process of storing multiple copies of data and keeping them synchronized on different servers. This is to provide fault tolerance against the loss of a single server.

In MongoDB, we call this group of servers a replica set. Each database instance, or node, within a replica set is called a replica set member.

Replica sets provide many benefits, such as: High availability, Fault tolerance, and Data durability.

In this video, we're going to focus on high availability.

High availability is the concept of making sure that our data can be continuously accessed, even if there’s a lack of availability in a system.

For example, imagine that we are storing our data on a standalone instance. The server that hosts our data experiences a physical failure, or we need to perform maintenance.

Because the data is stored on this single server, our users won’t have read or write data until the server is back up.

Not only that, but the data on this server might be completely lost.

With a replica set, we can mitigate this issue by storing copies of our data on different database servers.

If one server becomes unavailable, the others can take over. This means that users can continue to access their data without interruption.

Replication is an amazing tool when it comes to making sure our data is always available.

Let’s briefly recap what you learned in this lesson.

Replication is the process of storing multiple copies of the same data on different servers. This provides our database system with fault tolerance and high availability.

You also learned that high availability is the concept of making sure that our data can be continuously accessible. 

And we’re just getting started! You’ll get a better understanding of these concepts as you continue to work with replication in MongoDB.