ElastiCache är AWS:s hanterade in-memory-cachetjänst — kör Redis eller Memcached för att cacha ofta åtkomna data för snabb hämtning. I kombination med andra cachez-lager (CloudFront, DAX) är caching en viktig teknik för att förbättra AWS-applikationsprestanda och minska databasens belastning.
ElastiCache — hanterad in-memory-caching
ElastiCache runs managed REDIS or MEMCACHED clusters:
→ store frequently-accessed data in memory → sub-millisecond retrieval (very fast)
→ REDUCE LOAD on databases (serve from cache instead of querying the DB)
→ AWS manages it (setup, patching, scaling, failover) — no servers to run
Redis → rich data structures, persistence, replication, HA (Multi-AZ) — the common choice
Memcached → simpler, multi-threaded, pure caching
