0
Comparing Cassandra to PostgreSQL deployed   think different at scale Jake Luciani datastax.com @tjake
PostgreSQL - Example at Scale
Cassandra at Scale
Cassandra - BigTable and Dynamo <ul><ul><li>Peer to peer (master-less) </li></ul></ul><ul><ul><li>Tunable Consistency </li...
Cassandra's Data Model
Cassandra - Partitioning
Cassandra - Scale Up / Scale Down
Cassandra - Replication
Tunable Consistency - per read/write <ul><ul><li>ONE - Return once one replica responds success </li></ul></ul><ul><ul><li...
NoSQL -> MoSQL <ul><li>SQL : create table foo(key int not null,  bar varchar(80) ) </li></ul><ul><li>CQL: create columnfam...
Upcoming SlideShare
Loading in...5
×

Cassandra architecture

11,698

Published on

Compare PostgreSQL at scale with Cassandra. Show

Published in: Technology
1 Comment
11 Likes
Statistics
Notes
  • apples vs oranges
       Reply 
    Are you sure you want to  Yes  No
    Your message goes here
No Downloads
Views
Total Views
11,698
On Slideshare
0
From Embeds
0
Number of Embeds
2
Actions
Shares
0
Downloads
207
Comments
1
Likes
11
Embeds 0
No embeds

No notes for slide

Transcript of "Cassandra architecture"

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

    Clipping is a handy way to collect important slides you want to go back to later.

×