Caching बार-बार एक्सेस किए जाने वाले data को एक तेज़ layer (अक्सर memory में) में संग्रहीत करता है ताकि उसे धीमे स्रोतों से दोबारा गणना या दोबारा प्राप्त किए बिना तेज़ी से पुनः प्राप्त किया जा सके। यह performance और scalability में सुधार के लिए सबसे महत्वपूर्ण तकनीकों में से एक है।
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.
