Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What is the best api/library for Java to use Cassandra? [closed]

I'm looking for an API with the following requirements

  1. It's simple to use and is concise. It is not bloated.
  2. Works with Spring way of doing things, or is at least easy to make it work with Spring
  3. Has a Maven repository, preferably it's already in the main repositories
  4. Is production-tested, meaning a fair number of people are using it in production applications.

Help? Thanks!

like image 204
egervari Avatar asked Jul 12 '10 22:07

egervari


3 Answers

Hector and Pelops are, as far as I know, the two that are most widely used (4). I dont think any of the two are mavenized (3). Both should work in a Spring framework environment(2). Your first criteria might be a little bit subjective. I dont find any of these two bloated. You might do, if you do, please tell me.

like image 154
Schildmeijer Avatar answered Sep 23 '22 01:09

Schildmeijer


i know this is an old question but I'd like to point future viewer of the question to Astyanax. It's a very well documented Cassandra API with many examples and support very high level features such as locking and all versions of cql. Astyanax is also Mavenized.

like image 33
Lyuben Todorov Avatar answered Sep 25 '22 01:09

Lyuben Todorov


Kundera is a object-datastore mapping tool for Cassandra, Hbase and MongoDB.

Some of the salient features are:

  • JPA 2.0 compliant.
  • Column/ super column indexing using lucene.
  • Support for entity relationships and JPA queries.
  • Cross-datastore persistence

It's hosted here: https://github.com/impetus-opensource/Kundera

like image 41
Amresh Avatar answered Sep 24 '22 01:09

Amresh