Successfully reported this slideshow.
We use your LinkedIn profile and activity data to personalize ads and to show you more relevant ads. You can change your ad preferences anytime.

Introduction to Apache Cassandra

4,404 views

Published on

Published in: Technology

Introduction to Apache Cassandra

  1. 1. Cassandra<br />A highly scalable, eventually consistent, distributed, structured key-value store.<br />
  2. 2. The cursed<br />oracle of Troy.<br />
  3. 3. Structured<br />Key-Value Store<br />
  4. 4. Berkely DB, Memcached, etc<br />Name<br />Value<br />
  5. 5. Cassandra<br />Super Column<br />Super Column<br />Name<br />Column<br />Name<br />Value<br />
  6. 6. Distributed<br />
  7. 7.
  8. 8. Eventually Consistent<br />
  9. 9. Node 1<br />Node 2<br />Node 3<br />Node 4<br />Write<br />
  10. 10. Node 1<br />Node 2<br />Node 3<br />Node 4<br />Read<br />
  11. 11. Node 1<br />Node 2<br />Node 3<br />Node 4<br />Write<br />
  12. 12. Highly Scalable<br />
  13. 13.
  14. 14.
  15. 15. Fault Tolerant<br />
  16. 16.
  17. 17.
  18. 18. Rich Data Model<br />
  19. 19. // Column:<br />{ emailAddress: ‘jill@example.com’ }<br />
  20. 20. // Super Column:<br />homeAddress: {<br /> // Columns:<br /> street: ‘1234 Example St.’,<br /> city: ‘Santa Cruz’,<br /> state: ‘CA’,<br /> zip: ‘91210’<br />}<br />
  21. 21. // Column Family:<br />userProfiles: {<br /> // Rows:<br /> bob2007: {<br /> // Columns:<br /> username: ‘bob2007’,<br /> age: 32,<br /> phone: ‘(818) 555-2345’<br /> },<br />birdHOUSE: {<br /> username: ‘birdHOUSE’,<br /> name: ‘George’,<br /> age: 19<br /> }<br />}<br />
  22. 22. // Super Column Family:<br />addressBook: {<br /> // Rows:<br /> bob2007: {<br /> // Super Columns:<br /> Joe: { email:’joe@example.com’ },<br /> Ted: { street:’123 Jump St.’, phone:’555-1234’ }<br /> }<br />birdHOUSE: {<br /> mom: { birthday:’1953-03-07’, phone:’555-7894’ }<br /> }<br />}<br />
  23. 23. Time for an example.<br />Any questions?<br />

×