Cassandra architecture
Upcoming SlideShare
Loading in...5
×
 

Cassandra architecture

on

  • 11,828 views

Compare PostgreSQL at scale with Cassandra. Show

Compare PostgreSQL at scale with Cassandra. Show

Statistics

Views

Total Views
11,828
Views on SlideShare
9,841
Embed Views
1,987

Actions

Likes
11
Downloads
167
Comments
1

8 Embeds 1,987

http://www.nosqldatabases.com 1971
http://paper.li 6
http://www.slideshare.net 2
url_unknown 2
http://translate.googleusercontent.com 2
http://www.linkedin.com 2
http://twitter.com 1
http://www.mefeedia.com 1
More...

Accessibility

Categories

Upload Details

Uploaded via as Microsoft PowerPoint

Usage Rights

© All Rights Reserved

Report content

Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate.

Cancel
  • Full Name Full Name Comment goes here.
    Are you sure you want to
    Your message goes here
    Processing…
  • apples vs oranges
    Are you sure you want to
    Your message goes here
    Processing…
Post Comment
Edit your comment

Cassandra architecture Cassandra architecture Presentation Transcript

  • Comparing Cassandra to PostgreSQL deployed   think different at scale Jake Luciani datastax.com @tjake
  • PostgreSQL - Example at Scale
  • Cassandra at Scale View slide
  • Cassandra - BigTable and Dynamo
      • Peer to peer (master-less)
      • Tunable Consistency
      • Nested Tree data model
      • Pluggable replication/sorting
      • Low latency 
      • Tight integration with Hadoop Stack (+Hive)
      • Major adoption and development
      • 0.8 Offers CQL (SQL like query interface)
    •   
    View slide
  • Cassandra's Data Model
  • Cassandra - Partitioning
  • Cassandra - Scale Up / Scale Down
  • Cassandra - Replication
  • Tunable Consistency - per read/write
      • ONE - Return once one replica responds success
      • QUORUM - Return once RF/2 + 1 replicas respond
      • ALL - Return when all replicas respond
    • Want async replication?
    •      Write = ONE, Read = ONE (Performance++)
    • Want Strong consistency? 
    •      Read = QUORUM, Write = QUORUM 
    • Want Strong Consistency per DataCenter?
    •      Read = LOCAL_QUORUM, write LOCAL_QUORUM
  • NoSQL -> MoSQL
    • SQL : create table foo(key int not null,  bar varchar(80) )
    • CQL: create columnfamily foo
    • SQL: insert into table foo values (1,"hello")
    • CQL: none
    • SQL: update foo set bar = "world" where key = 1
    • CQL: update foo set bar = "world" where key = 1
    • SQL: create index baridx on foo(bar);
    • CQL: create index on foo('bar');
    • SQL: select * from foo where bar = 'world'
    • CQL: select * from foo where bar = 'world'