4

Hey I am new to Cassandra and I am friendly with Spring jdbc-template.

Can anyone please explain difference between both of them? Also can you suggest which one is good to use ?

thanks.

1 Answer 1

6

spring-data-cassandra uses datastax's java-driver, so the decision to be made is really whether or not you need the functionality of spring-data.

Some features from spring data that may be useful for you (documented here):

  1. spring xml configuration for configuring your Cluster instance (especially useful if you are already using spring).
  2. object mapping component.

The java-driver also has a mapping component as well that is worth exploring.

In my opinion if you are already using spring, it is worth looking into spring-data-cassandra. Otherwise, it would be good to start off with just the datastax java-driver.

Sign up to request clarification or add additional context in comments.

2 Comments

Good answer! I have seen lots of questions here about Spring with Cassandra, so this is good info to get out there.
Hey Andy thanks for answer, Its really helpful. I already implement the Spring-data-Cassandra but having one small error. Can you you please take look at it? here

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.