Replication Types and Node Outages
Get to know replication types and learn how to handle node outages.
Now that we have a basic understanding of replication, let’s discuss replication mechanisms and outages.
Just like in the previous lessons, let’s assume that the My Cool App has a good amount of data, but all the data can be hosted on a single machine. Now we want to build replication mechanisms so that the database system can scale and can handle more load.
Synchronous or asynchronous replication?
When a leader receives some data to write, should the replication happen synchronously or asynchronously?
Note: In synchronous replication, a write is successful only when all the followers have successfully processed the write-request. In asynchronous replication, a write is successful as soon as the leader has processed the write-request, after which the followers can process it asynchronously.
Get hands-on with 1400+ tech skills courses.