本文属于机器翻译版本。若本译文内容与英语原文存在差异,则一律以英文原文为准。
Amazon Keyspaces(针对 Apache Cassandra)代码示例和工具
本节提供有关 Amazon Keyspaces(针对 Apache Cassandra)代码示例和工具的信息。
图书馆和示例
您可以在 GitHub 上找到 Amazon Keyspaces 开源库和开发人员工具Amazon
Amazon Keyspaces (for Apache Cassandra) 开发者工具包
此存储库提供了一个 docker 图像,其中包含 Amazon Keyspaces 的有用开发人员工具 例如,它包括一个包含最佳实践的 CQLSHRC 文件,一个可选的Amazon使用 cqlsh 的身份验证扩展,以及执行常见任务的帮助工具。该工具包针对亚马逊 Keyspaces 进行了优化,但也适用于 Apache Cassandra 集群。
https://github.com/aws-samples/amazon-keyspaces-toolkit
Amazon Keyspaces(针对 Apache Cassandra)示例
此回购是我们的亚马逊 Keyspaces 示例代码的官方列表。回购按语言细分为几个部分(请参阅示例
https://github.com/aws-samples/amazon-keyspaces-examples/
Amazon签名版本 4 (SigV4) 身份验证插件
这些插件使您可以通过使用以下方式管理对 Amazon Keyspaces 的访问Amazon Identity and Access Management(IAM) 用户和角色。
Amazon 开发工具包:https://github.com/aws/aws-sigv4-auth-cassandra-java-driver-plugin
Node.js:https://github.com/aws/aws-sigv4-auth-cassandra-nodejs-driver-plugin
Python: https://github.com/aws/aws-sigv4-auth-cassandra-python-driver-plugin
Go:https://github.com/aws/aws-sigv4-auth-cassandra-gocql-driver-plugin
突出显示的示例和开发者工具库
下面是针对 Amazon Keyspaces(针对 Apache Cassandra)的有用社区工具。
Amazon CloudFormation针对 Amazon Keyspaces(针对 Apache Cassandra)指标创建 Amazon CloudWatch 控制面板的模板
此存储库提供Amazon CloudFormation用于快速为亚马逊 Keyspaces 设置 CloudWatch 指标的模板。通过使用此模板,您可以通过提供具有常用指标的可部署预构建的 CloudWatch 控制面板,更轻松地开始使用。
https://github.com/aws-samples/amazon-keyspaces-cloudwatch-cloudformation-templates
将 Amazon Keyspaces(针对 Apache Cassandra)结合使用Amazon Lambda
存储库包含演示如何从 Lambda 连接到 Amazon Keyspaces 的示例。下面是一些示例。
Amazon 开发工具包:https://github.com/aws-samples/amazon-keyspaces-examples/tree/main/java/datastax-v4/connection-lambda
另一个展示如何从 Python Lambda 部署和使用 Amazon Keyspaces 的 Lambda 示例可从以下仓库获得。
https://github.com/aws-samples/aws-keyspaces-lambda-python
将 Amazon Keyspaces(针对 Apache Cassandra)与 Spring 结合使用
下面是一个示例,向您展示如何将 Amazon Keyspaces 与 Spring Boot 结合使用。
https://github.com/aws-samples/amazon-keyspaces-spring-app-example
将 Amazon Keyspaces(针对 Apache Cassandra)与 Scala 结合使用
这是一个示例,展示了如何使用 Scala 的 Sigv4 身份验证插件连接到 Amazon Keyspaces。
Amazon Keyspaces (for Apache Cassandra) 查询语言 (CQL)Amazon CloudFormation转换器
该软件包实现了一个命令行工具,用于将 Apache Cassandra 查询语言 (CQL) 脚本转换为Amazon CloudFormation(CloudFormation) 模板,它允许在 CloudFormation 堆栈中轻松管理 Amazon Keyspaces 模式。
https://github.com/aws/amazon-keyspaces-cql-to-cfn-converter
针对 Java 的 Apache Cassandra 驱动程序的 Amazon Keyspaces(针对 Apache Cassandra)的帮助
此存储库包含将 DataSax Java 驱动程序与 Amazon Keyspaces 结合使用时的驱动程序策略、示例和最佳实践(适用于 Apache Cassandra)。
https://github.com/aws-samples/amazon-keyspaces-java-driver-helpers
Amazon Keyspaces(针对 Apache Cassandra)
此存储库演示了如何压缩、存储和读取/写入大型对象,以提高性能并降低吞吐量和存储成本。
https://github.com/aws-samples/amazon-keyspaces-compression-example
Amazon Keyspaces(针对 Apache Cassandra)和 Amazon S3 编解码器演示
自定义 Amazon S3 编解码器支持透明、用户可配置的指向 Amazon S3 对象的 UUID 指针映射。
https://github.com/aws-samples/amazon-keyspaces-large-object-s3-demo