Upgrade to Pro — share decks privately, control downloads, hide ads and more …

The future is here with Apache Cassandra 2.0 - ...

The future is here with Apache Cassandra 2.0 - the NoSQL Database by ADAM HATTRELL at Big Data Spain 2013

Apache Cassandra provides a high performance data solution with massive scalability.
Session presented at Big Data Spain 2013 Conference
8th Nov 2013
Kinépolis Madrid
http://www.bigdataspain.org
Event promoted by http://www.paradigmatecnologico.com
Abstract: http://www.bigdataspain.org/2013/conference/the-future-is-here-with-apache-cassandra-2-0-the-nosql-database

Big Data Spain

November 14, 2013
Tweet

More Decks by Big Data Spain

Other Decks in Technology

Transcript

  1. Who am I? • Adam Hattrell  Supported Informix, Cloudscape,

    Entity Analytics, Xwiki, Optim, Infosphere Mashup Hub and Splunk.  First Datastax EMEA Support Engineer. ©2013 DataStax Confidential. Do not distribute without consent. 3
  2. What's new? • Paxos (Lightweight Transactions) • Triggers (Experimental) •

    Improved Compaction • CQL Cursors • Native Drivers ©2013 DataStax Confidential. Do not distribute without consent. 5
  3. Who wins?  Server1 • INSERT INTO USERS (username, email)

    • VALUES ('batman', '[email protected]')  Server2 ©2013 DataStax Confidential. Do not distribute without consent. • 6 • INSERT INTO USERS (username, email) • VALUES ('batman', '[email protected]')
  4. Prepare and Promise ©2013 DataStax Confidential. Do not distribute without

    consent. • 7 TimeUUID, Key TimeUUID, Key TimeUUID, Key Node1 Node2 Node3
  5. Propose and Accept ©2013 DataStax Confidential. Do not distribute without

    consent. • 8 TimeUUID, Key, Value TimeUUID, Key, Value TimeUUID, Key, Value Node1 Node2 Node3
  6. Commit and Ack ©2013 DataStax Confidential. Do not distribute without

    consent. • 9 TimeUUID, Key, Value TimeUUID, Key, Value TimeUUID, Key, Value Node1 Node2 Node3
  7. What's new? • Paxos (Check and Set) • Triggers (Experimental)

    • Improved Compaction • CQL Cursors • Native Drivers ©2013 DataStax Confidential. Do not distribute without consent. 10
  8. Trigger syntax (Experimental) • CREATE TRIGGER <name> ON <table> using

    <classname>; • Class MyTrigger implements ITrigger • {  public Collection<RowMutation> augment(ByteBuffer key, ColumnFamily update)  { • …  } • } ©2013 DataStax Confidential. Do not distribute without consent. 11
  9. What's new? • Paxos (Check and Set) • Triggers (Experimental)

    • Improved Compaction • CQL Cursors • Native Drivers ©2013 DataStax Confidential. Do not distribute without consent. 12
  10. What's new? • Paxos (Check and Set) • Triggers (Experimental)

    • Improved Compaction • CQL Cursors • Native Drivers ©2013 DataStax Confidential. Do not distribute without consent. 16
  11. Old approach • CREATE TABLE timeline (  user_id uuid,

     tweet_id timeuuid,  tweet_author uuid,  tweet_body text,  PRIMARY KEY (user_id, tweet_id));  SELECT *  FROM timeline  WHERE (user_id =:last_key • AND tweet_id > :last_tweet)  OR token(user_id) > token(:last_key)  LIMIT 100 ©2013 DataStax Confidential. Do not distribute without consent. 17
  12. New approach • SELECT * FROM TIMELINE ; ©2013 DataStax

    Confidential. Do not distribute without consent. 18 1-1000000 1-5000 QueryOptions.setFetchSize(int)
  13. What's new? • Paxos (Check and Set) • Triggers (Experimental)

    • Improved Compaction • CQL Cursors • Native Drivers ©2013 DataStax Confidential. Do not distribute without consent. 19
  14. Native Drivers • Asynchronous • Server Notifications • Java, C#,

    Python (other planned) ©2013 DataStax Confidential. Do not distribute without consent. 20