Connection methods comparison

Connect to your Astra DB Serverless database with a client or a CQL driver.

What’s the difference between a client and a driver?

DataStax recommends that you use a client for most applications. However, you should use a driver in the following situations.

  • You have a legacy application that already uses CQL.

  • You need your collections to have a strict schema.

  • You don’t want all fields to be indexed.

If none of these conditions apply to you, use a client.

Available clients

The following official clients are available.

Language Client

python Python

astrapy

Latest release

Connect

Reference

typescript TypeScript

astra-db-ts

Latest release

Connect

Reference

java Java

astra-sdk-java

Latest release

Connect

Reference

Use CQL Proxy to connect with an unsupported driver

DataStax CQL Proxy simplifies connecting to Astra DB Serverless without having to change your 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 auto-discovers and auto-configures communication with Astra DB Serverless.

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