从本地开发机器使用AWS DynamoDB DAX [英] Using AWS DynamoDB DAX from local development machine

查看:270
本文介绍了从本地开发机器使用AWS DynamoDB DAX的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在为当前使用DynamoDB的应用程序试用DAX客户端,发现它仅在VPC中受支持. DAX端点在172.31.x.y范围内.

I'm trying out the DAX client for my application currently using DynamoDB and found out it's only supported within a VPC. The DAX endpoint is in the 172.31.x.y range.

这是否意味着无法从本地开发机器上测试DAX功能,或者是否可以将DAX配置为可从Internet以某种测试目的访问?还是我坚持通过SSH进入VPC中的EC2?

Does this mean it's impossible to test DAX features from my local development machine, or is it possible to configure DAX to be reachable from the Internet for testing purposes in some way? Or am I stuck with SSH-ing into an EC2 in the VPC?

推荐答案

答案:似乎答案为否",我们甚至无法通过本地开发机进行测试.

Answer: Seems like the answer is No, we can't even test via our local dev machine.

我也遇到了同样的问题.在花了很多时间浏览视频和文档之后,我终于觉得我明白了.我不明白为什么亚马逊应该将其限制为仅在VPC中.只要客户使用其私有和公共证书密钥,我就看不到为什么您不能从外部VPC安全地访问DAX的原因. (我唯一想到的就是潜在的DDOS攻击).无论如何,亚马逊在传达这一点上可以做得更好……他们在任何视频中都没有提到,我只发现这隐藏在一个随机文档中……

I faced this same issue. After spending so many hours digging through videos and documentation I finally think I figured it out. I don't see why Amazon should restrict this to be in the VPC only. As long as the customer uses their private and public credential keys, I don't see why you can't securely access the DAX from outside VPC. (Only thing I can think of is potential DDOS attacks). Regardless, Amazon could have done a much better job communicating this... They didn't mention in any video, and I only found this hidden away in one random document...

https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/DAX.html

使用说明有关可用DAX的AWS区域列表,请参阅 https://aws.amazon.com/dynamodb/pricing .

Usage Notes For a list of AWS regions where DAX is available, refer to https://aws.amazon.com/dynamodb/pricing.

DAX支持以Java,Node.js,.Python和.NET编写的应用程序, 将AWS提供的客户端用于这些编程语言.

DAX supports applications written in Java, Node.js, .Python and .NET, using AWS-provided clients for those programming languages.

DAX不支持传输层安全性(TLS).

DAX does not support Transport Layer Security (TLS).

DAX仅适用于EC2-VPC平台.(不支持 用于EC2-Classic平台.)

DAX is only available for the EC2-VPC platform. (There is no support for the EC2-Classic platform.)

DAX群集维护有关其项的属性名称的元数据 存储,并且该元数据将无限期维护(即使在 项已过期或已从缓存中逐出).的应用 随着时间的流逝,使用数量不受限制的属性名称可能会导致 DAX群集中的内存耗尽.此限制仅适用于 顶级属性名称,而不是嵌套属性名称.示例 有问题的顶级属性名称包括时间戳,UUID和 会话ID.

DAX clusters maintain metadata about the attribute names of items they store, and that metadata is maintained indefinitely (even after the item has expired or been evicted from the cache). Applications that use an unbounded number of attribute names can, over time, cause memory exhaustion in the DAX cluster. This limitation applies only to top-level attribute names, not nested attribute names. Examples of problematic top-level attribute names include timestamps, UUIDs, and session IDs.

请注意,此限制仅适用于属性名称,不适用于其名称. 价值观.这样的项目没问题:

Note that this limitation only applies to attribute names, not their values. Items like this are not a problem:

这篇关于从本地开发机器使用AWS DynamoDB DAX的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆