Mirroring is also known as Shadowing, is the process of creating multiple copies of data and database. Generally in mirroring, the database is copied on totally different machine or location from its main database. There is if any primary server smashes for the maintenance then at that time, the system can failure to the mirrored database automatically. So, at any given time, only one copy can be obtained.
Mirroring is done on database. And it does not support the distributed database. The tight coupling between the mirrored and primary database is established with the assistance of causation blocks of the dealings log to the reflected database. Just in case of any failure, it’s conjointly capable of restoring the information by repeating it from one database to a different. Once any failure takes place, the mirrored database becomes the principal info.
Replication is that the method of making distributing the object of database and data at totally different databases to boost the supply of the information. It’s capable of rolling up the company information from geographically spread sites and spreading the information to remote users on net or LAN. In this, parallel execution are increased. The publisher is associate entity that has the information for replication to different servers in the Microsoft SQL server.
The subscriber could be a server that typically receives the replicated information from a publisher. There are three types Microsoft SQL server for replication operation:-
- Transaction replication
- Merge replication
- Snapshot replication
Difference between Mirroring and Replication:
|1.||Basic||Mirroring is the copying of data or database to a different location.||While replication is the creation of data and database objects to increase the distribution actions.|
|2.||Performed on||We perform mirroring on the database.||While we perform replication on the objects of data and database.|
|3.||Cost||Mirroring operation on database is costlier than replication.||While replication is less costlier than mirroring.|
|4.||Distributed database||Mirroring does not support the distributed database.||While replication supports the distributed database.|
|5.||Location||Generally mirror database is implemented on a different machine or location from its main database.||While in replication, the database and data objects are kept in another database.|
- Data Replication in DBMS
- Difference between H.323 and SIP
- Difference between TDM and FDM
- Difference between CD and DVD
- What's difference between MMU and MPU?
- Difference between JSP and ASP
- Difference between RPC and RMI
- Difference between CRT and LCD
- Difference between LAN and MAN
- Difference between CPU and GPU
- Difference between OOP and POP
- Difference Between SEO and SEM
- Web 1.0, Web 2.0 and Web 3.0 with their difference
- Difference between C and C#
- Difference between LAN, MAN and WAN
If you like GeeksforGeeks and would like to contribute, you can also write an article using contribute.geeksforgeeks.org or mail your article to email@example.com. See your article appearing on the GeeksforGeeks main page and help other Geeks.
Please Improve this article if you find anything incorrect by clicking on the "Improve Article" button below.