Files
nexus/wiki/entities/Amazon-ElastiCache.md
2026-04-24 00:03:01 +08:00

51 lines
2.0 KiB
Markdown
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
---
title: "Amazon ElastiCache"
type: entity
tags:
- AWS
- Database
- In-Memory
- Cache
- Redis
- Memcached
sources:
- ctp-topic-51-architecting-with-aws-purpose-built-databases
last_updated: 2026-04-23
---
## Overview
Amazon ElastiCache 是 AWS 全托管的内存缓存服务,支持 Redis 和 Memcached 两种引擎,是降低数据库负载和提升应用响应速度的核心组件。
## Key Characteristics
- **双引擎**Redis全功能支持数据结构丰富和 Memcached简单高并发多核
- **性能**:内存访问,微秒至毫秒级延迟
- **全托管**:自动补丁、故障恢复、备份
- **复制**:支持只读副本,提升读取吞吐量
## Key Use Cases
- **数据库缓存**:将高频读取数据缓存,减少数据库负载(典型命中率 80%+
- **会话存储**:用户会话数据(登录状态、购物车)
- **实时分析**:排行榜、计数器、实时指标
- **媒体流缓存**:视频/音乐流媒体缓存热点内容
- **消息队列**Redis Pub/Sub 实现发布/订阅模式
## Notable Users
- **Peloton**:使用 ElastiCache Redis 为健身用户提供即时反馈(来源:[[ctp-topic-51-purpose-built-databases]]
- **Duolingo**:使用 ElastiCache 缓存高频词和短语(来源:[[ctp-topic-51-purpose-built-databases]]
## Aliases
- ElastiCache
- Amazon ElastiCache
- AWS ElastiCache
- Amazon ElastiCache for Redis
## Related Entities
- [[Amazon-RDS]]数据库层ElastiCache 作为缓存层配合使用
- [[Amazon-DynamoDB]]NoSQL 数据库ElastiCache 可作为 DynamoDB 的读取加速层
- [[Amazon-Aurora]]关系型数据库ElastiCache 可缓存 Aurora 的热点查询结果
## Related Concepts
- [[Purpose-Built-Databases]]ElastiCache 是 AWS 专用数据库家族中的内存缓存数据库成员
- [[In-Memory-Database]]:内存数据库核心概念——数据驻留内存 vs 磁盘,权衡成本与性能
- [[Multi-Database-Architecture]]ElastiCache 常作为 Aurora/DynamoDB/RDS 的缓存层,与主数据库构成读写分离架构