In This blog we will discuss Elastic Cache
ElastiCache is the in memory caching mechanism. It is the memcache under the hood. It is 100% API compliant.More appropriately it is a memcache cluster
Memcache is a popular , opensource in -memory cache. it is very fast read and writes.It takes burden of backend resources
Memcache is a key value store.It is a NOSql DB. Its only access method is a key
ElastiCache is actually a memcache cluster. it is a distributed collection of cache nodes
Its available in only Single AZ
Cache nodes are very user specified types
- very much like EC2 Instance type
- can be wrapped with security groups
- can buy capacity reservations
- Resizeable ( remove or add nodes)
- Choose an AZ
- Chose node types, # of nodes
- Launch Cluster
- Connect application by pointing to elasticache endpoint
- Benchmark, resize ( if necessary)
Elasticache Expiry
- Expiring Key is controlled via the elasticache API (memcache commands)
- Scheduled
- on demand
ElastiCache Pricing
- It has per hour node charge
- Bandwidth Charges- Bandwidth Charges are free inside the AZ but Charged $0.1/GB in or out of AZs
