What is the best api/library for Java to use Cassa

2019-04-05 07:18发布

问题:

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!

回答1:

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.



回答2:

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.



回答3:

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