Design Patterns · Senior · Question 66 of 75
How does the Cache-Aside pattern work?
- ✓Correct answer: The app reads the cache first, loads from the data store on a miss and puts the result in the cache; writes update the store and invalidate the cache
- 2The cache automatically writes to the database
- 3Data is stored only in the cache
Explanation
It's simple and common, but stale data and stampedes on popular keys must be handled.