Design caching for a high-load Spring Boot application running as several instances. How would you choose between a local and a distributed cache, and how would you handle invalidation?
~10 min by voice
How to approach it
They're checking whether the candidate can deliberately choose a cache level for the nature of the data, keep instances consistent during invalidation, and plan for failures: races with the database, cache stampede, Redis going down, heap pressure.
The interviewer will ask this question and listen. Think out loud and ask for a hint if you need one. When you're done, pause or tap “That's my answer”. In about a minute, your score and the points you covered show up here.