https://github.com/udhos/keyspaces-demo
https://github.com/udhos/keyspaces-demo
Last synced: 15 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/udhos/keyspaces-demo
- Owner: udhos
- License: mit
- Created: 2024-06-25T01:10:53.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2024-06-27T02:58:25.000Z (over 1 year ago)
- Last Synced: 2025-03-03T01:36:25.560Z (10 months ago)
- Language: Go
- Size: 12.7 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# keyspaces-demo
# Quick start
git clone https://github.com/udhos/keyspaces-demo
cd keyspaces-demo
go run ./cmd/keyspaces-demo
# Full build
git clone https://github.com/udhos/keyspaces-demo
cd keyspaces-demo
./build.sh
keyspaces-demo
# Usage example
INSERT_LIMIT=1000000 INSERT_DURATION=30s INSERT_CONCURRENCY=30 keyspaces-demo
# Benchmark
It took 37 seconds to fetch 113k records.
2024/06/26 23:56:43 query3: printQuery: rows=113880 elapsed=37.332884927s
# Source
Example from: https://github.com/aws/aws-sigv4-auth-cassandra-gocql-driver-plugin
## gocql auth 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.
## SSL
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