NoSQL Zone is brought to you in partnership with:

Brian has 10+ years of experience as a technology leader and architect in a wide variety of settings from early startups to Fortune 500 companies. With experience delivering SaaS solutions in business intelligence, artificial intelligence and VoIP, his current focus is big data and analytics. Brian leads the Virgil project on Apache Extras, which is a services layer built on Cassandra that provides REST, Map/Reduce, Search and Distributed Processing capabilities. Brian is a DZone MVB and is not an employee of DZone and has posted 59 posts at DZone. You can read more from them at their website. View Full User Profile

Creating Your First Java Application with Cassandra

01.04.2013
| 13040 views |
  • submit to reddit

Looking to kick off 2013 with a fun project to get familiar with Cassandra?  Why don't you build a globally scalable naughty and nice list?  At least, that's what we did in the webinar a few weeks ago. 

If you would like to relive the webinar, Datastax posted the slides and video.

We went through two quick examples using Astyanax and CQL3 to manage Santa's naughty list.  As much as it was a demo of the APIs, it also shows how you can use cqlsh and cassandra-cli to get two perspectives on the data: a logical view via cqlsh and a physical view via cli.  Its important to keep both perspectives in mind if you want to build a scalable app.

You can find the code here:
https://github.com/boneill42/naughty-or-nice

Please let me know if you have any questions, or if I flubbed up on anything.

BTW, Jonathan has a webinar coming up on "What's new in 1.2?"  It should be a good one.

Published at DZone with permission of Brian O' Neill, author and DZone MVB. (source)

(Note: Opinions expressed in this article and its replies are the opinions of their respective authors and not those of DZone, Inc.)