Gayathri K
Gayathri K

Reputation: 721

How to keep an Amazon ElastiCahe Memcached/Redis before a RDS MySQL database and use ElastiCache to cache the content?

What is the process of keeping ElastiCache infront of RDS MySQL database?

Upvotes: 0

Views: 666

Answers (1)

Mark B
Mark B

Reputation: 200501

Your application code needs to always check the cache first, and use the cached value if it is there. If not, then your application needs to query the database, get the value, insert it into the cache, and then proceed. There is no automated method of doing this from an infrastructure standpoint. It is up to your application to do this.

Depending on what application frameworks you are using there may be a way to configure your application to do this easily without having to code all the logic yourself.

Upvotes: 1

Related Questions