Compare connection methods

There are several ways to connect to your Astra DB Serverless database programmatically, including HTTP, clients, drivers, Astra CLI, and more.

Differences between clients and drivers

Use clients to interact with the Data API, including CQL commands for tables, as well as some DevOps API functions, such as creating databases and keyspaces.

Drivers are exclusively for CQL.

DataStax recommends clients for most applications. Use a CQL driver only for legacy applications or some CQL functions that aren’t supported by the Data API.

Available clients

DataStax offers the following officially-supported clients:

Language Client Version Dependency Documentation

python Python

astrapy

Latest release

Python 3.8 or later

Get started with the Data API

typescript TypeScript

astra-db-ts

Latest release

Node.js 18 or later

Get started with the Data API

java Java

astra-db-java

Latest release

Java 17 or later (21 recommended)

Get started with the Data API

Available drivers

DataStax offers the following officially-supported drivers for Astra DB Serverless:

Language Driver Version Documentation

python Python

python-driver

Latest release

Connect

Quickstart

nodejs Node.js

nodejs-driver

Latest release

Connect

Quickstart

java Java

cassandra-java-driver

Latest release

Connect

Quickstart

cpp C++

cpp-driver

Latest release

Connect

Quickstart

csharp C#

csharp-driver

Latest release

Connect

Quickstart

Use CQL Proxy to connect with an unsupported driver

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

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 Astra DB Serverless.

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