git clone https://github.com/udhos/keyspaces-demo
cd keyspaces-demo
go run ./cmd/keyspaces-demo
git clone https://github.com/udhos/keyspaces-demo
cd keyspaces-demo
./build.sh
keyspaces-demo
INSERT_LIMIT=1000000 INSERT_DURATION=30s INSERT_CONCURRENCY=30 keyspaces-demo
It took 37 seconds to fetch 113k records.
2024/06/26 23:56:43 query3: printQuery: rows=113880 elapsed=37.332884927s
Example from: https://github.com/aws/aws-sigv4-auth-cassandra-gocql-driver-plugin
https://github.com/aws/aws-sigv4-auth-cassandra-gocql-driver-plugin
This package implements an authentication plugin for the open-source Gocql Driver for Apache Cassandra.
Amazon Keyspaces requires the use of Transport Layer Security (TLS) to help secure connections with clients. To connect to Amazon Keyspaces using TLS, you need to download an Amazon digital certificate and configure the Go driver to use TLS.
Download the Starfield digital certificate using the following command and save sf-class2-root.crt locally or in your home directory.
curl https://certs.secureserver.net/repository/sf-class2-root.crt
curl https://www.amazontrust.com/repository/AmazonRootCA1.pem