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

  What is the difference between an entity and an attribute

What are the four primary traits that help determine the value of information?- What is the difference between an entity and an attribute?

  Create the relational model

Create the relational model corresponding to the described application. Basically, list the CREATE TABLE statements with the attribute names, and appropriate data types.

  Write a query that returns the number of customers

Write a query that returns the number of customers in the customers table. Write a query that returns the number of customers in each job title. Write a query that returns the job titles having greater than 5 customers

  Determine the commissions paid to specific employees

Design a query that will allow the finance department to determine the commissions paid to specific employees of the sales department for the month of December.

  Create an application that allows the user to enter the data

Create an application that allows the user to enter the following employee data

  Use of data definition language-data manipulation language

Pick one of the different types of SQL statements (data definition language, data manipulation language, or data control language). Describe how that type of statement is use.

  What is an overlapping subtype

What is the difference between partial completeness and total completeness?

  Entity relationship diagram objectives

COIT20247 Database Design and Development - Develop a conceptual data model based on the following case study. It relates to the unit learning outcome.

  What dbms guarantee with respect to concurrent execution

What must a user guarantee with respect to a transaction and database consistency? What should a DBMS guarantee with respect to concurrent execution of several transactions and database consistency?

  Create a fictional list for job openings

Each student will create an Access 2013 database which will be used to match personal job skills learned in college courses with desired skills for job openings. Students may use their own personal course history, or create a fictional list.

  Advantages and inconveniences of new relational scheme

Compare activity (quite theoretical) of the disk (in number of bytes) required for each of both relational. Write down the advantages and inconveniences of new relational scheme.

  Define what database to use with a use statement

Use SQL Management Studio to create a database called ITCO630_P1.MDF.Add the following tables and data to the database.Create the following queries and save them all in a file called ITCO630_P1.SQL. Please note that you can execute individual queri..

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