SlideShare a Scribd company logo
Christopher Bradford
Replication and consistency in Cassandra... What does it all mean?
Who is this guy?
Christopher Bradford
Solutions Architect with DataStax
Built the world’s smallest C* cluster
Twitter: @bradfordcp
GitHub: bradfordcp
© DataStax, All Rights Reserved. 3
Introduction
CAP Theorem
© DataStax, All Rights Reserved. 5
Pick 2 of the 3
Consistency
Availability Partition Tolerance
CAP Theorem
© DataStax, All Rights Reserved. 6
Consistency
Every read receives
the most recent
write or an error
Consistency
Availability Partition Tolerance
CAP Theorem
© DataStax, All Rights Reserved. 7
Every request
receives a response
Consistency
Availability Partition Tolerance
Availability
CAP Theorem
© DataStax, All Rights Reserved. 8
Partition Tolerance
The system continues
to operate despite
arbitrary partitioning
Consistency
Availability Partition Tolerance
CAP Theorem Evolved
© DataStax, All Rights Reserved. 9
The modern CAP goal should be to maximize
combinations of consistency and availability that
make sense for the specific application. Such an
approach incorporates plans for operation during
a partition and for recovery afterward, thus
helping designers think about CAP beyond its
historically perceived limitations.
- Eric Brewer
C
A P
CAP Theorem
© DataStax, All Rights Reserved. 10
Cassandra’s View
AP – Availability &
Partition tolerance above
all else.
Consistency
Availability Partition Tolerance
Replication
Availability & Partition Tolerance
Replication
© DataStax, All Rights Reserved. 12
Client
Coordinator
Replica
Replica
Replica
Write
Replication
© DataStax, All Rights Reserved. 13
Client
Coordinator
Replica
Replica
Replica
Write
+1 Hint
Replication
© DataStax, All Rights Reserved. 14
Client
Coordinator
Replica
Replica
Replica
Read
Configuring Replication
Replication is defined at the keyspace level.
© DataStax, All Rights Reserved. 15
Strategy
Parameters
CREATE KEYSPACE cassandra_summit
WITH REPLICATION = {
‘class’: ‘SimpleStrategy’,
‘replication_factor’: 3
};
1 Simple Strategy
2 Network Topology Strategy
Replication Strategies
© DataStax, All Rights Reserved. 16
Simple Strategy
© DataStax, All Rights Reserved. 17
Client
Coordinator
Replica
Replica
Replica
Request
Class: SimpleStrategy
Parameters:
• replication_factor
Simple Strategy
© DataStax, All Rights Reserved. 18
Client
Coordinator
Replica
Replica
Replica
Request
Network Topology Strategy
© DataStax, All Rights Reserved. 19
Client
Coordinator
Replica
Replica
Replica
Request
Class: NetworkTopologyStrategy
Parameters:
• dc_name: replication_factor
Network Topology Strategy
© DataStax, All Rights Reserved. 20
Client Coordinator
ReplicaRequest
Rack 1
Rack 2
Replica
Replica
Network Topology Strategy
© DataStax, All Rights Reserved. 21
Client
Coordinator
ReplicaRequest
Rack 1
Rack 3
Replica
Replica
Rack 2
Tools:
nodetool status ks
nodetool getendpoints ks table val
Consistency
Balancing performance and correctness
Tunable Consistency
Consistency Levels
© DataStax, All Rights Reserved. 24
Consistent Reads
• ALL
• QUORUM
• LOCAL_QUORUM
• ONE
• LOCAL_ONE
• SERIAL
© DataStax, All Rights Reserved. 25
Replica
Replica
Replica
Consistent Writes
• ALL
• QUORUM
• LOCAL_QUORUM
• ONE
• LOCAL_ONE
• ANY
© DataStax, All Rights Reserved. 26
Replica
Replica
Replica
Consistency Failures
© DataStax, All Rights Reserved. 27
What happens when
the desired
consistency level
cannot be
achieved?
Replica
Replica
Replica
Failure Recovery
© DataStax, All Rights Reserved. 28
Staying Consistent
In the event of a failure
how do replicas get
the latest data?
Replica
Replica
Replica
Conclusion
© DataStax, All Rights Reserved.29
Questions?

More Related Content

What's hot (20)

PDF
MySQL InnoDB Cluster - A complete High Availability solution for MySQL
Olivier DASINI
 
PDF
Introduction to Cassandra Basics
nickmbailey
 
PPTX
Architecting a datalake
Laurent Leturgez
 
PPTX
Query Compilation in Impala
Cloudera, Inc.
 
PDF
All About JSON and ClickHouse - Tips, Tricks and New Features-2022-07-26-FINA...
Altinity Ltd
 
PDF
Sqoop
Prashant Gupta
 
PPTX
How to Ingest 16 Billion Records Per Day into your Hadoop Environment
DataWorks Summit
 
PPTX
Introduction to NOSQL databases
Ashwani Kumar
 
PPTX
Introduction to NoSQL
PolarSeven Pty Ltd
 
PDF
Introducing Change Data Capture with Debezium
ChengKuan Gan
 
PPTX
BI, Reporting and Analytics on Apache Cassandra
Victor Coustenoble
 
PDF
MyRocks introduction and production deployment
Yoshinori Matsunobu
 
PDF
Materialized Column: An Efficient Way to Optimize Queries on Nested Columns
Databricks
 
PDF
Apache Iceberg - A Table Format for Hige Analytic Datasets
Alluxio, Inc.
 
PDF
Cassandra nice use cases and worst anti patterns
Duyhai Doan
 
PDF
Storing time series data with Apache Cassandra
Patrick McFadin
 
PDF
Neo4j GraphDay Seattle- Sept19- neo4j basic training
Neo4j
 
PPT
SQL Server Cluster Presentation
webhostingguy
 
PPTX
Mongodb basics and architecture
Bishal Khanal
 
PDF
MyRocks Deep Dive
Yoshinori Matsunobu
 
MySQL InnoDB Cluster - A complete High Availability solution for MySQL
Olivier DASINI
 
Introduction to Cassandra Basics
nickmbailey
 
Architecting a datalake
Laurent Leturgez
 
Query Compilation in Impala
Cloudera, Inc.
 
All About JSON and ClickHouse - Tips, Tricks and New Features-2022-07-26-FINA...
Altinity Ltd
 
How to Ingest 16 Billion Records Per Day into your Hadoop Environment
DataWorks Summit
 
Introduction to NOSQL databases
Ashwani Kumar
 
Introduction to NoSQL
PolarSeven Pty Ltd
 
Introducing Change Data Capture with Debezium
ChengKuan Gan
 
BI, Reporting and Analytics on Apache Cassandra
Victor Coustenoble
 
MyRocks introduction and production deployment
Yoshinori Matsunobu
 
Materialized Column: An Efficient Way to Optimize Queries on Nested Columns
Databricks
 
Apache Iceberg - A Table Format for Hige Analytic Datasets
Alluxio, Inc.
 
Cassandra nice use cases and worst anti patterns
Duyhai Doan
 
Storing time series data with Apache Cassandra
Patrick McFadin
 
Neo4j GraphDay Seattle- Sept19- neo4j basic training
Neo4j
 
SQL Server Cluster Presentation
webhostingguy
 
Mongodb basics and architecture
Bishal Khanal
 
MyRocks Deep Dive
Yoshinori Matsunobu
 

Viewers also liked (8)

PDF
Apache Cassandra and DataStax Enterprise Explained with Peter Halliday at Wil...
DataStax Academy
 
PPTX
Cql – cassandra query language
Courtney Robinson
 
PPT
Introduction to cassandra
Nguyen Quang
 
PDF
Introduction to Apache Cassandra
Robert Stupp
 
PDF
Migrating Netflix from Datacenter Oracle to Global Cassandra
Adrian Cockcroft
 
PDF
Solr & Cassandra: Searching Cassandra with DataStax Enterprise
DataStax Academy
 
PDF
Cassandra at eBay - Cassandra Summit 2012
Jay Patel
 
PPTX
An Overview of Apache Cassandra
DataStax
 
Apache Cassandra and DataStax Enterprise Explained with Peter Halliday at Wil...
DataStax Academy
 
Cql – cassandra query language
Courtney Robinson
 
Introduction to cassandra
Nguyen Quang
 
Introduction to Apache Cassandra
Robert Stupp
 
Migrating Netflix from Datacenter Oracle to Global Cassandra
Adrian Cockcroft
 
Solr & Cassandra: Searching Cassandra with DataStax Enterprise
DataStax Academy
 
Cassandra at eBay - Cassandra Summit 2012
Jay Patel
 
An Overview of Apache Cassandra
DataStax
 
Ad

Similar to Replication and Consistency in Cassandra... What Does it All Mean? (Christopher Bradford, DataStax) | C* Summit 2016 (20)

PPTX
Cassandra & Python - Springfield MO User Group
Adam Hutson
 
PDF
Patrick Guillebert – IT-Tage 2015 – Cassandra NoSQL - Architektur und Anwendu...
Informatik Aktuell
 
PDF
Understanding Data Consistency in Apache Cassandra
DataStax
 
PPTX
Cassandra Architecture FTW
Jeffrey Carpenter
 
PDF
Introduction to Cassandra Architecture
nickmbailey
 
PDF
Cassandra
Diego Pacheco
 
PPTX
How to size up an Apache Cassandra cluster (Training)
DataStax Academy
 
PDF
LJC: Fault tolerance with Apache Cassandra
Christopher Batey
 
PPTX
Building Highly Available Apps on Cassandra (Robbie Strickland, Weather Compa...
DataStax
 
PPTX
Tales From The Front: An Architecture For Multi-Data Center Scalable Applicat...
DataStax Academy
 
PDF
Cassandra and IoT
Russell Spitzer
 
PDF
Cassandra Day Chicago 2015: Cassandra Consistency & Tolerance (A Morality Gui...
DataStax Academy
 
PDF
Building Scalable, Real Time Applications for Financial Services with DataStax
DataStax
 
PDF
DataStax Enterprise – Foundations for Finance – 20160419
Daniel Cohen
 
PDF
Cassandra Core Concepts
DataStax Academy
 
PDF
A Quick Look At Cassandra
bryanwslideshare
 
PDF
Highly available, scalable and secure data with Cassandra and DataStax Enterp...
Johnny Miller
 
PPTX
DataStax TechDay - Munich 2014
Christian Johannsen
 
PDF
Cassandra Internals Overview
beobal
 
PPTX
Maintaining Consistency Across Data Centers (Randy Fradin, BlackRock) | Cassa...
DataStax
 
Cassandra & Python - Springfield MO User Group
Adam Hutson
 
Patrick Guillebert – IT-Tage 2015 – Cassandra NoSQL - Architektur und Anwendu...
Informatik Aktuell
 
Understanding Data Consistency in Apache Cassandra
DataStax
 
Cassandra Architecture FTW
Jeffrey Carpenter
 
Introduction to Cassandra Architecture
nickmbailey
 
Cassandra
Diego Pacheco
 
How to size up an Apache Cassandra cluster (Training)
DataStax Academy
 
LJC: Fault tolerance with Apache Cassandra
Christopher Batey
 
Building Highly Available Apps on Cassandra (Robbie Strickland, Weather Compa...
DataStax
 
Tales From The Front: An Architecture For Multi-Data Center Scalable Applicat...
DataStax Academy
 
Cassandra and IoT
Russell Spitzer
 
Cassandra Day Chicago 2015: Cassandra Consistency & Tolerance (A Morality Gui...
DataStax Academy
 
Building Scalable, Real Time Applications for Financial Services with DataStax
DataStax
 
DataStax Enterprise – Foundations for Finance – 20160419
Daniel Cohen
 
Cassandra Core Concepts
DataStax Academy
 
A Quick Look At Cassandra
bryanwslideshare
 
Highly available, scalable and secure data with Cassandra and DataStax Enterp...
Johnny Miller
 
DataStax TechDay - Munich 2014
Christian Johannsen
 
Cassandra Internals Overview
beobal
 
Maintaining Consistency Across Data Centers (Randy Fradin, BlackRock) | Cassa...
DataStax
 
Ad

More from DataStax (20)

PPTX
Is Your Enterprise Ready to Shine This Holiday Season?
DataStax
 
PPTX
Designing Fault-Tolerant Applications with DataStax Enterprise and Apache Cas...
DataStax
 
PPTX
Running DataStax Enterprise in VMware Cloud and Hybrid Environments
DataStax
 
PPTX
Best Practices for Getting to Production with DataStax Enterprise Graph
DataStax
 
PPTX
Webinar | Data Management for Hybrid and Multi-Cloud: A Four-Step Journey
DataStax
 
PPTX
Webinar | How to Understand Apache Cassandra™ Performance Through Read/Writ...
DataStax
 
PDF
Webinar | Better Together: Apache Cassandra and Apache Kafka
DataStax
 
PDF
Introduction to Apache Cassandra™ + What’s New in 4.0
DataStax
 
PPTX
Webinar: How Active Everywhere Database Architecture Accelerates Hybrid Cloud...
DataStax
 
PPTX
Webinar | Aligning GDPR Requirements with Today's Hybrid Cloud Realities
DataStax
 
PDF
Designing a Distributed Cloud Database for Dummies
DataStax
 
PDF
How to Power Innovation with Geo-Distributed Data Management in Hybrid Cloud
DataStax
 
PDF
How to Evaluate Cloud Databases for eCommerce
DataStax
 
PPTX
Webinar: DataStax Enterprise 6: 10 Ways to Multiply the Power of Apache Cassa...
DataStax
 
PPTX
Webinar: DataStax and Microsoft Azure: Empowering the Right-Now Enterprise wi...
DataStax
 
PPTX
Webinar - Real-Time Customer Experience for the Right-Now Enterprise featurin...
DataStax
 
PPTX
Datastax - The Architect's guide to customer experience (CX)
DataStax
 
PPTX
An Operational Data Layer is Critical for Transformative Banking Applications
DataStax
 
PPTX
Becoming a Customer-Centric Enterprise Via Real-Time Data and Design Thinking
DataStax
 
PPTX
Innovation Around Data and AI for Fraud Detection
DataStax
 
Is Your Enterprise Ready to Shine This Holiday Season?
DataStax
 
Designing Fault-Tolerant Applications with DataStax Enterprise and Apache Cas...
DataStax
 
Running DataStax Enterprise in VMware Cloud and Hybrid Environments
DataStax
 
Best Practices for Getting to Production with DataStax Enterprise Graph
DataStax
 
Webinar | Data Management for Hybrid and Multi-Cloud: A Four-Step Journey
DataStax
 
Webinar | How to Understand Apache Cassandra™ Performance Through Read/Writ...
DataStax
 
Webinar | Better Together: Apache Cassandra and Apache Kafka
DataStax
 
Introduction to Apache Cassandra™ + What’s New in 4.0
DataStax
 
Webinar: How Active Everywhere Database Architecture Accelerates Hybrid Cloud...
DataStax
 
Webinar | Aligning GDPR Requirements with Today's Hybrid Cloud Realities
DataStax
 
Designing a Distributed Cloud Database for Dummies
DataStax
 
How to Power Innovation with Geo-Distributed Data Management in Hybrid Cloud
DataStax
 
How to Evaluate Cloud Databases for eCommerce
DataStax
 
Webinar: DataStax Enterprise 6: 10 Ways to Multiply the Power of Apache Cassa...
DataStax
 
Webinar: DataStax and Microsoft Azure: Empowering the Right-Now Enterprise wi...
DataStax
 
Webinar - Real-Time Customer Experience for the Right-Now Enterprise featurin...
DataStax
 
Datastax - The Architect's guide to customer experience (CX)
DataStax
 
An Operational Data Layer is Critical for Transformative Banking Applications
DataStax
 
Becoming a Customer-Centric Enterprise Via Real-Time Data and Design Thinking
DataStax
 
Innovation Around Data and AI for Fraud Detection
DataStax
 

Recently uploaded (20)

PPTX
Tally software_Introduction_Presentation
AditiBansal54083
 
PPTX
Milwaukee Marketo User Group - Summer Road Trip: Mapping and Personalizing Yo...
bbedford2
 
PDF
AOMEI Partition Assistant Crack 10.8.2 + WinPE Free Downlaod New Version 2025
bashirkhan333g
 
PDF
Download Canva Pro 2025 PC Crack Full Latest Version
bashirkhan333g
 
PDF
iTop VPN With Crack Lifetime Activation Key-CODE
utfefguu
 
PDF
SciPy 2025 - Packaging a Scientific Python Project
Henry Schreiner
 
PDF
Odoo CRM vs Zoho CRM: Honest Comparison 2025
Odiware Technologies Private Limited
 
PPTX
Empowering Asian Contributions: The Rise of Regional User Groups in Open Sour...
Shane Coughlan
 
PDF
MiniTool Partition Wizard Free Crack + Full Free Download 2025
bashirkhan333g
 
PDF
Open Chain Q2 Steering Committee Meeting - 2025-06-25
Shane Coughlan
 
PPTX
Hardware(Central Processing Unit ) CU and ALU
RizwanaKalsoom2
 
PDF
4K Video Downloader Plus Pro Crack for MacOS New Download 2025
bashirkhan333g
 
PPTX
Change Common Properties in IBM SPSS Statistics Version 31.pptx
Version 1 Analytics
 
PDF
SAP Firmaya İade ABAB Kodları - ABAB ile yazılmıl hazır kod örneği
Salih Küçük
 
PDF
유니티에서 Burst Compiler+ThreadedJobs+SIMD 적용사례
Seongdae Kim
 
PDF
Empower Your Tech Vision- Why Businesses Prefer to Hire Remote Developers fro...
logixshapers59
 
PDF
Automate Cybersecurity Tasks with Python
VICTOR MAESTRE RAMIREZ
 
PPTX
In From the Cold: Open Source as Part of Mainstream Software Asset Management
Shane Coughlan
 
PDF
Wondershare PDFelement Pro Crack for MacOS New Version Latest 2025
bashirkhan333g
 
PDF
NEW-Viral>Wondershare Filmora 14.5.18.12900 Crack Free
sherryg1122g
 
Tally software_Introduction_Presentation
AditiBansal54083
 
Milwaukee Marketo User Group - Summer Road Trip: Mapping and Personalizing Yo...
bbedford2
 
AOMEI Partition Assistant Crack 10.8.2 + WinPE Free Downlaod New Version 2025
bashirkhan333g
 
Download Canva Pro 2025 PC Crack Full Latest Version
bashirkhan333g
 
iTop VPN With Crack Lifetime Activation Key-CODE
utfefguu
 
SciPy 2025 - Packaging a Scientific Python Project
Henry Schreiner
 
Odoo CRM vs Zoho CRM: Honest Comparison 2025
Odiware Technologies Private Limited
 
Empowering Asian Contributions: The Rise of Regional User Groups in Open Sour...
Shane Coughlan
 
MiniTool Partition Wizard Free Crack + Full Free Download 2025
bashirkhan333g
 
Open Chain Q2 Steering Committee Meeting - 2025-06-25
Shane Coughlan
 
Hardware(Central Processing Unit ) CU and ALU
RizwanaKalsoom2
 
4K Video Downloader Plus Pro Crack for MacOS New Download 2025
bashirkhan333g
 
Change Common Properties in IBM SPSS Statistics Version 31.pptx
Version 1 Analytics
 
SAP Firmaya İade ABAB Kodları - ABAB ile yazılmıl hazır kod örneği
Salih Küçük
 
유니티에서 Burst Compiler+ThreadedJobs+SIMD 적용사례
Seongdae Kim
 
Empower Your Tech Vision- Why Businesses Prefer to Hire Remote Developers fro...
logixshapers59
 
Automate Cybersecurity Tasks with Python
VICTOR MAESTRE RAMIREZ
 
In From the Cold: Open Source as Part of Mainstream Software Asset Management
Shane Coughlan
 
Wondershare PDFelement Pro Crack for MacOS New Version Latest 2025
bashirkhan333g
 
NEW-Viral>Wondershare Filmora 14.5.18.12900 Crack Free
sherryg1122g
 

Replication and Consistency in Cassandra... What Does it All Mean? (Christopher Bradford, DataStax) | C* Summit 2016

Editor's Notes

  • #4: I have contributed to multiple open source projects around distributed computing
  • #5: Today we are talking about Consistency & Replication. We want to dive into how are these key components are implemented in Cassandra and what do they mean to Developers and Operations?
  • #6: We’ll start with the CAP theorem. The CAP theorem says that it is impossible for a distributed system to provide guarantees around the following areas. Autumn of 1998
  • #7: Consistency - Every read receives the most recent write or an error
  • #8: Availability - Every request receives a response Note the data returned is not guaranteed to be the most recent
  • #9: Wikipedia says “due to network failures”, given my week it is due to disk controller errors. Partition Tolerance – the system continues despite arbitrary partitioning
  • #10: Eric Brewer, creator of the CAP theorem, argues that the pick 2 statement was a bit misleading. Really system designers need to choose where to be flexible in the case of a partition. Some systems prefer availability while Cassandra focuses on consistency.
  • #11: Consistency may be flexible to meet the needs of the application!
  • #12: How are availability and partition tolerance achieved? Through replication
  • #13: Let’s look at how replication affects availability and partition tolerance. Assume in this environment we have a replication factor of 3. This means every piece of data written to our cluster is stored 3 times. The client issues a write to a node in the cluster. This node is known as the coordinator for the duration of this request. The coordinator hashes the PARTITION KEY portion of the PRIMARY KEY and uses a REPLICATION STRATEGY to determine where the replicas live and forwards the request to those nodes.
  • #14: When one of the replicas is down the coordinator still writes to the other two replicas. This satisfies the availability portion of the CAP Theorem A hint is then stored on the coordinator. Should the replica that was down come back up within a certain time period (default 3 hours) the hint will be replayed against that host. This helps get the node back in sync with the rest of the cluster. This satisfies the partition tolerant portion of the CAP theorem
  • #15: Reads behave in a similar manner (although without the need for a hint). The coordinator is aware that one of the replicas is down and responds with data from the two replicas that are still available.
  • #16: Replication is defined at the keyspace level. The number of replicas and placement strategy are supplied during keyspace creation. The replication strategy is specified with the class parameter. Other parameters may also be required, but they are tied to the strategy being used.
  • #17: Cassandra ships with a few replication strategies. Let’s look at those now.
  • #18: The Simple Strategy is just that, Simple. The replicas for a particular piece of data circle the ring in order.
  • #19: If the token hashes differently then it may look like this. WARNING: Be very careful with SimpleStrategy in multi-DC environment. Depending on the consistency level and load balancing policy writes may throw exceptions as hosts are not necessarily routable.
  • #20: Network Topology Strategy layers additional logic into the replica selection process. It utilizes topology information to place replicas in a manner which ensures an even higher level of reliability. In our first example let’s assume every node is in the same DC and physical rack. The replica selection process looks similar to the SimpleStrategy, there is nothing too intense here. Note you must use an appropriate Snitch. The snitch defines how topology information is shared in the cluster. The GossipingPropertyFileSnitch uses the cassandra-rackdc.properties file to share topology info with peers where the SimpleSnitch has hardcoded values 
  • #21: In this example we have two racks, the aptly named rack 1 and rack 2. Now the network topology strategy will try and protect against an entire rack failure by placing replicas on different racks. In fact it won’t even attempt to write to another node in the same rack until all other rack options have been exhausted.
  • #22: In this example we have two racks added a third rack. Now one replica will be placed on each of the racks. This will lead to an imbalance in the cluster. The singular node in rack 1 will contain 100% of the data in the cluster.
  • #23: Remember how we discussed how the CAP theorem has evolved over time. It’s clear in Cassandra that this is at the heart. Consistency can be tuned on a per-query level to enhance performance or ensure consistency.
  • #24: We call this tunable consistency. Consistency can even be tuned depending on cluster health to ensure application availability. Let’s look at some of these levels.
  • #25: The consistency level is used to determine the number of replicas that must respond for any given query. Some levels are unique to the type of query being performed (read vs write). Others span datacenters and are not expected to be extremely performant.
  • #26: Discuss advantages of each, speed, correctness, failure tolerance.
  • #27: Discuss advantages of each, speed, correctness, failure tolerance. Note that even though we may return after one replica acknowledged the write we still attempt the write on other replicas. Bring up immediate consistency.
  • #28: An exception is thrown! At this point you can alert the user to a potential issue or try the request with a different consistency level. This process may be automated with a RetryPolicy. This is a big win for your application as you can stay available for users while alerting them that there may be a slight delay on changes.
  • #29: Cassandra has a number of anti-entropy processes to ensure nodes respond with the latest information. We were first introduced to this earlier with hinted handoffs. Should hints expire a manual repair of the node will synchronize it with its neighbors. There is also a read repair system in place. This takes the data returned by multiple replicas, compares them, and returns the latest value. A write is also issued which fixes any replicas that are out of date. This was taken a step further by Netflix with the Cassandra tickler. This process performs a read at the ALL consistency level across every primary key value forcing replicas to be brought in sync.
  • #30: Replication Controls where copies live Set on the keyspace level Are imperative both during a and p situations Consistency Dictates trade-offs between performance and correctness Achieves synchronization of replicas Consistency levels Both are core building blocks of Cassandra. Understand their usage and don’t be afraid to jump in the code. The classes that make this up are fairly simple and easy to reason about.