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

2019-04-05 06:55发布

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!

3条回答
神经病院院长
2楼-- · 2019-04-05 07:03

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.

查看更多
倾城 Initia
3楼-- · 2019-04-05 07:12

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.

查看更多
一纸荒年 Trace。
4楼-- · 2019-04-05 07:23

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

查看更多
登录 后发表回答