DEV Community

Le Huy Ho
Le Huy Ho

Posted on

Learning AWS - DVA - Day 12: ElastiCache

Overview

  • The same way RDS is to get managed Relational Databases

  • ElasticCache is to get managed Redis or Memcached

  • Caches are in-memory databases with really high performance, low latency

  • Helps reduce load off of database for read intensive workloads

  • Helps make your application stateless

  • AWS take care of OS maintenance / patching, optimizations, setup, configuration, monitoring, failure recovery and backups

  • Using ElasticCache involves heavy application code changes


ElastiCache Solution Architect - DB Cache

  • Applications queries ElastiCache, if not available, get from RDS and store in ElastiCache

  • Helps relieve load in RDS

  • Cache must have an invalidation strategy to make sure only the most current data is used in there

ElastiCache DB caching

ElastiCache Solution Architect - User Session Store

  • User logs into any of the application

  • The application writes the session data into ElastiCache

  • The user hit another instance of our application

  • The instance retrieves the data and the user is already logged in

Image description


ElastiCache - Redis vs Memcached

ElastiCache Redis vs Memcached

Top comments (0)