thibaultcha / lua-cassandra

Pure Lua driver for Apache Cassandra
https://thibaultcha.github.io/lua-cassandra
Other
98 stars 35 forks source link

Planing to migrate from driver cassandra to lua-cassandra #99

Closed leandromoreira closed 7 years ago

leandromoreira commented 7 years ago

Since the cassandra driver is not in active development we're planning to move on to this 🥇 awesome project.

I would like to know how different the API is from cassandra? socket options and client

thibaultcha commented 7 years ago

Hi,

Glad to hear! The API for the single module is pretty much the same, but the usage of the clustering module differs a bit more, especially with the necessity to store the cluster instance as a local upvalue. Everything is documented online:

https://thibaultcha.github.io/lua-cassandra/

Depending on your cluster, you might want to look at the different load balancing policies and the desired level of consistency too.

leandromoreira commented 7 years ago

Thank you @thibaultcha, I'll be posting here any issues or advice for anyone in the same situation.

thibaultcha commented 7 years ago

FYI, these days work is being done on the refactor/perf+style branch and will likely result in a more friendly cluster interface (I'd like to avoid the need for users to cache the instance themselves in an upvalue). But this is not before a while.

thibaultcha commented 7 years ago

Let's now close this, if you have further questions, feel free to open another issue.

leandromoreira commented 7 years ago

We postpone but we'll do it this quarter! I'll keep this up to date, thanks.

rafatio commented 7 years ago

Hi @thibaultcha, just a sanity check related to this migration, there isn't setkeepalive function for cluster module, can I assume that the coordinator does that by default?

thibaultcha commented 7 years ago

@rafatio Yes indeed!

rafatio commented 7 years ago

@thibaultcha nice :) Testing the cluster driver we are having some could not refresh cluster: no host details for and no host details for. Is those errors usual or there is something wrong?