RTUComputer ScienceYr 2024 · Sem 62024

Q4Distributed System

Question

4 marks

What is replication? Discuss the reasons for replicating data in distributed systems.

Answer

An advanced theoretical exploration of Data Replication, detailing how duplicating massive datasets across geographically diverse servers mathematically enhances read performance while violently increasing the complexity of write-consistency.

Replication is the absolute foundational strategy of modern hyperscale distributed systems (like AWS or Netflix). It is the architectural process of mathematically cloning a single piece of data (a database row, a file, a Virtual Machine image) and distributing exact copies across multiple physically independent servers, often in different geographic data centers.

The Architectural Imperatives for Replication

  • 1. Absolute Fault Tolerance (Reliability): In a cluster of 10,000 physical hard drives, hardware failure is a mathematical certainty. If a massive database has only one copy and the motherboard burns out, the data is permanently annihilated. By aggressively maintaining 3 replicas, if Server A violently explodes, the system seamlessly routes traffic to Server B, resulting in zero downtime and absolute data survival.
  • 2. Massive Performance Enhancement (Scaling): If a single server holds the user database, and 1 million users violently request data simultaneously, the network interface will bottleneck and the CPU will melt. By cloning the database across 50 servers, the system mathematically divides the read traffic by 50, providing blistering fast response times.
  • 3. Geographic Latency Reduction: The speed of light is a physical limit. A user in Tokyo accessing a server in New York suffers catastrophic latency. By replicating the data to a data center in Tokyo, the data is physically closer to the user, dropping latency from 200ms to 5ms.

The Catastrophic Cost of Replication

While read performance explodes, Write Operations become mathematically horrific. If a user updates their password on Replica 1, that change must violently propagate to the other 49 Replicas over a chaotic internet. If a network partition occurs, Replica 1 has the new password, but Replica 49 has the old one, plunging the entire distributed system into a catastrophic "Inconsistency Crisis."

Back to Paper