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 3.8 or later |
|||
TypeScript |
Node.js 18 or later |
|||
Java |
Java 17 or later (21 recommended) |
Available drivers
DataStax offers the following officially-supported drivers for Astra DB Serverless:
Language | Driver | Version | Documentation | |
---|---|---|---|---|
Python |
||||
Node.js |
||||
Java |
||||
C++ |
||||
C# |
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.
See also
-
Get started with the Astra DevOps API (HTTP and limited client support)
-
Get started with the Data API (HTTP and clients)
-
CQL (CQL shell, clients, and drivers)