Caching is used to temporarily store data that is frequently requested in an in-memory data store with low latency access, reducing round-trip access to the primary application data store(s). This makes retrieving cached data far quicker.
Caching is usually, but not necessarily, transient. This means that periodically, the data expires and needs to be rebuilt, but at a much reduced cost compared to continuously querying for the data from the data stores.
ElastiCache is a fully managed service that provides Redis and Memcache. With ElastiCache, you can deploy, run, and scale these services. This helps you to build data-intensive apps or to add caching capability to your application using these in-memory data stores.
Using ElastiCache, you can create a managed cluster with all of the properties of a managed service:
resource "aws_elasticache_cluster" "example" { cluster_id = "cluster-example" engine = "memcached" replication_group_id = "${aws_elasticache_replication_group...