Cache is your Best Friend
NishantKumarBehl
Why Cache
 If you believe SPEED is everything , Cache is your best friend
 If you have COST optimization mindset, Cache is your best friend
 If your customers patience level is low, Cache is your best friend
 If you are designing a well DISTRIBUTED architectural solution, Cache is your best
friend
 If you have future growth in your mind, Cache is your best friend
 If you are a SMART Engineer, Cache is your best friend
What is Cache
 Cache is a component that stores data to be re-used
 Cache is faster in providing data
 Cache can be a hardware or software component
 Yes you can read and write into Cache, just in case you are
wondering
So Why Cache is faster
Its Simply because its just a subset of the data that is
predicted to be used more frequently and in more
volume than rest of the data
How does it work Afterall
Limitations of Cache
 You will always have a limited space or memory for your
Cache
 You need to be very smart for effective use of Cache
Popular Caching Areas
 CDN (Content Delivery Network) caching
 Database caching
 Client caching
 Web caching
 Application caching
Types of Cache
Below is how I Categorize Cache Types
 Software Cache
 In-Network Cache
 Hardware Cache
Software Cache
 WEB CACHE
 DISK CACHE
 MEMORIZATION
In-Network Cache
 INFORMATION – CENTRIC NETWORKING
 LEAST RECENTLY USED ALGORITHM
Hardware Cache
 CPU – Central Processing Unit cache
 GPU – Graphics Processing Unit cache
 DSP – Digital Signal Processors cache
Cache Policies
 Write-Through : Only Cache interacts with database in synchronous fashion
 Write – Aside : Cache does not interact directly with database
 Write – Back : Application writes into the cache and database in asynchronous
manner
 Refresh-ahead : Cache Automatically refreshes itself
Few Important details about Application
Caching
 Popular key value stores – Memcached and Redis
 Object Level Caching – treat data as object and cache it
 Query Level Caching – Hash the key, store results into the
cache
Careful about this
 Cache Invalidation is many times complex problem to solve
 Application needs to be modified if changing cache type
 Consistency maintenance is a huge overhead
What I got from this Presentation
 Clarity and refresher on Cache

More Related Content

PPTX
Thanks for the Memory
PDF
Simple server side cache for Express.js with Node.js
PDF
High Performance Drupal
PPT
Scalability for Startups (Frank Mashraqi, Startonomics SF 2008)
DOC
Puneet_Resume
PPT
scale_perf_best_practices
PDF
Spring One 2 GX 2014 - CACHING WITH SPRING: ADVANCED TOPICS AND BEST PRACTICES
PPT
Web Speed And Scalability
Thanks for the Memory
Simple server side cache for Express.js with Node.js
High Performance Drupal
Scalability for Startups (Frank Mashraqi, Startonomics SF 2008)
Puneet_Resume
scale_perf_best_practices
Spring One 2 GX 2014 - CACHING WITH SPRING: ADVANCED TOPICS AND BEST PRACTICES
Web Speed And Scalability

Similar to Cache is your best friend (20)

PPTX
Introduction to Redis and its features.pptx
PPT
Gear6 | Data Center Decisions
PPTX
Customer Presentation - HPE Solid State Drives (SSD).PPTX
PPT
CDW: SAN vs. NAS
PPT
Apache Con 2008 Top 10 Mistakes
PPTX
Customer Presentation - HPE Persistent Memory Portfolio.PPTX
PDF
Don’t give up, You can... Cache!
PDF
Pow03190 usen
PDF
Technical white paper--Optimizing Quality of Service with SAP HANAon Power Ra...
PDF
Caching objects-in-memory
PPTX
Handling Data in Mega Scale Systems
PDF
Meta scale kognitio hadoop webinar
PPT
Gear6 Solution Launch
PPTX
HTTP Caching.pptx
PPTX
Caching 101
PPTX
Show Me The Cache!
PPT
Top 10 Scalability Mistakes
PPT
Silicon India Java Conference: Building Scalable Solutions For Commerce Silic...
PDF
Skalowalna architektura na przykładzie soccerway.com
DOCX
Hadoop Research
Introduction to Redis and its features.pptx
Gear6 | Data Center Decisions
Customer Presentation - HPE Solid State Drives (SSD).PPTX
CDW: SAN vs. NAS
Apache Con 2008 Top 10 Mistakes
Customer Presentation - HPE Persistent Memory Portfolio.PPTX
Don’t give up, You can... Cache!
Pow03190 usen
Technical white paper--Optimizing Quality of Service with SAP HANAon Power Ra...
Caching objects-in-memory
Handling Data in Mega Scale Systems
Meta scale kognitio hadoop webinar
Gear6 Solution Launch
HTTP Caching.pptx
Caching 101
Show Me The Cache!
Top 10 Scalability Mistakes
Silicon India Java Conference: Building Scalable Solutions For Commerce Silic...
Skalowalna architektura na przykładzie soccerway.com
Hadoop Research
Ad

Recently uploaded (20)

PDF
Applications of Equal_Area_Criterion.pdf
PDF
UEFA_Carbon_Footprint_Calculator_Methology_2.0.pdf
PDF
Accra-Kumasi Expressway - Prefeasibility Report Volume 1 of 7.11.2018.pdf
PPTX
ai_satellite_crop_management_20250815030350.pptx
PDF
Design Guidelines and solutions for Plastics parts
PDF
distributed database system" (DDBS) is often used to refer to both the distri...
PDF
MLpara ingenieira CIVIL, meca Y AMBIENTAL
PPT
Chapter 1 - Introduction to Manufacturing Technology_2.ppt
PDF
Java Basics-Introduction and program control
PDF
UEFA_Embodied_Carbon_Emissions_Football_Infrastructure.pdf
PDF
August -2025_Top10 Read_Articles_ijait.pdf
PDF
First part_B-Image Processing - 1 of 2).pdf
PDF
Computer organization and architecuture Digital Notes....pdf
PPTX
mechattonicsand iotwith sensor and actuator
PDF
20250617 - IR - Global Guide for HR - 51 pages.pdf
PDF
Artificial Superintelligence (ASI) Alliance Vision Paper.pdf
PPTX
"Array and Linked List in Data Structures with Types, Operations, Implementat...
PPTX
Module 8- Technological and Communication Skills.pptx
PPTX
Information Storage and Retrieval Techniques Unit III
PDF
Exploratory_Data_Analysis_Fundamentals.pdf
Applications of Equal_Area_Criterion.pdf
UEFA_Carbon_Footprint_Calculator_Methology_2.0.pdf
Accra-Kumasi Expressway - Prefeasibility Report Volume 1 of 7.11.2018.pdf
ai_satellite_crop_management_20250815030350.pptx
Design Guidelines and solutions for Plastics parts
distributed database system" (DDBS) is often used to refer to both the distri...
MLpara ingenieira CIVIL, meca Y AMBIENTAL
Chapter 1 - Introduction to Manufacturing Technology_2.ppt
Java Basics-Introduction and program control
UEFA_Embodied_Carbon_Emissions_Football_Infrastructure.pdf
August -2025_Top10 Read_Articles_ijait.pdf
First part_B-Image Processing - 1 of 2).pdf
Computer organization and architecuture Digital Notes....pdf
mechattonicsand iotwith sensor and actuator
20250617 - IR - Global Guide for HR - 51 pages.pdf
Artificial Superintelligence (ASI) Alliance Vision Paper.pdf
"Array and Linked List in Data Structures with Types, Operations, Implementat...
Module 8- Technological and Communication Skills.pptx
Information Storage and Retrieval Techniques Unit III
Exploratory_Data_Analysis_Fundamentals.pdf
Ad

Cache is your best friend

  • 1. Cache is your Best Friend NishantKumarBehl
  • 2. Why Cache  If you believe SPEED is everything , Cache is your best friend  If you have COST optimization mindset, Cache is your best friend  If your customers patience level is low, Cache is your best friend  If you are designing a well DISTRIBUTED architectural solution, Cache is your best friend  If you have future growth in your mind, Cache is your best friend  If you are a SMART Engineer, Cache is your best friend
  • 3. What is Cache  Cache is a component that stores data to be re-used  Cache is faster in providing data  Cache can be a hardware or software component  Yes you can read and write into Cache, just in case you are wondering
  • 4. So Why Cache is faster Its Simply because its just a subset of the data that is predicted to be used more frequently and in more volume than rest of the data
  • 5. How does it work Afterall
  • 6. Limitations of Cache  You will always have a limited space or memory for your Cache  You need to be very smart for effective use of Cache
  • 7. Popular Caching Areas  CDN (Content Delivery Network) caching  Database caching  Client caching  Web caching  Application caching
  • 8. Types of Cache Below is how I Categorize Cache Types  Software Cache  In-Network Cache  Hardware Cache
  • 9. Software Cache  WEB CACHE  DISK CACHE  MEMORIZATION
  • 10. In-Network Cache  INFORMATION – CENTRIC NETWORKING  LEAST RECENTLY USED ALGORITHM
  • 11. Hardware Cache  CPU – Central Processing Unit cache  GPU – Graphics Processing Unit cache  DSP – Digital Signal Processors cache
  • 12. Cache Policies  Write-Through : Only Cache interacts with database in synchronous fashion  Write – Aside : Cache does not interact directly with database  Write – Back : Application writes into the cache and database in asynchronous manner  Refresh-ahead : Cache Automatically refreshes itself
  • 13. Few Important details about Application Caching  Popular key value stores – Memcached and Redis  Object Level Caching – treat data as object and cache it  Query Level Caching – Hash the key, store results into the cache
  • 14. Careful about this  Cache Invalidation is many times complex problem to solve  Application needs to be modified if changing cache type  Consistency maintenance is a huge overhead
  • 15. What I got from this Presentation  Clarity and refresher on Cache