Skip to content

1.0.0

Compare
Choose a tag to compare
@thibaultcha thibaultcha released this 27 Jul 23:45
· 180 commits to master since this release
1.0.0

⚠️ This release contains breaking changes. The library has been rewritten to greatly increase performance, usability and maintanability. The result is very pleasant and eleguant: we now offer 2 modules, one "single host", compatible with PUC Lua 5.1/5.2, and a "cluster" module, greatly optimized and only compatible with OpenResty.

Changed
  • New single host cassandra module, able to connect to a single Cassandra node.
  • New cluster resty.cassandra.cluster module, which leverages the single host module and is able to efficiently deal with a multi-nodes Cassandra cluster.
  • No more tables as errors. All errors returned by those modules are now strings.
  • Some considerable performance improvements compared to the previous versions: according to the benchmarks I ran while writing this new implementation (on a late 2013 Macbook Pro), this new version allows up to 10k q/sec compared to 2k q/s with its old version. I plan on making those benchmarks available publicly in the near future.
Added
  • Support for named arguments when binding query parameters (binary protocol v3).
  • Support for client-side timestamps (binary protocol v3).
  • Support for query tracing.
  • New "datacenter-aware round robin" load balancing policy. This policy will prioritize nodes from the local datacenter in multi-DC setups.
  • A much more complete and reliable test suite (yay!).
  • A more complete documentation, including the available policies and better usage examples.