Design: Cache Invalidation Strategies System
Design focuses on cache invalidation strategies and mechanisms. Cache storage implementation and client application logic are out of scope.
Functional Requirements
Non-Functional Requirements
+----------------+ +-------------------+ +----------------+
| Application | <---> | Cache Client | <---> | Cache Storage |
+----------------+ +-------------------+ +----------------+
| ^ ^
| | |
v | |
+----------------+ | |
| Database | | |
+----------------+ | |
| | |
v | |
+----------------+ +-------------------+ |
| Invalidation | ----> | Message Queue / | --------------+
| Event Producer | | Pub/Sub System |
+----------------+ +-------------------+
|
v
+-------------------+
| Invalidation |
| Event Consumer |
+-------------------+K and the cache misses, what happens next?Pass the test and this pattern moves unknown