SlideShare uma empresa Scribd logo
1 de 30
Baixar para ler offline
A Quick Look At
Bryan Williams
No SQL
History
Created at Facebook in 2007
Open Sourced in 2008
Currently version 0.6.6
Version 0.7 in Beta 3
CAP Theorem
Consistency
Availability
Partition Tolerance
Scaling
Vertical
More RAM
Faster CPU
Faster HD
Horizontal
More Servers
Shared Load
Features
Decentralized (peer to peer)
Elastic
Shared Nothing Architecture
Tuneable Consistency
Always Writeable
Optimized for excellent throughput on
writes
Influences
BigTable
column family data model
High Throughput Writes
Dynamo
Hight availabilty
Scalability
Eventual Consistency (Tuneable)
Data Model
Cluster
Keyspace
Column Families
Super Columns
Columns
Cassandra’s CLI
(Command Line Interface)
Secondary Indexes
Use another column family with reverse
lookup
Specify Metadata on the Column Family
and set the index name and type
Support coming in 0.7
Writes
Commit Logs
Memtable
SSTable
Hinted Handoff
Bloom Filter
Tombstone
Partitioning
Random Partitioner
Order Preserving Partitioner
Collating Order Preserving Partitioner
Byte Order Partitioner
Snitches
Simple Snitch
Property File Snitch
Column Sorting
AsciiType
BytesType
LexicalUUIDType
LongType
IntegerType
TimeUUIDType
UTF8Type
Custom
Replication Factor
Set per keyspace
Specified in servers config file
Indicates how many nodes you want to
store a value in on every write
Consistency Level
Set per query
Specified by the client
Indicates how many nodes the client has
decided must respond for a successful
read/write
Based on replication factor, not on the
number of nodes in the system
Write Consistency
Levels
Zero: No response required
Any: 1st response from any node
One: 1st response (counting Hints)
quorum: n/2 + 1
All: All replicas must respond
Read Consistency
Levels
One: The first response is taken
Quorum: N/2 + 1 replicas are required
to respond
All: All replicas are required to
respond
Gossiper
Protocol used for intra-ring
communication
Runs every second on a timer
Used by hinted-handoff
Anti-Entropy
Replica synchronization mechanism
Ensures data on different nodes are up
to date
merkle trees
Happens after each update
Read Repair
When a read operation found
inconsistent data in different nodes
Timestamp for all replicas are checked
all replicas are updated based on most
recent value
Weak vs Strong consistency entails
whether Read Repair happens before or
after returning results
Replication
Strategies
Simple Strategy
Old Network Topology Strategy
Network Topology Strategy
Java Client
Options
Thrift : http://incubator.apache.org/thrift
Avro : http://avro.apache.org
Hector : https://github.com/rantav/hector
Pelops : http://code.google.com/p/pelops
Kundera : http://code.google.com/p/kundera
More : http://wiki.apache.org/cassandra/ClientOptions
Cassandra: The Definitive Guide
	
  Author:	
  Eben	
  Hewitt
	
  Publisher:	
  Oreilly
	
  Release:	
  Late	
  November
Thanks For Coming
Bryan Williams
Email : Bwilliams@integrallis.com
Twitter : @BryWilliams
LINKS
http://cassandra.apache.org
http://wiki.apache.org
https://github.com/ericflo/twissandra

Mais conteúdo relacionado

Mais procurados (6)

Process synchronization
Process synchronizationProcess synchronization
Process synchronization
 
Streaming benchmark
Streaming benchmarkStreaming benchmark
Streaming benchmark
 
Multiprocessing -Interprocessing communication and process sunchronization,se...
Multiprocessing -Interprocessing communication and process sunchronization,se...Multiprocessing -Interprocessing communication and process sunchronization,se...
Multiprocessing -Interprocessing communication and process sunchronization,se...
 
IPC
IPCIPC
IPC
 
Replication in the Wild
Replication in the WildReplication in the Wild
Replication in the Wild
 
Streaming Benchmark
Streaming BenchmarkStreaming Benchmark
Streaming Benchmark
 

Destaque (7)

Indo Teak Design
Indo Teak DesignIndo Teak Design
Indo Teak Design
 
Urratsbat Programme 2014
Urratsbat Programme 2014Urratsbat Programme 2014
Urratsbat Programme 2014
 
Indo Teak Design
Indo Teak DesignIndo Teak Design
Indo Teak Design
 
Criterios de validez en la investigación
Criterios de validez en la investigaciónCriterios de validez en la investigación
Criterios de validez en la investigación
 
Gangguan perkembangan
Gangguan perkembanganGangguan perkembangan
Gangguan perkembangan
 
贏 Win hing asian grocery 興
贏 Win hing asian grocery 興贏 Win hing asian grocery 興
贏 Win hing asian grocery 興
 
Bar Camp Charleston 2010-11-13 Drupal - Which Modules to Use (Tom Sliker)
Bar Camp Charleston 2010-11-13  Drupal - Which Modules to Use (Tom Sliker)Bar Camp Charleston 2010-11-13  Drupal - Which Modules to Use (Tom Sliker)
Bar Camp Charleston 2010-11-13 Drupal - Which Modules to Use (Tom Sliker)
 

Semelhante a A Quick Look At Cassandra

Design Patterns For Distributed NO-reational databases
Design Patterns For Distributed NO-reational databasesDesign Patterns For Distributed NO-reational databases
Design Patterns For Distributed NO-reational databases
lovingprince58
 
Handling Data in Mega Scale Web Systems
Handling Data in Mega Scale Web SystemsHandling Data in Mega Scale Web Systems
Handling Data in Mega Scale Web Systems
Vineet Gupta
 
Spinnaker VLDB 2011
Spinnaker VLDB 2011Spinnaker VLDB 2011
Spinnaker VLDB 2011
sandeep_tata
 
Lecture-04-Principles of data management.pdf
Lecture-04-Principles of data management.pdfLecture-04-Principles of data management.pdf
Lecture-04-Principles of data management.pdf
manimozhi98
 
Zookeeper big sonata
Zookeeper  big sonataZookeeper  big sonata
Zookeeper big sonata
Anh Le
 
Distributed Systems: scalability and high availability
Distributed Systems: scalability and high availabilityDistributed Systems: scalability and high availability
Distributed Systems: scalability and high availability
Renato Lucindo
 
Operating System 4 1193308760782240 2
Operating System 4 1193308760782240 2Operating System 4 1193308760782240 2
Operating System 4 1193308760782240 2
mona_hakmy
 
Operating System 4
Operating System 4Operating System 4
Operating System 4
tech2click
 
NOSQL and Cassandra
NOSQL and CassandraNOSQL and Cassandra
NOSQL and Cassandra
rantav
 

Semelhante a A Quick Look At Cassandra (20)

Design Patterns For Distributed NO-reational databases
Design Patterns For Distributed NO-reational databasesDesign Patterns For Distributed NO-reational databases
Design Patterns For Distributed NO-reational databases
 
Design Patterns for Distributed Non-Relational Databases
Design Patterns for Distributed Non-Relational DatabasesDesign Patterns for Distributed Non-Relational Databases
Design Patterns for Distributed Non-Relational Databases
 
Handling Data in Mega Scale Web Systems
Handling Data in Mega Scale Web SystemsHandling Data in Mega Scale Web Systems
Handling Data in Mega Scale Web Systems
 
Spinnaker VLDB 2011
Spinnaker VLDB 2011Spinnaker VLDB 2011
Spinnaker VLDB 2011
 
Cassandra
CassandraCassandra
Cassandra
 
Lecture-04-Principles of data management.pdf
Lecture-04-Principles of data management.pdfLecture-04-Principles of data management.pdf
Lecture-04-Principles of data management.pdf
 
Cassandra
CassandraCassandra
Cassandra
 
Dynamo db
Dynamo dbDynamo db
Dynamo db
 
Zookeeper big sonata
Zookeeper  big sonataZookeeper  big sonata
Zookeeper big sonata
 
Distributed Systems: scalability and high availability
Distributed Systems: scalability and high availabilityDistributed Systems: scalability and high availability
Distributed Systems: scalability and high availability
 
tittle
tittletittle
tittle
 
Basics of Distributed Systems - Distributed Storage
Basics of Distributed Systems - Distributed StorageBasics of Distributed Systems - Distributed Storage
Basics of Distributed Systems - Distributed Storage
 
Big Data Streams Architectures. Why? What? How?
Big Data Streams Architectures. Why? What? How?Big Data Streams Architectures. Why? What? How?
Big Data Streams Architectures. Why? What? How?
 
Operating System 4 1193308760782240 2
Operating System 4 1193308760782240 2Operating System 4 1193308760782240 2
Operating System 4 1193308760782240 2
 
Operating System 4
Operating System 4Operating System 4
Operating System 4
 
About "Apache Cassandra"
About "Apache Cassandra"About "Apache Cassandra"
About "Apache Cassandra"
 
NOSQL and Cassandra
NOSQL and CassandraNOSQL and Cassandra
NOSQL and Cassandra
 
Parallel Processing (Part 2)
Parallel Processing (Part 2)Parallel Processing (Part 2)
Parallel Processing (Part 2)
 
No sql (not only sql)
No sql                 (not only sql)No sql                 (not only sql)
No sql (not only sql)
 
Nosql availability & integrity
Nosql availability & integrityNosql availability & integrity
Nosql availability & integrity
 

Último

Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers:  A Deep Dive into Serverless Spatial Data and FMECloud Frontiers:  A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Safe Software
 
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
?#DUbAI#??##{{(☎️+971_581248768%)**%*]'#abortion pills for sale in dubai@
 

Último (20)

Scaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organizationScaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organization
 
Boost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdfBoost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdf
 
2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...
 
Artificial Intelligence Chap.5 : Uncertainty
Artificial Intelligence Chap.5 : UncertaintyArtificial Intelligence Chap.5 : Uncertainty
Artificial Intelligence Chap.5 : Uncertainty
 
Manulife - Insurer Innovation Award 2024
Manulife - Insurer Innovation Award 2024Manulife - Insurer Innovation Award 2024
Manulife - Insurer Innovation Award 2024
 
🐬 The future of MySQL is Postgres 🐘
🐬  The future of MySQL is Postgres   🐘🐬  The future of MySQL is Postgres   🐘
🐬 The future of MySQL is Postgres 🐘
 
Partners Life - Insurer Innovation Award 2024
Partners Life - Insurer Innovation Award 2024Partners Life - Insurer Innovation Award 2024
Partners Life - Insurer Innovation Award 2024
 
presentation ICT roal in 21st century education
presentation ICT roal in 21st century educationpresentation ICT roal in 21st century education
presentation ICT roal in 21st century education
 
Real Time Object Detection Using Open CV
Real Time Object Detection Using Open CVReal Time Object Detection Using Open CV
Real Time Object Detection Using Open CV
 
Repurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost Saving
Repurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost SavingRepurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost Saving
Repurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost Saving
 
AWS Community Day CPH - Three problems of Terraform
AWS Community Day CPH - Three problems of TerraformAWS Community Day CPH - Three problems of Terraform
AWS Community Day CPH - Three problems of Terraform
 
A Year of the Servo Reboot: Where Are We Now?
A Year of the Servo Reboot: Where Are We Now?A Year of the Servo Reboot: Where Are We Now?
A Year of the Servo Reboot: Where Are We Now?
 
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemkeProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
 
Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...
Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...
Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...
 
Tata AIG General Insurance Company - Insurer Innovation Award 2024
Tata AIG General Insurance Company - Insurer Innovation Award 2024Tata AIG General Insurance Company - Insurer Innovation Award 2024
Tata AIG General Insurance Company - Insurer Innovation Award 2024
 
TrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc Webinar - Stay Ahead of US State Data Privacy Law DevelopmentsTrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
 
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
 
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers:  A Deep Dive into Serverless Spatial Data and FMECloud Frontiers:  A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
 
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
 
Workshop - Best of Both Worlds_ Combine KG and Vector search for enhanced R...
Workshop - Best of Both Worlds_ Combine  KG and Vector search for  enhanced R...Workshop - Best of Both Worlds_ Combine  KG and Vector search for  enhanced R...
Workshop - Best of Both Worlds_ Combine KG and Vector search for enhanced R...
 

A Quick Look At Cassandra