Over a million developers have joined DZone.
{{announcement.body}}
{{announcement.title}}

Creating Your First Java Application with Cassandra

DZone's Guide to

Creating Your First Java Application with Cassandra

· Java Zone
Free Resource

Microservices! They are everywhere, or at least, the term is. When should you use a microservice architecture? What factors should be considered when making that decision? Do the benefits outweigh the costs? Why is everyone so excited about them, anyway?  Brought to you in partnership with IBM.

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.

Discover how the Watson team is further developing SDKs in Java, Node.js, Python, iOS, and Android to access these services and make programming easy. Brought to you in partnership with IBM.

Topics:

Published at DZone with permission of Brian O' Neill, DZone MVB. See the original article here.

Opinions expressed by DZone contributors are their own.

THE DZONE NEWSLETTER

Dev Resources & Solutions Straight to Your Inbox

Thanks for subscribing!

Awesome! Check your inbox to verify your email so you can start receiving the latest in tech news and resources.

X

{{ parent.title || parent.header.title}}

{{ parent.tldr }}

{{ parent.urlSource.name }}