Databases can often get the same query to proces, and each time it returns the same output over and over again. This can slow down the db’s performance.
AnnouncementI have released my new course on Udemy, Kubernetes By Example. Sign up now to get free lifetime access!
To overcome this, you can use a caching service. This service will intercept the repetitive queries and send back the cached output. The database will keep the cacheing service up to date with the latest data.
There are 2 main caching software, they are:
Amazon ElastiCache is a fully managed in-memory cache engine. Once again, you can’t access the underlying OS that the cache engine is running on. You can set up Amazon ElastiCache to run using either of above 2 caching engines only.
Note, your application needs to be written in a way to support Redis/Memcached.