keyspaces-demo

module
v0.0.0-...-b44871c Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 27, 2024 License: MIT

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

Directories

Path Synopsis
cmd
keyspaces-demo command
Package main implements the tool.
Package main implements the tool.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL