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

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

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

Cb6e6da05b5b943d2691ceefa3381cad?s=128

Big Data Spain

November 14, 2013
Tweet

Transcript

  1. The Future is here with Apache Cassandra Adam Hattrell

  2. Cassandra 2.0, things to know. Adam Hattrell, Senior Support Engineer

  3. 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
  4. Why Cassandra?  Massive Scalability  High Performance  Reliability

    / Availability 4
  5. What's new? • Paxos (Lightweight Transactions) • Triggers (Experimental) •

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

    • VALUES ('batman', 'bruce@wayne.com')  Server2 ©2013 DataStax Confidential. Do not distribute without consent. • 6 • INSERT INTO USERS (username, email) • VALUES ('batman', 'loser@joker.com')
  7. Prepare and Promise ©2013 DataStax Confidential. Do not distribute without

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

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

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

    • Improved Compaction • CQL Cursors • Native Drivers ©2013 DataStax Confidential. Do not distribute without consent. 10
  11. 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
  12. What's new? • Paxos (Check and Set) • Triggers (Experimental)

    • Improved Compaction • CQL Cursors • Native Drivers ©2013 DataStax Confidential. Do not distribute without consent. 12
  13. Healthy Leveled Compaction ©2013 DataStax Confidential. Do not distribute without

    consent. 13
  14. Distressed Leveled Compaction ©2013 DataStax Confidential. Do not distribute without

    consent. 14
  15. The Solution ©2013 DataStax Confidential. Do not distribute without consent.

    15
  16. What's new? • Paxos (Check and Set) • Triggers (Experimental)

    • Improved Compaction • CQL Cursors • Native Drivers ©2013 DataStax Confidential. Do not distribute without consent. 16
  17. 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
  18. New approach • SELECT * FROM TIMELINE ; ©2013 DataStax

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

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

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

    Do not distribute without consent. 21
  22. None