Questions and Answers 5-10 Marks
Questions and Answers 5-10 Marks
Sharding is a technique used to partition data horizontally across multiple servers. Each shard
stores a subset of the data, improving scalability and performance by balancing load across servers.
It helps handle high read/write traffic and is especially useful for large datasets.
Master-Slave Replication involves one master node managing all writes and propagating updates to
Write-Write conflicts occur when two clients attempt to update the same data simultaneously,
- Optimistic Locking: Detects and resolves conflicts after they occur, often using version stamps.
Eventual Consistency ensures that all replicas of data converge to the same state over time. It is
suitable for applications that can tolerate temporary inconsistencies, such as social media platforms
Version Stamps are unique identifiers used to track changes and maintain data consistency. Types
include:
The CAP theorem states that in distributed systems, it is impossible to achieve all three properties
simultaneously:
- Consistency: All nodes reflect the same data at the same time.