<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[What is 🛢Database Replication?]]></title><description><![CDATA[<p dir="auto"><strong>Database Replication</strong> is a mechanism whereby data is available in more than one location. It means, Having more than one database server and replicating all the data in all available database servers.</p>
<p dir="auto"><img src="https://esolution.ca/wp-content/uploads/database-replication.png" alt="replication" class=" img-responsive img-markdown" /></p>
<hr />
<h2>Why Database Replication 🙄🙄 ?</h2>
<p dir="auto">The <strong>Data-Centers</strong> or <strong>Large Scale Application Systems</strong> are handling millions of queries per second. This kind of continuous huge requests can create very very huge traffic and collision over the network. So there are many possibilities for <strong>Server Brake Down</strong> or <strong>Down Time</strong> 😥😥😥 .</p>
<p dir="auto">To avoid this, If one database server fail, We need to provide data from another server until the failed server up again. And also we can reduce a load of a server by having more database instances ⚖  .</p>
<p dir="auto">For that we need no sync data from a main server to other servers. This syncing process can be <code>synchronous</code> or <code>Asynchronous</code>. But it will happen continuously..</p>
<p dir="auto">So this process <code>Syncing data between database servers to increase availability</code> called <strong>Replication</strong>.</p>
<p dir="auto"><img src="https://www.supraits.com/wp-content/uploads/2018/01/data_replication.jpg" alt="replication" class=" img-responsive img-markdown" /></p>
<hr />
<h2>Master - Slave Architecture</h2>
<p dir="auto">In Database Replication, Most Engineers go with a very efficient architecture called <strong>Master - Slave</strong>.</p>
<p dir="auto">In this architecture there will be database server called <code>Master</code> which has permission to <code>Read</code> and <code>Write</code> Data in Database.</p>
<p dir="auto">Other side, There will be few database servers called <code>Slaves</code> which has permission only for <code>Read</code> the data.</p>
<p dir="auto">Master servers can be one or more... But Slaves will be more than masters,<br />
<em>(Depends on the purpose and data size)</em><br />
<img src="https://mariadb.com/files/pictures/Images/dbreplication173.png" alt="master slave" class=" img-responsive img-markdown" /></p>
<h3>Master</h3>
<p dir="auto">This master database can <code>Read</code> and <code>Write</code> data in Database, But mostly used to write data.</p>
<p dir="auto">When application wants to write the data, The query or request will be forwarded to one of the master server.</p>
<p dir="auto">And also masters will sync the data to their slaves.</p>
<h3>Slaves</h3>
<p dir="auto"><code>Slaves</code> are only able to <code>read</code> the data from database. So when application want to read a data, The query or request will be forwarded to one of the slave.</p>
<p dir="auto">When slaves down, and there are no slaves to handle, The <code>master</code> will handle and  read data.</p>
<p dir="auto">Slaves are <code>fetching chances</code> from <code>master databases</code> to keep them <code>up to date</code>.</p>
<p dir="auto"><img src="https://assets.digitalocean.com/articles/wordpress_hyperdb/wordpress_mysql_loadbalance.png" alt="master slave" class=" img-responsive img-markdown" /></p>
<hr />
<h2>Conclusion</h2>
<p dir="auto"><code>Master - Slave</code> is a way to increase the database availability and provide <code>Zero Down time</code>. But it will <strong>cost more data storage</strong>. Because, When we replicate <code>5GB</code> of data over <code>3 servers</code>, It will be <code>3 x 5 = 15GB</code>.</p>
<p dir="auto">Current Databases are much faster than before. So it is not compulsory to implement replication for smaller level projects.</p>
<p dir="auto">But when you want more <code>scalability</code> and <code>availability</code>, Then go with <code>Replication</code></p>
<p dir="auto">Cheers.......  💪💪💪💪</p>
]]></description><link>https://lankadevelopers.lk/topic/266/what-is-database-replication</link><generator>RSS for Node</generator><lastBuildDate>Fri, 10 Jul 2026 14:12:26 GMT</lastBuildDate><atom:link href="https://lankadevelopers.lk/topic/266.rss" rel="self" type="application/rss+xml"/><pubDate>Sun, 09 Jun 2019 18:15:12 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to What is 🛢Database Replication? on Fri, 15 May 2026 07:40:47 GMT]]></title><description><![CDATA[<p dir="auto">Explore the meaning of the <a href="https://www.adultscare.com/blog/digital-age/" target="_blank" rel="noopener noreferrer nofollow ugc">digital age</a> and how technology has transformed modern life. The digital age refers to the present period when computers, the internet, and digital devices allow people to access and share information quickly. It has changed communication, entertainment, business, and everyday activities worldwide</p>
]]></description><link>https://lankadevelopers.lk/post/8287</link><guid isPermaLink="true">https://lankadevelopers.lk/post/8287</guid><dc:creator><![CDATA[AdultsCare 0]]></dc:creator><pubDate>Fri, 15 May 2026 07:40:47 GMT</pubDate></item><item><title><![CDATA[Reply to What is 🛢Database Replication? on Fri, 15 May 2026 06:09:34 GMT]]></title><description><![CDATA[<p dir="auto">Learn <a href="https://www.cupidbaba.com/blog/clit/" target="_blank" rel="noopener noreferrer nofollow ugc">what is a clit </a> —a highly sensitive organ in the female body that plays a key role in sexual pleasure. It has both external and internal parts and contains thousands of nerve endings.</p>
]]></description><link>https://lankadevelopers.lk/post/8283</link><guid isPermaLink="true">https://lankadevelopers.lk/post/8283</guid><dc:creator><![CDATA[Ruchi Harpreet Roy]]></dc:creator><pubDate>Fri, 15 May 2026 06:09:34 GMT</pubDate></item><item><title><![CDATA[Reply to What is 🛢Database Replication? on Tue, 18 Jun 2019 04:27:53 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="https://lankadevelopers.lk/uid/27">@root</a> Thx dude</p>
]]></description><link>https://lankadevelopers.lk/post/1710</link><guid isPermaLink="true">https://lankadevelopers.lk/post/1710</guid><dc:creator><![CDATA[b6]]></dc:creator><pubDate>Tue, 18 Jun 2019 04:27:53 GMT</pubDate></item><item><title><![CDATA[Reply to What is 🛢Database Replication? on Sun, 16 Jun 2019 02:57:39 GMT]]></title><description><![CDATA[<p dir="auto">Good article bro, awesome b6</p>
]]></description><link>https://lankadevelopers.lk/post/1704</link><guid isPermaLink="true">https://lankadevelopers.lk/post/1704</guid><dc:creator><![CDATA[root]]></dc:creator><pubDate>Sun, 16 Jun 2019 02:57:39 GMT</pubDate></item><item><title><![CDATA[Reply to What is 🛢Database Replication? on Wed, 12 Jun 2019 04:24:08 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="https://lankadevelopers.lk/uid/33">@rachitha</a> Thx bro</p>
]]></description><link>https://lankadevelopers.lk/post/1695</link><guid isPermaLink="true">https://lankadevelopers.lk/post/1695</guid><dc:creator><![CDATA[b6]]></dc:creator><pubDate>Wed, 12 Jun 2019 04:24:08 GMT</pubDate></item><item><title><![CDATA[Reply to What is 🛢Database Replication? on Tue, 11 Jun 2019 11:26:38 GMT]]></title><description><![CDATA[<p dir="auto">Nice article<br />
Thanks brother</p>
]]></description><link>https://lankadevelopers.lk/post/1694</link><guid isPermaLink="true">https://lankadevelopers.lk/post/1694</guid><dc:creator><![CDATA[rachitha]]></dc:creator><pubDate>Tue, 11 Jun 2019 11:26:38 GMT</pubDate></item><item><title><![CDATA[Reply to What is 🛢Database Replication? on Mon, 10 Jun 2019 08:23:52 GMT]]></title><description><![CDATA[<p dir="auto">@Malith thx bro</p>
]]></description><link>https://lankadevelopers.lk/post/1690</link><guid isPermaLink="true">https://lankadevelopers.lk/post/1690</guid><dc:creator><![CDATA[b6]]></dc:creator><pubDate>Mon, 10 Jun 2019 08:23:52 GMT</pubDate></item><item><title><![CDATA[Reply to What is 🛢Database Replication? on Mon, 10 Jun 2019 08:23:31 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="https://lankadevelopers.lk/uid/2">@dev_lak</a> thanks bro</p>
]]></description><link>https://lankadevelopers.lk/post/1689</link><guid isPermaLink="true">https://lankadevelopers.lk/post/1689</guid><dc:creator><![CDATA[b6]]></dc:creator><pubDate>Mon, 10 Jun 2019 08:23:31 GMT</pubDate></item><item><title><![CDATA[Reply to What is 🛢Database Replication? on Mon, 10 Jun 2019 05:31:28 GMT]]></title><description><![CDATA[<p dir="auto">Thanks b6 very useful</p>
]]></description><link>https://lankadevelopers.lk/post/1686</link><guid isPermaLink="true">https://lankadevelopers.lk/post/1686</guid><dc:creator><![CDATA[Nubelle]]></dc:creator><pubDate>Mon, 10 Jun 2019 05:31:28 GMT</pubDate></item><item><title><![CDATA[Reply to What is 🛢Database Replication? on Mon, 10 Jun 2019 04:53:07 GMT]]></title><description><![CDATA[<p dir="auto">thanks brother,, this is very usefull</p>
]]></description><link>https://lankadevelopers.lk/post/1685</link><guid isPermaLink="true">https://lankadevelopers.lk/post/1685</guid><dc:creator><![CDATA[dev_lak]]></dc:creator><pubDate>Mon, 10 Jun 2019 04:53:07 GMT</pubDate></item></channel></rss>