Professional Documents
Culture Documents
Lecture # 21
Vertical Fragmentation
Vertical Fragmentation is relatively more complex. Why ?
In todays Lecture
Replication
Advantages of Replication
Reliability. Fast response. May avoid complicated distributed transaction integrity routines (if replicated data is refreshed at scheduled intervals.)
De-couples nodes De(transactions proceed even if some nodes are down.) Reduced network traffic at prime time (if updates can be delayed.)
Disadvantages of Replication
Additional requirements for storage space. Additional time for update operations.
Complexity and cost of updating. Integrity exposure of getting incorrect data if replicated data is not updated simultaneously.
Publication
A Publication is group of related data and objects that we want to replicate together.
Publisher
A Publisher is a server that is the source of data to be replicated.
Subscriber
A Subscriber is a server that receives the data replicated by the publisher.
A Distributor is a server that performs various tasks when moving articles from Publishers to Subscribers. The actual tasks performed depend on the type of replication performed.
Snapshot Agent: Runs at least once in all replicas Distribution Agent: performs different activities, mainly distributes publication to subscribers Log reader Agent: used in transactional rep, reads log files of all servers involved Merge Agent: Meld changes from different servers made since last snapshot
Replication Models
Publ/Dist Sever
Replication Methods
Snapshot Replication Transaction Replication. Merge Replication.
Snapshot Replication
Preferred when subscribers need readreadonly access Higher latency (working without updated data) low Bandwidth
Summary