DataStax drivers for Astra DB Classic

Before using the DataStax driver, review the Best practices for DataStax drivers to understand the rules and recommendations for improving performance and minimizing resource utilization in applications that use a DataStax driver.

If possible, upgrade to the latest native driver.

For more details about supported software, see the DataStax Support Policy.

Use one of the following DataStax drivers to connect to your DataStax Astra DB database. Choose the DataStax driver for your preferred programming language:

Upgrade your driver to a compatible version to connect to DataStax Astra DB databases. For more information, see the DataStax Driver Matrix.

Before using the DataStax drivers, review the Best practices for DataStax drivers to understand the rules and recommendations for improving performance and minimizing resource utilization in applications that use DataStax drivers.

The following table offers a complete view of our Astra DB drivers, their supported versions, and specifications. For details about supported versions, see Version Compatibility.

Driver options Drivers and their supported versions Specifications

Cloud (gRPC)

Go*
Java*
Node.js*
Rust*
* all versions

Interacts with Astra via CQL and gRPC APIs.
Without driver updates, you can query CQL from any source. This API uses a token and endpoint to connect to Astra DB.

Native

C#, 3.17 or greater
C++, 2.14 or greater
Java, 3.11 or greater for 3.x series or Java 4.6 or greater for 4.x series
Node.js, 4.4 or greater
Python, 3.25 or greater

Actively maintained by DataStax and has built-in support.
Specify the secure connect bundle ZIP to connect to Astra DB.

Legacy

PHP
Ruby

Legacy drivers were developed for Apache Cassandra™.
To connect to Astra DB, specify your Secure Connect Bundle (SCB) details, such as the token and userID.

Alternatively, you can use the SSL-related files, such as the ca.cert, cert, and key, and the port from the cqlshrc file.

Ruby and PHP are not actively maintained and are in maintenance mode.

For new projects on Astra DB, use a Cloud or Native driver.

Legacy drivers should be used only if migrating an existing Cassandra application developed with a Legacy driver to Astra DB.

DataStax recommends using the unified DataStax drivers. See this blog post for more information. You can also use the DataStax Enterprise (DSE) drivers, which exposes the same API for connecting to Cassandra databases.

CQL-Proxy

DataStax CQL Proxy simplifies connecting to Astra DB without having to change your Cassandra driver, driver version, and/or framework (springdata, lagom, akka-persistence-cassandra, quarkus, etc.). This new open source tool securely forwards your application’s CQL traffic to an appropriate database service. CQL Proxy auto-discovers and auto-configures communication with Astra DB.

If you are using a driver for an unsupported language, consider using CQL-proxy. The cql-proxy sidecar enables unsupported CQL drivers to work with DataStax Astra.

Was this helpful?

Give Feedback

How can we improve the documentation?

© 2024 DataStax | Privacy policy | Terms of use

Apache, Apache Cassandra, Cassandra, Apache Tomcat, Tomcat, Apache Lucene, Apache Solr, Apache Hadoop, Hadoop, Apache Pulsar, Pulsar, Apache Spark, Spark, Apache TinkerPop, TinkerPop, Apache Kafka and Kafka are either registered trademarks or trademarks of the Apache Software Foundation or its subsidiaries in Canada, the United States and/or other countries. Kubernetes is the registered trademark of the Linux Foundation.

General Inquiries: +1 (650) 389-6000, info@datastax.com