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
Wars of MySQL Cluster ( InnoDB Cluster VS Galera )
Mydbops
 
PPT
NOSQL Database: Apache Cassandra
Folio3 Software
 
PDF
Intro to HBase
alexbaranau
 
KEY
Big Data in Real-Time at Twitter
nkallen
 
PDF
Efficient Data Storage for Analytics with Parquet 2.0 - Hadoop Summit 2014
Julien Le Dem
 
PDF
InnoDB Locking Explained with Stick Figures
Karwin Software Solutions LLC
 
PDF
InnoDb Vs NDB Cluster
Mark Swarbrick
 
PDF
Cassandra Introduction & Features
DataStax Academy
 
PPTX
MongoDB Aggregation Performance
MongoDB
 
PDF
An overview of Neo4j Internals
Tobias Lindaaker
 
KEY
Rainbird: Realtime Analytics at Twitter (Strata 2011)
Kevin Weil
 
PPTX
Bucket your partitions wisely - Cassandra summit 2016
Markus Höfer
 
PPTX
Myths of Big Partitions (Robert Stupp, DataStax) | Cassandra Summit 2016
DataStax
 
PDF
A Deep Dive into Kafka Controller
confluent
 
PDF
High Availability PostgreSQL with Zalando Patroni
Zalando Technology
 
PDF
HBase Advanced - Lars George
JAX London
 
PPTX
MariaDB Galera Cluster
Abdul Manaf
 
PDF
MariaDB MaxScale monitor 매뉴얼
NeoClova
 
PDF
Redis cluster
iammutex
 
PDF
Designing Apache Hudi for Incremental Processing With Vinoth Chandar and Etha...
HostedbyConfluent
 
Wars of MySQL Cluster ( InnoDB Cluster VS Galera )
Mydbops
 
NOSQL Database: Apache Cassandra
Folio3 Software
 
Intro to HBase
alexbaranau
 
Big Data in Real-Time at Twitter
nkallen
 
Efficient Data Storage for Analytics with Parquet 2.0 - Hadoop Summit 2014
Julien Le Dem
 
InnoDB Locking Explained with Stick Figures
Karwin Software Solutions LLC
 
InnoDb Vs NDB Cluster
Mark Swarbrick
 
Cassandra Introduction & Features
DataStax Academy
 
MongoDB Aggregation Performance
MongoDB
 
An overview of Neo4j Internals
Tobias Lindaaker
 
Rainbird: Realtime Analytics at Twitter (Strata 2011)
Kevin Weil
 
Bucket your partitions wisely - Cassandra summit 2016
Markus Höfer
 
Myths of Big Partitions (Robert Stupp, DataStax) | Cassandra Summit 2016
DataStax
 
A Deep Dive into Kafka Controller
confluent
 
High Availability PostgreSQL with Zalando Patroni
Zalando Technology
 
HBase Advanced - Lars George
JAX London
 
MariaDB Galera Cluster
Abdul Manaf
 
MariaDB MaxScale monitor 매뉴얼
NeoClova
 
Redis cluster
iammutex
 
Designing Apache Hudi for Incremental Processing With Vinoth Chandar and Etha...
HostedbyConfluent
 

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
DataStax Enterprise – Foundations for Finance – 20160419
Daniel Cohen
 
PDF
Building Scalable, Real Time Applications for Financial Services with DataStax
DataStax
 
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
 
DataStax Enterprise – Foundations for Finance – 20160419
Daniel Cohen
 
Building Scalable, Real Time Applications for Financial Services with DataStax
DataStax
 
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
Top 10 Best Practices for Apache Cassandra and DataStax Enterprise
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
 
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
 
Top 10 Best Practices for Apache Cassandra and DataStax Enterprise
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
 

Recently uploaded (20)

PDF
Technical-Careers-Roadmap-in-Software-Market.pdf
Hussein Ali
 
PDF
MiniTool Power Data Recovery 8.8 With Crack New Latest 2025
bashirkhan333g
 
PPTX
Agentic Automation Journey Series Day 2 – Prompt Engineering for UiPath Agents
klpathrudu
 
PPTX
Milwaukee Marketo User Group - Summer Road Trip: Mapping and Personalizing Yo...
bbedford2
 
PDF
Open Chain Q2 Steering Committee Meeting - 2025-06-25
Shane Coughlan
 
PPTX
Coefficient of Variance in IBM SPSS Statistics Version 31.pptx
Version 1 Analytics
 
PPTX
AEM User Group: India Chapter Kickoff Meeting
jennaf3
 
PDF
Wondershare PDFelement Pro Crack for MacOS New Version Latest 2025
bashirkhan333g
 
PDF
How to Hire AI Developers_ Step-by-Step Guide in 2025.pdf
DianApps Technologies
 
PPTX
Foundations of Marketo Engage - Powering Campaigns with Marketo Personalization
bbedford2
 
PDF
SAP Firmaya İade ABAB Kodları - ABAB ile yazılmıl hazır kod örneği
Salih Küçük
 
PPTX
Comprehensive Risk Assessment Module for Smarter Risk Management
EHA Soft Solutions
 
PDF
Salesforce Experience Cloud Consultant.pdf
VALiNTRY360
 
PPTX
OpenChain @ OSS NA - In From the Cold: Open Source as Part of Mainstream Soft...
Shane Coughlan
 
PDF
TheFutureIsDynamic-BoxLang witch Luis Majano.pdf
Ortus Solutions, Corp
 
PPTX
In From the Cold: Open Source as Part of Mainstream Software Asset Management
Shane Coughlan
 
PDF
Generic or Specific? Making sensible software design decisions
Bert Jan Schrijver
 
PPTX
iaas vs paas vs saas :choosing your cloud strategy
CloudlayaTechnology
 
PDF
Dipole Tech Innovations – Global IT Solutions for Business Growth
dipoletechi3
 
PDF
Empower Your Tech Vision- Why Businesses Prefer to Hire Remote Developers fro...
logixshapers59
 
Technical-Careers-Roadmap-in-Software-Market.pdf
Hussein Ali
 
MiniTool Power Data Recovery 8.8 With Crack New Latest 2025
bashirkhan333g
 
Agentic Automation Journey Series Day 2 – Prompt Engineering for UiPath Agents
klpathrudu
 
Milwaukee Marketo User Group - Summer Road Trip: Mapping and Personalizing Yo...
bbedford2
 
Open Chain Q2 Steering Committee Meeting - 2025-06-25
Shane Coughlan
 
Coefficient of Variance in IBM SPSS Statistics Version 31.pptx
Version 1 Analytics
 
AEM User Group: India Chapter Kickoff Meeting
jennaf3
 
Wondershare PDFelement Pro Crack for MacOS New Version Latest 2025
bashirkhan333g
 
How to Hire AI Developers_ Step-by-Step Guide in 2025.pdf
DianApps Technologies
 
Foundations of Marketo Engage - Powering Campaigns with Marketo Personalization
bbedford2
 
SAP Firmaya İade ABAB Kodları - ABAB ile yazılmıl hazır kod örneği
Salih Küçük
 
Comprehensive Risk Assessment Module for Smarter Risk Management
EHA Soft Solutions
 
Salesforce Experience Cloud Consultant.pdf
VALiNTRY360
 
OpenChain @ OSS NA - In From the Cold: Open Source as Part of Mainstream Soft...
Shane Coughlan
 
TheFutureIsDynamic-BoxLang witch Luis Majano.pdf
Ortus Solutions, Corp
 
In From the Cold: Open Source as Part of Mainstream Software Asset Management
Shane Coughlan
 
Generic or Specific? Making sensible software design decisions
Bert Jan Schrijver
 
iaas vs paas vs saas :choosing your cloud strategy
CloudlayaTechnology
 
Dipole Tech Innovations – Global IT Solutions for Business Growth
dipoletechi3
 
Empower Your Tech Vision- Why Businesses Prefer to Hire Remote Developers fro...
logixshapers59
 

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.