πŸ”ΈElastic Cache

Elastic Cache is to get managed Redis or Memcached. It help to reduce load off DB for read intensive workloads.

There are 2 kind of cache:

  1. Redis

  2. Memcached

Redis vs Memcached

RedisMemcached

Support MultiAZ

Multi Node (sharding)

Has read replicas to scale read and high avaialability

No replication

Backup and restore features

No backup and restore features

Tips: In examination the keyword Sets and SortedSet = Redis ElasticCache

Security

It support IAM Authentication . For Redis it support SSL and Memcached it support SASL based authentication.

Usecase

  • Lazy loading (read data from cache before DB)

  • Write through (Add or update data in the cache when written to a DB)

  • Session store

  • Gaming Leaderboards (Redis sorted sets guarantee both uniqueness and element ordering)

Last updated