Caching memorizza i dati a cui si accede frequentemente in un livello veloce (spesso in memoria) in modo che possano essere recuperati rapidamente senza ricompilazione o ri-acquisizione da fonti più lente. È una delle tecniche più importanti per migliorare le prestazioni e la scalabilità.
Che cosa fa il caching
CACHING stores copies of data in a FAST location for quick repeated access:
→ instead of recomputing or re-fetching from a slow source (database, API, computation),
serve from the fast cache
→ DRAMATICALLY faster (cache hit) + REDUCES load on the slow backend
→ trades some staleness/complexity for big performance and scalability gains.
