简体   繁体   English

如何以数据存储在 DynamoDBLocal 中的方式使用 ScalarDB?

[英]How to use ScalarDB in a way that data is stored in DynamoDBLocal?

I believe ScalarDB supports DynamoDB since Version 3.0.0.我相信 ScalarDB 从 3.0.0 版开始支持 DynamoDB。 I would like to use ScalarDB in the form of storing data in DynamoDBLocal.我想以在DynamoDBLocal中存储数据的形式使用ScalarDB。 The reason for this is that when we develop as a team, we prepare test data to validate the source code implemented in the local environment, and we want to develop without mixing in test data used by other engineers on the same team while working.这样做的原因是,当我们作为一个团队进行开发时,我们准备测试数据来验证在本地环境中实现的源代码,我们希望在开发时不混入同一团队其他工程师在工作时使用的测试数据。 We are also concerned that if we store the test data during development in the local environment in AWS DynamoDB, we will incur AWS DynamoDB costs for that.我们还担心,如果我们在开发过程中将测试数据存储在 AWS DynamoDB 的本地环境中,我们将为此产生 AWS DynamoDB 成本。 Is there any way to use ScalarDB with DynamoDBLocal?有没有办法将 ScalarDB 与 DynamoDBLocal 一起使用?

From Scalar DB 3.1, we introduce a configuration "scalar.db.dynamo.endpoint-override" that overrides the endpoint with which the DynamoDB SDK should communicate.从 Scalar DB 3.1 开始,我们引入了一个配置“scalar.db.dynamo.endpoint-override”,它覆盖了 DynamoDB SDK 应该与之通信的端点。 You can set this configuration to your DynamoDB Local endpoint to use DynamoDB Local.您可以将此配置设置为您的 DynamoDB Local 终端节点以使用 DynamoDB Local。

Schema Tool for Scalar DB also supports the "--endpoint-override" option to use DynamoDB Local from 3.1.用于标量 DB 的架构工具还支持“--endpoint-override”选项以使用 3.1 中的 DynamoDB Local。

Scalar DB 3.1: https://github.com/scalar-labs/scalardb/releases/tag/v3.1.0 https://search.maven.org/artifact/com.scalar-labs/scalardb/3.1.0/jar标量 DB 3.1: https : //github.com/scalar-labs/scalardb/releases/tag/v3.1.0 https://search.maven.org/artifact/com.scalar-labs/scalardb/3.1.0/jar

DynamoDB 上 Scalar DB 的 CI 实际上使用 DynamoDB Local,所以我认为您可以简单地在其上运行您的 Scalar DB 应用程序。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM