The ScyllaDB team is pleased to announce nodejs-rs-driver, a new driver for ScyllaDB for Node.js with support for Typescript. This driver is an overlay over the ScyllaDB Rust Driver, with the interface based on the DataStax Node.js Driver. Although optimised for ScyllaDB, the driver is also compatible with Apache Cassandra®.
Current feature support
As of this release:
- Simple, Prepared, and Batch statements
- Asynchronous IO, parallel execution, request pipelining
- Token-aware routing
- Shard-aware and Tablet-aware routing (specific to ScyllaDB)
- CQL binary protocol version 4
- Works with any cluster size
- Both promise and callback-based API
- Row streaming and pipes
- Built-in TypeScript support
- Password authentication
- Configurable load balancing policies
- Error handling, based on the Rust driver
Features that are planned for the driver to become production ready:
- Configurable retry policies
- Faster performance, compared to DataStax Node.js driver
- SSL support
- Migration guide from the DataStax driver
For other planned features, see our Milestones
Instalation
You can install the driver through npm:
npm i scylladb-driver-alpha
https://www.npmjs.com/package/scylladb-driver-alpha
The current version of the driver is 0.3.0
(Note that this package name is temporary and may change in the future.)
The current version is not yet production-ready, and only linux x86_64 architecture is supported, with planned support for other architectures in the future. Support for macOS and ARM architecture is planned in the next release.