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 |
||||
TypeScript |
||||
Java |
Available drivers
The following official drivers are available.
Language | Driver | |||
---|---|---|---|---|
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 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.