问题标签 [amazon-dynamodb-dax]

For questions regarding programming in ECMAScript (JavaScript/JS) and its various dialects/implementations (excluding ActionScript). Note JavaScript is NOT the same as Java! Please include all relevant tags on your question; e.g., [node.js], [jquery], [json], [reactjs], [angular], [ember.js], [vue.js], [typescript], [svelte], etc.

0 投票
0 回答
342 浏览

node.js - Amazon dax client not working as per TTL set on the item

I have setup Dynamodb table and using it for caching purposes, I have dax client setup as well and writing and reading using node.js's amazon-dax-client. DAX client is not obeying the ttl set on the item.

Here is the configuration of the table, enter image description here

You can see, caching enabled and CacheTTL is set as the ttl attirbute.

Here's the code to write and read items to the cache table.

The following snapshot shows that the cache is being hit even after the max-age is expired. enter image description here

0 投票
1 回答
60 浏览

java - DAX 是否也支持模型上的 DynamoDB 注释?

我有一个模型,例如代表表人的人。我已经使用@DynamoDBTable、@DynamoDBRangeKey、@DynamoDBAttribute、@DynamoDBHashKey 注释来处理来自表的各种获取请求。这些注释也可以用于 DAX,还是 DAX 完全支持不同的注释?

我们已经在本地设置了 dynamodb,但由于无法设置 DAX,我们没有很多选择可以尝试。

是否也可以对 DAX 使用相同的 dynamodb 注释

0 投票
1 回答
681 浏览

amazon-dynamodb-dax - 如何禁用 DAX 中的查询缓存?

如何禁用 AWS Dynamo DAX 的查询缓存?Can we have infinite TTL for DAX item cache的答案提到将 ttl 设置为 0 只会使查询结果一直存在直到被驱逐。

0 投票
1 回答
290 浏览

amazon-dynamodb-dax - 无法从同一 VPC 中的 EC2 实例连接到 DAX

我在我的 EC2 实例中与我的 DAX 集群在同一个 VPC 中......集群的 SG 是默认的(全部允许),我仍然无法连接

这是一个简短的代码示例:

稍等片刻后,我收到此错误:

我也尝试过诊断nc

0 投票
0 回答
223 浏览

node.js - 使用 dynamoose (nodejs) 连接到 DAX 集群

我正在尝试从我的节点应用程序连接到 dax 集群

但是,根据 DAX 集群指标,连接看起来是临时的:

在此处输入图像描述

应用程序仍然直接从 dynamoDB 表中读取,而不是通过 DAX。知道为什么吗?

0 投票
3 回答
4822 浏览

amazon-dynamodb - 弹性缓存与 DynamoDb DAX

我有一个用例,我在 Dynamo db 中的两个表中写入数据,即事务中的 t1 和 t2。我的应用程序需要从这些表中读取数据很多次(1 次写入,至少 4 次读取)。我正在考虑 DAX 与弹性缓存。有人有什么建议吗?在此先感谢 K

0 投票
1 回答
435 浏览

node.js - AWS DynamoDB DAX“NoRouteException”

我尝试按照示例中给出的步骤从我的节点 js 应用程序连接到我的 DAX 集群。连接到客户端时出现以下错误。

我有这里建议的角色和访问权限,但我仍然得到同样的错误。

请建议。

谢谢。

0 投票
1 回答
357 浏览

amazon-web-services - AWS DAX 集群的缓存命中和缓存未命中为零

我正在使用 dax.r4.xlarge 节点类型的 3 个节点的 AWS DAX 集群。当我从 EMR 集群运行我的 spark 应用程序时,它总是从 dynamodb 表中获取值。即使我在同一组键上运行相同的应用程序,它也在查询 dynamodb 表。在 DAX 集群指标中,我看到 0 次缓存命中和未命中。

0 投票
1 回答
2094 浏览

amazon-web-services - 如何将 AWS Lambda 连接到 DAX?

我正在为我的应用程序使用 AWS API 网关、Lambda 服务和 DynamoDB。我希望使用 DynamoDB Accelerator(DAX) 来提高性能。这些文件告诉我们要创建一个 DAX 集群和一个 VPC,并将 DAX 集群和 lambda 添加到 VPC。这有点令人困惑。任何人都可以提供有关要遵循的步骤的详细信息吗?

0 投票
0 回答
193 浏览

amazon-web-services - AWS DAX 中的访问被拒绝异常

我创建了一个 DAX 集群并在同一个 VPC 中运行的 lambda 函数中访问它。它显示以下响应:“无法获取用户详细信息:错误:AccessDeniedException:用户:arn:aws:sts::4XXXXXXXX7:assumed-role/AWSServiceRoleForDAX/db-host-id-63XXX66 无权执行:dynamodb:DescribeTable在资源上:arn:aws:dynamodb:us-east-1:3XXXXXXX7:table/UserDetails"

当我创建 Dax 集群时,AWS自动创建了角色“AWSServiceRoleForDAX” ,我无法对其进行编辑以添加权限 - dynamodb:DescribeTable。当我检查时,“AWSServiceRoleForDAX”具有 EC2 的权限。我没有使用任何 EC2 实例。有没有办法解决这个问题?提前致谢。