Hi everyone!
I have just released v1.0.0 of lua-cassandra, a pure Lua client library
for Apache Cassandra:
https://github.com/thibaultCha/lua-cassandra
I have been working on this version for quite some time now, and am
finally satisfied enough with the result to share it. I believe it is a
much more complete alternative than lua-resty-cassandra
(https://github.com/jbochi/lua-resty-cassandra) to which I originally
contributed to, until its author stopped being responsive enough for our
needs at my daily job (about a year ago).
In comparison with lua-resty-cassandra, the highlights of this module are:
* Support for multi-nodes Cassandra clusters
* Configurable load balancing, retry, and reconnection policies (we
maintain a state of the cluster and avoid unhealthy nodes)
* Support for SSL connections
* Support for authentication (PlainTextAuthenticator)
* Support for version 3 of the binary protocol, this allows for more
advanced querying options (version 4 will be added in the near future)
* An easier, more intuitive and Lua-like API
* It is more optimized, especially for OpenResty (my benchmarks show up
to 10k q/s on a 3 nodes C* cluster on my MBP)
* It has a more complete test suite, for both Lua and OpenResty with
Test::Nginx
* A more complete documentation including concrete usage examples
---
The full 1.0.0 changelog is available here:
https://github.com/thibaultCha/lua-cassandra/releases/tag/1.0.0
And this library's documentation and examples are hosted there:
https://thibaultcha.github.io/lua-cassandra/manual/README.md.html
I hope this benefits some of you out there, please know that feedback is
appreciated!
Cheers,
Thibault