How is replication control achieved in ddbms

Assignment Help Database Management System
Reference no: EM131860842

Part 1: 180 - 200 word response to the discussion. Need a substantive responsive post with references.

Question: What is CAP Theorem in Distributed Systems? How is it different from ACID in Relational DBMS?

Discussion:CAP (Consistency, Availability, Partition)Theorem deals with the penalties incurred with scaled hardware that handles additional loads. According to Robert Greiner, "The CAP Theorem states that, in a distributed system (a collection of interconnected nodes that share data.), you can only have two out of the three guarantees across a write/read pair: consistency, availability, and partition tolerance (Greiner, 2014)."

Consistency is the concept that a read will return the most recent write.

Availability is that a working node will operate on time without error.

Partition Tolerance is that the system will be able to handle network partitions.

Due to network failures you need partition tolerance. Ensuring partition tolerance will either affect consistency or availability. Choosing consistency will eventually force sacrifices in availability. The partitioned system will need time to ensure the data being read was correctly processed. Choosing availability maybe an option when the process can afford to work with data that can be updated from the network at a later time.

ACID in a relational DBMS includes the following (What is the relation between SQL, NoSQL, the CAP theorem and ACID? - Quora, 2017):

Atomicity - All changes in a transaction must take place or the transaction is voided.

Consistency - All database rules such as data types, constraints, etc. must be followed or the transaction will not commit.

Isolation - A transaction in progress is isolated from other transactions until it is completed.

Durability - A committed transaction is stored and protected.

ACID is generally used in SQL whereas it is not generally used in NoSQL. Distributed database systems must use CAP requirements and ACID are set of requirements that a database can use for data quality.

Part 2: 180 - 200 word response to the discussion. Need a substantive responsive post with references.

Question: How is Replication Control achieved in DDBMS?

Discussion: Database replication is the frequent electronic copying data from a database in one computer or server to a database in another so that all users share the same level of information.

The result is a distributed database in which users can access data relevant to their tasks without interfering with the work of others. The implementation of database replication for the purpose of eliminating data ambiguity or inconsistency among users is known as normalization.

Database replication can be done in at least three different ways:

Snapshot replication: Data on one server is simply copied to another server, or to another database on the same server.

Merging replication: Data from two or more databases is combined into a single database.

Transactional replication: Users receive full initial copies of the database and then receive periodic updates as data changes.

There is one master site and ‘N' slave sites. A master algorithm runs at the master site to detect conflicts. A copy of slave algorithm runs at each slave site. The overall algorithm executes in the following two phases -

Transaction acceptance/rejection phase - When a transaction enters the transaction monitor of a slave site, the slave site sends a request to the master site.

The master site checks for conflicts. If there aren't any conflicts, the master sends an "ACK+" message to the slave site which then starts the transaction application phase. Otherwise, the master sends an "ACK-" message to the slave which then rejects the transaction.

Transaction application phase - Upon entering this phase, the slave site where transaction has entered broadcasts a request to all slaves for executing the transaction.

On receiving the requests, the peer slaves execute the transaction and send an "ACK" to the requesting slave on completion. After the requesting slave has received "ACK" messages from all its peers, it sends a "DONE" message to the master site. The master understands that the transaction has been completed and removes it from the pending queue.

Reference no: EM131860842

Questions Cloud

Democracy for someone who works fulltime : From GIVE ME LIBERTY, BY Eric Foner, Seagull volume 2. According to John Mitchell in the excerpt from 1910 on page 711 (page 699 in Fourth
Summarize the benefits of story telling as healing practice : Reflecting on Theresa and Sarah's Story, Have you ever held an assumptive belief about a particular group in society? Elaborate on your answer.
Radical republicans during reconstruction : Over the course of U.S. history, many groups have tried to reshape U.S. society and politics in accordance with a vision they see as the promise of America
Explain how your genetic algorithm works : CS 534 Assignment: Search. Explain how your genetic algorithm works. You must describe your selection, crossover, elitism, culling, and mutation approaches
How is replication control achieved in ddbms : How is Replication Control achieved in DDBMS?What is CAP Theorem in Distributed Systems? How is it different from ACID in Relational DBMS?
Develop an employee class that keeps data attributes : Develop an Employee class that keeps data attributes for the following pieces of information: Employee name and Employee number.
Why have some historians labeled the thirty years : Why have some historians labeled the Thirty Years' War the "last of the religious wars", while others have called it the "first modern war"?
How did the instability of politics at the turn : How did the instability of politics at the turn of the century show itself in daily life and art? How did this set the stage for the coming war?
Point of view of a person from ancient china : Chose one of the above Chinese belief systems and make narrative, in first person, from the point of view of a person

Reviews

Write a Review

Database Management System Questions & Answers

  Create database tables with appropriate field-naming

Identify and create database tables with appropriate field-naming conventions. Then, identify primary keys and foreign keys, and explain how referential integrity will be achieved.

  Describe the benefits of creating a shared vision

What would be the benefits to the business in the long term? Describe the benefits of creating a ‘shared vision' and culture for individuals? How should this plan be monitored in the future

  Write a script that inserts a new row into customers table

Write a script that inserts a new row into the Customers table for each customer stored in the NewCustomers.xml file that's in the Exercise Starts directory.

  Write the oracle function for the given queries

Why does the order of the operands (tables) matter in an EXCEPT (MINUS) query but not in a UNION query?

  Use of the internet and web continues to increase

As the use of the Internet and web continues to increase, students should be familiar with Internet shopping and the information security related to it. This should be done by answering the issues below related to a shopping of a product via the I..

  Insert several records into the xml field in this new table

Once these have been added, modify the structure of XML inside of your XML typed field to add another tag of , Within the Features tag, use the "modify" function to make this happen.

  Explaining weak relationship and weak entity

What is meant by a weak relationship? Provide an example. What is meant by weak entity? What do you understand by relationship degree?

  Which group functions can be used on date values

If the "greater than" comparison operator is used with a multiple-row subquery, what type of result will be returned?

  Identify potential sales and department store transactions

Identify the potential sales and department store transactions that can be stored within the database. Design a database solution and the potential business rules that could be used to house the sales transactions of the department store

  How will data mart be advantageous to the company

Assignment: Data Mart/Data Warehouse Access- What will Data Mart look like? How big will it be? How will it be advantageous to the company?

  Build relatively well normalized relational database

If we added hats in 3 sizes and 3 colors and 3 styles, discuss briefly how many additional tables you 'uld add to the design.

  Describe the importance of maintaining integrity rules

Create at least three examples of common relationships that are used within a relational database system. Justify your response.

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd