Practice
Learn
← Quit
0 / 0 correct
System Design
Hard
1 of 40
How can you keep a cache consistent with a database without the application doing double writes?
A
Make every read bypass the cache
B
Use a longer TTL
C
Tail the database change log (CDC, e.g. Debezium) and invalidate or update cache entries from it
D
Write to the cache first, then the database