SlideShare a Scribd company logo
1 of 13
Database Replication
Orient Energy System
Data Replication Meaning
• Copying data from a database from one server to another server.
• All the users can share the same data without any inconsistency.
• Replication can be executed via three types of networks: Storage Area Network
(SAN), Local Area Network (LAN) or Wide Area Network (WAN).
• Data replication can be divided into two Categories :
1-Synchronous replication 2-Asynchronous replication
Synchronous vs Asynchronous
Synchronous replication
• Synchronous replication creates
copies of data in real time
• Propagates every transaction
• Creating connections for every
transaction
• Expensive but very reliable in the
event of a disaster
• Write data to primary storage and
the replica simultaneously
Asynchronous replication
• Creates copies of data as per defined
schedule
• Propagates Multiple Transaction
• Uses less network bandwidth and
offers better performance
• Less Expensive than Synchronous
replication and More Data Lost
chances
• Write data to the primary storage first
and then copy the data to the replica
Synchronous vs Asynchronous
Creating replicas in real time
Creating time delayed replicas
Types of Replication
Master-Slave
• One master server , others slave.
• Write on master propagates to
slaves.
• Configure slave to take over as
master if original master falls out.
Multi-Master
• All servers are master.
• Write on any server , propagate to
others.
• Powerful and flexible solution but
also very complex.
Advantages Of Replication
• Availability
• Has Reliability
• Gives high Performance
• Facilitates load reduction
• Provide disconnected computing
• Supports many users
• Supports latest versions or advanced applications
Disadvantages of Replication
• Require more Storage Space
• Expensive
• Complex Maintaining Data Consistency
Who use Data Replication?
• Data Backup– Data replication is associated with data availability and disaster
recovery (DR) if data lost or damage.
• Additional Transactional Processing Systems – These facilitate real time
reactions to transactional occurrences or changes.
• Application Development Projects – Such projects demand immediate
access to data to maximize business results.
• Big Data Analytics – Analytics depends on data accessibility across teams
of analysts working with the same data.
• Data Synchronization – Data management projects, analytical data marts,
mainframe environments and data warehouses can effectively leverage
replication for data synchronization purposes.
How does Data Replication Implemented?
Replication can be implemented using several different methods. Here are some of
the ways you can utilize data replication.
• Host-based replication.
• Hypervisor-based replication.
• Array-based replication.
• Network-based replication.
• Host-based replication – Purpose built servers : For this type of data replication,
application servers paired with software are used to create replicas/copies of
data from one site to another. This replication is mostly file-based and
asynchronous.
• Hypervisor-based replication – Replicate entire VMs : This type of data
replication is specifically designed to copy/replicate entire Virtual Machines (VMs)
from one host server or host cluster to another. This ability of replicating entire
VMs facilitates disaster recovery by easing fail over to the replicated copy of the
primary system.
• Array-based replication – Built-in Software Automatically Replicates Data : In
this data replication type, built-in software is used in compatible storage arrays to
automatically replicate data between them
• Network-based replication – Supports any host platform : This type of data
replication requires an additional switch or appliance between storage arrays and
servers. Network-based replication can support any host platform and can work
with any array.
Replication Schemes
Full Replication – The most extreme case is replication of the whole database at
every site in the distributed system. This will improve the availability of the system
because the system can continue to operate as long as atleast one site is up.
Advantages of full replication –
• High Availability of Data.
• Improves the performance for retrieval of global queries as the result can be
obtained locally from any of the local site.
• Faster execution of Queries.
Disadvantages of full replication –
• Concurrency is difficult to achieve in full replication.
• Slow update process as a single update must be performed at different
databases to keep the copies consistent.
Replication Schemes
No Replication – The other case of replication involves having No replication – that
is, each fragment is stored at only one site.
Advantages of No replication –
• The data can be easily recovered.
• Concurrency can be achieved in no replication.
Disadvantages of No replication –
• Since multiple users are accessing the same server, it may slow down the
execution of queries.
• The data is not easily available as there is no replication.
Replication Schemes
Partial Replication – In this type of replication some fragments of the database may
be replicated whereas others may not. The number of copies of the fragment may
range from one to the total number of sites in the distributed system. The
description of replication of fragments is sometimes called the replication schema.
Advantages of Partial replication –
• The number of copies of the fragment depends upon the importance of data.

More Related Content

What's hot

management of distributed transactions
management of distributed transactionsmanagement of distributed transactions
management of distributed transactions
Nilu Desai
 
Less09 managing undo data
Less09 managing undo dataLess09 managing undo data
Less09 managing undo data
Imran Ali
 

What's hot (20)

Distributed file system
Distributed file systemDistributed file system
Distributed file system
 
2 phase locking protocol DBMS
2 phase locking protocol DBMS2 phase locking protocol DBMS
2 phase locking protocol DBMS
 
management of distributed transactions
management of distributed transactionsmanagement of distributed transactions
management of distributed transactions
 
file sharing semantics by Umar Danjuma Maiwada
file sharing semantics by Umar Danjuma Maiwada file sharing semantics by Umar Danjuma Maiwada
file sharing semantics by Umar Danjuma Maiwada
 
Client server architecture
Client server architectureClient server architecture
Client server architecture
 
Less09 managing undo data
Less09 managing undo dataLess09 managing undo data
Less09 managing undo data
 
Concurrency control
Concurrency controlConcurrency control
Concurrency control
 
The CAP Theorem
The CAP Theorem The CAP Theorem
The CAP Theorem
 
Distributed dbms architectures
Distributed dbms architecturesDistributed dbms architectures
Distributed dbms architectures
 
Distributed Systems Naming
Distributed Systems NamingDistributed Systems Naming
Distributed Systems Naming
 
Difference between Homogeneous and Heterogeneous
Difference between Homogeneous  and    HeterogeneousDifference between Homogeneous  and    Heterogeneous
Difference between Homogeneous and Heterogeneous
 
Lec 7 query processing
Lec 7 query processingLec 7 query processing
Lec 7 query processing
 
Data base security & integrity
Data base security &  integrityData base security &  integrity
Data base security & integrity
 
introduction to NOSQL Database
introduction to NOSQL Databaseintroduction to NOSQL Database
introduction to NOSQL Database
 
Distribution transparency and Distributed transaction
Distribution transparency and Distributed transactionDistribution transparency and Distributed transaction
Distribution transparency and Distributed transaction
 
Distributed System ppt
Distributed System pptDistributed System ppt
Distributed System ppt
 
SQL - RDBMS Concepts
SQL - RDBMS ConceptsSQL - RDBMS Concepts
SQL - RDBMS Concepts
 
Client Server Architecture ppt
Client Server Architecture pptClient Server Architecture ppt
Client Server Architecture ppt
 
Joins in databases
Joins in databases Joins in databases
Joins in databases
 
Transactions and Concurrency Control
Transactions and Concurrency ControlTransactions and Concurrency Control
Transactions and Concurrency Control
 

Similar to Database replication

Solving Hadoop Replication Challenges with an Active-Active Paxos Algorithm
Solving Hadoop Replication Challenges with an Active-Active Paxos AlgorithmSolving Hadoop Replication Challenges with an Active-Active Paxos Algorithm
Solving Hadoop Replication Challenges with an Active-Active Paxos Algorithm
DataWorks Summit
 
Tiger oracle
Tiger oracleTiger oracle
Tiger oracle
d0nn9n
 
Replication in Distributed Real Time Database
Replication in Distributed Real Time DatabaseReplication in Distributed Real Time Database
Replication in Distributed Real Time Database
Ghanshyam Yadav
 

Similar to Database replication (20)

Replication.ppt
Replication.pptReplication.ppt
Replication.ppt
 
Replication Techniques for Distributed Database Design
Replication Techniques for Distributed Database DesignReplication Techniques for Distributed Database Design
Replication Techniques for Distributed Database Design
 
Data Replication from Storage Technology
Data Replication from Storage TechnologyData Replication from Storage Technology
Data Replication from Storage Technology
 
lecture-13.pptx
lecture-13.pptxlecture-13.pptx
lecture-13.pptx
 
Fault tolerant presentation
Fault tolerant presentationFault tolerant presentation
Fault tolerant presentation
 
Solving Hadoop Replication Challenges with an Active-Active Paxos Algorithm
Solving Hadoop Replication Challenges with an Active-Active Paxos AlgorithmSolving Hadoop Replication Challenges with an Active-Active Paxos Algorithm
Solving Hadoop Replication Challenges with an Active-Active Paxos Algorithm
 
Best Practice for Achieving High Availability in MariaDB
Best Practice for Achieving High Availability in MariaDBBest Practice for Achieving High Availability in MariaDB
Best Practice for Achieving High Availability in MariaDB
 
High availability and disaster recovery in IBM PureApplication System
High availability and disaster recovery in IBM PureApplication SystemHigh availability and disaster recovery in IBM PureApplication System
High availability and disaster recovery in IBM PureApplication System
 
HDFS_architecture.ppt
HDFS_architecture.pptHDFS_architecture.ppt
HDFS_architecture.ppt
 
Distributed and clustered systems
Distributed and clustered systemsDistributed and clustered systems
Distributed and clustered systems
 
05. performance-concepts
05. performance-concepts05. performance-concepts
05. performance-concepts
 
Distributed systems and scalability rules
Distributed systems and scalability rulesDistributed systems and scalability rules
Distributed systems and scalability rules
 
Tiger oracle
Tiger oracleTiger oracle
Tiger oracle
 
Big Data for QAs
Big Data for QAsBig Data for QAs
Big Data for QAs
 
Replication in Distributed Real Time Database
Replication in Distributed Real Time DatabaseReplication in Distributed Real Time Database
Replication in Distributed Real Time Database
 
02 2017 emea_roadshow_milan_ha
02 2017 emea_roadshow_milan_ha02 2017 emea_roadshow_milan_ha
02 2017 emea_roadshow_milan_ha
 
Sql disaster recovery
Sql disaster recoverySql disaster recovery
Sql disaster recovery
 
MariaDB High Availability Webinar
MariaDB High Availability WebinarMariaDB High Availability Webinar
MariaDB High Availability Webinar
 
distributed system original.pdf
distributed system original.pdfdistributed system original.pdf
distributed system original.pdf
 
Applications of Distributed Systems
Applications of Distributed SystemsApplications of Distributed Systems
Applications of Distributed Systems
 

Recently uploaded

Why Teams call analytics are critical to your entire business
Why Teams call analytics are critical to your entire businessWhy Teams call analytics are critical to your entire business
Why Teams call analytics are critical to your entire business
panagenda
 
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers:  A Deep Dive into Serverless Spatial Data and FMECloud Frontiers:  A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Safe Software
 
Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024
Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024
Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024
Victor Rentea
 

Recently uploaded (20)

Modernizing Legacy Systems Using Ballerina
Modernizing Legacy Systems Using BallerinaModernizing Legacy Systems Using Ballerina
Modernizing Legacy Systems Using Ballerina
 
Why Teams call analytics are critical to your entire business
Why Teams call analytics are critical to your entire businessWhy Teams call analytics are critical to your entire business
Why Teams call analytics are critical to your entire business
 
WSO2's API Vision: Unifying Control, Empowering Developers
WSO2's API Vision: Unifying Control, Empowering DevelopersWSO2's API Vision: Unifying Control, Empowering Developers
WSO2's API Vision: Unifying Control, Empowering Developers
 
WSO2 Micro Integrator for Enterprise Integration in a Decentralized, Microser...
WSO2 Micro Integrator for Enterprise Integration in a Decentralized, Microser...WSO2 Micro Integrator for Enterprise Integration in a Decentralized, Microser...
WSO2 Micro Integrator for Enterprise Integration in a Decentralized, Microser...
 
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers:  A Deep Dive into Serverless Spatial Data and FMECloud Frontiers:  A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
 
Exploring Multimodal Embeddings with Milvus
Exploring Multimodal Embeddings with MilvusExploring Multimodal Embeddings with Milvus
Exploring Multimodal Embeddings with Milvus
 
Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024
Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024
Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024
 
AWS Community Day CPH - Three problems of Terraform
AWS Community Day CPH - Three problems of TerraformAWS Community Day CPH - Three problems of Terraform
AWS Community Day CPH - Three problems of Terraform
 
JavaScript Usage Statistics 2024 - The Ultimate Guide
JavaScript Usage Statistics 2024 - The Ultimate GuideJavaScript Usage Statistics 2024 - The Ultimate Guide
JavaScript Usage Statistics 2024 - The Ultimate Guide
 
AI in Action: Real World Use Cases by Anitaraj
AI in Action: Real World Use Cases by AnitarajAI in Action: Real World Use Cases by Anitaraj
AI in Action: Real World Use Cases by Anitaraj
 
MINDCTI Revenue Release Quarter One 2024
MINDCTI Revenue Release Quarter One 2024MINDCTI Revenue Release Quarter One 2024
MINDCTI Revenue Release Quarter One 2024
 
Rising Above_ Dubai Floods and the Fortitude of Dubai International Airport.pdf
Rising Above_ Dubai Floods and the Fortitude of Dubai International Airport.pdfRising Above_ Dubai Floods and the Fortitude of Dubai International Airport.pdf
Rising Above_ Dubai Floods and the Fortitude of Dubai International Airport.pdf
 
JohnPollard-hybrid-app-RailsConf2024.pptx
JohnPollard-hybrid-app-RailsConf2024.pptxJohnPollard-hybrid-app-RailsConf2024.pptx
JohnPollard-hybrid-app-RailsConf2024.pptx
 
TrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
TrustArc Webinar - Unlock the Power of AI-Driven Data DiscoveryTrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
TrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
 
Six Myths about Ontologies: The Basics of Formal Ontology
Six Myths about Ontologies: The Basics of Formal OntologySix Myths about Ontologies: The Basics of Formal Ontology
Six Myths about Ontologies: The Basics of Formal Ontology
 
Navigating the Deluge_ Dubai Floods and the Resilience of Dubai International...
Navigating the Deluge_ Dubai Floods and the Resilience of Dubai International...Navigating the Deluge_ Dubai Floods and the Resilience of Dubai International...
Navigating the Deluge_ Dubai Floods and the Resilience of Dubai International...
 
Corporate and higher education May webinar.pptx
Corporate and higher education May webinar.pptxCorporate and higher education May webinar.pptx
Corporate and higher education May webinar.pptx
 
How to Check CNIC Information Online with Pakdata cf
How to Check CNIC Information Online with Pakdata cfHow to Check CNIC Information Online with Pakdata cf
How to Check CNIC Information Online with Pakdata cf
 
DEV meet-up UiPath Document Understanding May 7 2024 Amsterdam
DEV meet-up UiPath Document Understanding May 7 2024 AmsterdamDEV meet-up UiPath Document Understanding May 7 2024 Amsterdam
DEV meet-up UiPath Document Understanding May 7 2024 Amsterdam
 
"I see eyes in my soup": How Delivery Hero implemented the safety system for ...
"I see eyes in my soup": How Delivery Hero implemented the safety system for ..."I see eyes in my soup": How Delivery Hero implemented the safety system for ...
"I see eyes in my soup": How Delivery Hero implemented the safety system for ...
 

Database replication

  • 2. Data Replication Meaning • Copying data from a database from one server to another server. • All the users can share the same data without any inconsistency. • Replication can be executed via three types of networks: Storage Area Network (SAN), Local Area Network (LAN) or Wide Area Network (WAN). • Data replication can be divided into two Categories : 1-Synchronous replication 2-Asynchronous replication
  • 3. Synchronous vs Asynchronous Synchronous replication • Synchronous replication creates copies of data in real time • Propagates every transaction • Creating connections for every transaction • Expensive but very reliable in the event of a disaster • Write data to primary storage and the replica simultaneously Asynchronous replication • Creates copies of data as per defined schedule • Propagates Multiple Transaction • Uses less network bandwidth and offers better performance • Less Expensive than Synchronous replication and More Data Lost chances • Write data to the primary storage first and then copy the data to the replica
  • 4. Synchronous vs Asynchronous Creating replicas in real time Creating time delayed replicas
  • 5. Types of Replication Master-Slave • One master server , others slave. • Write on master propagates to slaves. • Configure slave to take over as master if original master falls out. Multi-Master • All servers are master. • Write on any server , propagate to others. • Powerful and flexible solution but also very complex.
  • 6. Advantages Of Replication • Availability • Has Reliability • Gives high Performance • Facilitates load reduction • Provide disconnected computing • Supports many users • Supports latest versions or advanced applications
  • 7. Disadvantages of Replication • Require more Storage Space • Expensive • Complex Maintaining Data Consistency
  • 8. Who use Data Replication? • Data Backup– Data replication is associated with data availability and disaster recovery (DR) if data lost or damage. • Additional Transactional Processing Systems – These facilitate real time reactions to transactional occurrences or changes. • Application Development Projects – Such projects demand immediate access to data to maximize business results. • Big Data Analytics – Analytics depends on data accessibility across teams of analysts working with the same data. • Data Synchronization – Data management projects, analytical data marts, mainframe environments and data warehouses can effectively leverage replication for data synchronization purposes.
  • 9. How does Data Replication Implemented? Replication can be implemented using several different methods. Here are some of the ways you can utilize data replication. • Host-based replication. • Hypervisor-based replication. • Array-based replication. • Network-based replication.
  • 10. • Host-based replication – Purpose built servers : For this type of data replication, application servers paired with software are used to create replicas/copies of data from one site to another. This replication is mostly file-based and asynchronous. • Hypervisor-based replication – Replicate entire VMs : This type of data replication is specifically designed to copy/replicate entire Virtual Machines (VMs) from one host server or host cluster to another. This ability of replicating entire VMs facilitates disaster recovery by easing fail over to the replicated copy of the primary system. • Array-based replication – Built-in Software Automatically Replicates Data : In this data replication type, built-in software is used in compatible storage arrays to automatically replicate data between them • Network-based replication – Supports any host platform : This type of data replication requires an additional switch or appliance between storage arrays and servers. Network-based replication can support any host platform and can work with any array.
  • 11. Replication Schemes Full Replication – The most extreme case is replication of the whole database at every site in the distributed system. This will improve the availability of the system because the system can continue to operate as long as atleast one site is up. Advantages of full replication – • High Availability of Data. • Improves the performance for retrieval of global queries as the result can be obtained locally from any of the local site. • Faster execution of Queries. Disadvantages of full replication – • Concurrency is difficult to achieve in full replication. • Slow update process as a single update must be performed at different databases to keep the copies consistent.
  • 12. Replication Schemes No Replication – The other case of replication involves having No replication – that is, each fragment is stored at only one site. Advantages of No replication – • The data can be easily recovered. • Concurrency can be achieved in no replication. Disadvantages of No replication – • Since multiple users are accessing the same server, it may slow down the execution of queries. • The data is not easily available as there is no replication.
  • 13. Replication Schemes Partial Replication – In this type of replication some fragments of the database may be replicated whereas others may not. The number of copies of the fragment may range from one to the total number of sites in the distributed system. The description of replication of fragments is sometimes called the replication schema. Advantages of Partial replication – • The number of copies of the fragment depends upon the importance of data.