For Cassandra kundera.client.lookup.class options

我怕爱的太早我们不能终老 提交于 2019-12-12 05:36:04

问题


In order to configure kundera for Cassandra, I notice there are 3 possible options for kundera.client.lookup.class as below

  1. com.impetus.client.cassandra.pelops.PelopsClientFactory
  2. com.impetus.kundera.client.cassandra.dsdriver.DSClientFactory
  3. 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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!