Start only whats needed and Spring Configuration Integration
Start Clients
only when needed
Astra offers a wide variety of Apis and functions. (see Architecture for details of ports). Previous the SDK initialized all connections for you as long as you provided enough parameters. This behavior leads to. usage of resources not in used and port openings that are not really used.
With the builders you would have to enable functions explicitely:
AstraClient.builder()
.enableCql()
.enableGrpc()
.enableDownloadSecureConnectBundle()
With the Spring configuration file you would have to also enable
astra:
api:
application-token: "AstraCS:mytoken..."
database-region: eu-west-1
grpc:
enabled: true
...
Merge and fined grained configuration of the driver with Spring config
Java Driver used to read application.conf
configuration file to load fine grained settings. You can all define any driver key in astra.cql.driver-config
.
Here is a sample:
astra:
api:
application-token: change_me
database-id: change_me
database-region: change_me
grpc:
enabled: true
cql:
enabled: true
download-scb:
enabled: true
metrics:
enabled: false
driver-config:
basic:
request:
timeout: 5s
consistency: LOCAL_QUORUM
page-size: 5000
session-keyspace: feeds_reader
advanced:
connection:
init-query-timeout: 5s
set-keyspace-timeout: 5s
control-connection.timeout: 5s
Release of constraint on DatabaseTierType
The devops API database will retrieve the tier type of your instances. With multiple updates over the months we changed from an enum to a String.