0

我在 AWS 中创建了一个 DynamoDB 实例,我还在 AWS Elasticache 中创建了一个缓存集群。我想使用 Elasticache 来提高读/写性能。我不确定这是如何用 Python 完成的。

您能否提供有关如何将 Elasticache 附加到我的 DynamoDB 实例的指示/指导?我能够连接到 Elasticache 并获取集群,但需要有关如何继续的帮助。

参考代码:

conn = boto.elasticache.connect_to_region('us-west-2',
    aws_access_key_id='<KEY_ID>',
    aws_secret_access_key='<KEY_ACCESS>')
print conn.describe_cache_clusters(cache_cluster_id='<ID>')
4

1 回答 1

0

这是一篇文章,描述了涉及 Elasticache 和 DynamoDB 的类似情况。代码在节点中,但会帮助您了解如何执行此操作。

使用 DynamoDB Streams、AWS Lambda 和 ElastiCache 的缓存策略

于 2017-10-10T01:18:25.560 回答