elasticache caching strategies Flashcards

1
Q

What are the characteristics of the Lazy Loading caching strategy?

A

Lazy Loading is most widely used for web applications. It only loads data into the cache when necessary, preventing rarely accessed data from being loaded. The downside is that you incur extra latency when you have a cache miss.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

What are the characteristics of the Write Through caching strategy?

A

Write Through writes data to the cache when it is written to the database, ensuring that the cache always has the latest data. The downside is that new nodes will have missing data. A combination of Lazy Loading & Write Through can solve this problem.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

What are the typical use cases for ElastiCache?

A

ElastiCache is good for read-intensive applications but not suitable for write-heavy loads. It is not recommended for OLAP; instead, use Redshift.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly