KeySpaces
Last updated
Last updated
Kubemq keyspaces target connector allows services using kubemq server to access keyspaces database services.
The following are required to run the keyspaces target connector:
kubemq cluster
IAM user keyspaces credentials
aws keyspaces server/cluster
kubemq-targets deployment
keyspaces target connector configuration properties:
Example:
Get request metadata setting:
Example:
Set request metadata setting:
Set request data setting:
Example:
Delete request metadata setting:
Example:
Query request metadata setting:
Query request data setting:
Example:
Query string: SELECT value FROM test.test WHERE key = 'some-key
Exec request metadata setting:
Exec request data setting:
Example:
Exec string:
Properties Key
Required
Description
Example
hosts
yes
aws end point
"localhost"
port
yes
keyspaces port
"9142"
proto_version
no
keyspaces proto version
"4"
replication_factor
no
set replication factor
"1"
username
no
set keyspaces username
"keyspaces"
password
no
set keyspaces password
"keyspaces"
consistency
no
set keyspaces consistency
"One","LocalOne","LocalQuorum" see https://docs.aws.amazon.com/keyspaces/latest/devguide/consistency.html
default_table
no
set table name
"test"
default_keyspace
no
set keyspace name
"test"
tls
yes
aws keyspace certificate
timeout_seconds
no
set default timeout seconds
"60"
connect_timeout_seconds
no
set default connect timeout seconds
"60"
Metadata Key
Required
Description
Possible values
key
yes
keyspaces key string
any string
method
yes
get
"get"
consistency
yes
set consistency
"",strong","eventual"
table
yes
table name
"table
keyspace
yes
key space name
"keyspace"
Metadata Key
Required
Description
Possible values
key
yes
keyspaces key string
any string
method
yes
method name set
"set"
consistency
yes
set consistency
"",strong","eventual"
table
yes
table name
"table
keyspace
yes
key space name
"keyspace"
Data Key
Required
Description
Possible values
data
yes
data to set for the keyspaces key
base64 bytes array
Metadata Key
Required
Description
Possible values
key
yes
keyspaces key string
any string
method
yes
method name delete
"delete"
table
yes
table name
"table
keyspace
yes
key space name
"keyspace"
Metadata Key
Required
Description
Possible values
method
yes
method name query
"query"
consistency
yes
set consistency
"",strong","eventual"
Data Key
Required
Description
Possible values
data
yes
query string
base64 bytes array
Metadata Key
Required
Description
Possible values
method
yes
set type of request
"exec"
consistency
yes
set consistency
"",strong","eventual"
Data Key
Required
Description
Possible values
data
yes
exec string
base64 bytes array