AWS
Describe the workflow of an application using the cache in AWS
Difficulty: unrated
Source: bregman-arie/devops-exercises
by Arie Bregman
Answer
- The application performs a query against the DB. There is a check to see if the data is in the cache
- If it is, it's a "cache hit" and the data is retrieved from there
- If it's not in there, it's a "cache miss" and the data is pulled from the database
- The data is then also written to the cache (assuming it is often accessed) and next time the user queries for the same data, it might be retrieved from the cache (depends on how much time passed and whether this specific data was invalidated or not)