Question d’entretien chez Microsoft

4. How to avoid serving stale data when using caching and data updates every 5 minutes.

Réponse à la question d'entretien

Utilisateur anonyme

14 mars 2026

Approach: Use strategies like TTL-based cache expiry, cache invalidation on updates, background refresh, or stale-while-revalidate to ensure the cache is updated periodically and minimize stale reads.