问题
In order to configure kundera for Cassandra, I notice there are 3 possible options for kundera.client.lookup.class as below
- com.impetus.client.cassandra.pelops.PelopsClientFactory
- com.impetus.kundera.client.cassandra.dsdriver.DSClientFactory
- com.impetus.client.cassandra.thrift.ThriftClientFactory
I am not sure of the Pros and Cons of the above 3 and hence not sure which one to use. Please help me decide
回答1:
I suggest you to use com.impetus.client.cassandra.thrift.ThriftClientFactory
. It is the implementation using just Cassandra's thrift api.
PelopsClient
is not in active development.
DSClient
is built over datastax driver of cassandra.
There is no real advantage of using either DSClient
or ThriftClient
.
回答2:
After further research, I found the following
Don't use PelopsClient as its not in active development as mentioned by @karthik , but more importantly because of the issue reported here
Data Stax Driver is better than thrift client as it over comes few limitations of thrift and they use a different binary protocol specific to cassandra which gives a better performance. Refer Datastax java driver support for Cassandra using Kundera
来源:https://stackoverflow.com/questions/34382930/for-cassandra-kundera-client-lookup-class-options