Skip to the content.
5. Consistency Models (Strong, Eventual, Causal)
- Strong Consistency Implementation:
- Create a relational database setup with ACID properties (e.g., PostgreSQL).
- Write a script to test transactional consistency by simulating concurrent writes.
- Eventual Consistency Simulation:
- Build a simple distributed key-value store where nodes asynchronously replicate data.
- Test consistency by performing writes and observing when all nodes eventually converge.
- Causal Consistency Experiment:
- Implement a versioning system (e.g., using vector clocks) to simulate causal consistency.
- Create scenarios demonstrating causal relationships, such as a collaborative editing tool.