Cassendra
Cassendra
CREATED BY
NIKHIL ERANDE
GUIDENCE BY
KAVITA MAHAJAN MADAM
OVERVIEW
1.What is Casseandra?
2.History
3.Architecture
amazon.com
\ /
facebook
CASSANDRA ARCHITECTURE
Cassandra was designed with the understanding that
system/hardware failures can and do occur
Peer-to-peer, distributed system
All nodes the same
Data partitioned among all nodes in the cluster
Custom data replication to ensure fault tolerance
Read/Write-anywhere design
ARCHITECHTURE OVERVIEW
o Each node communicates with each other through the Gossip protocol, which
exchanges information across the cluster every second
A commit log is used on each node to capture write activity. Data durability
is assured
Data also written to an in-memory structure (memtable) and then to disk
indexed as well
Portfolio Keyspace
1 1
4 2
Double Throughput
Capabilities
2 3
NO SINGLE POINT OF FAILURE
All nodes the same
Customized replication affords tunable data
redundancy
Writes Reads
o Any o One
o one o Quorum
o Quorom o Local_Quorum
o Local_Quorum o Each_Quorum
o Each_Quorum o All
all
DATA COMPRESSION
Uses Google’s Snappy data compression
algorithm
DELETE
SELECT *
FROM USERS
WHERE STATE = 'TX';
WHO’S USING CASSANDRA?
http://www.datastax.com/cassandrausers#all
USE-CASES NETFLIX
Manage subscriber interactions with
downloaded movies
Need to handle distributed databases all
over the world (40 countries)
Need better TCO than Oracle