【问题标题】:Local/Offline Development using AWS ElastiCache for Redis使用 AWS ElastiCache for Redis 进行本地/离线开发
【发布时间】:2021-08-31 05:42:30
【问题描述】:

我需要使用 AWS ElastiCache for Redis 进行本地/离线开发。我检查了 LocalStack,但开源社区版不提供此功能。您可以参考定价模型here。 使用 AWS ElastiCache for Redis 进行本地/离线开发还有其他替代方案吗?

【问题讨论】:

    标签: amazon-web-services docker redis amazon-elasticache


    【解决方案1】:

    Elasticache 只是托管 Redis;您不需要任何特殊的开发内容,只需一个 Redis 的本地副本(如果您愿意,可以在容器中)。

    【讨论】:

    • 如果我们在没有 ElastiCache 的情况下实现 Redis,那么当我们将应用程序转移到生产环境时,代码就会发生变化,因为在生产环境中会有 ElastiCache 和 Redis
    • 除了主机名之外,并没有什么不同。相同的代码库适用于用于本地开发的普通 Redis、用于集成测试的容器中的 Redis 和 Elasticache Redis;唯一需要配置的是主机名。
    猜你喜欢
    • 2022-04-29
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2018-07-11
    • 1970-01-01
    • 1970-01-01
    • 2019-09-12
    • 2018-12-04
    相关资源
    最近更新 更多