Caching
Caching
CACHING
Caching is the process of storing copies in temporary storage location, so that they can be
accessed more quickly.
Various caching strategies are cache-aside, read-through, write-through, write-back, and write-
around
CACHING
CACHING MECHANISM
CONTENT DELIVERY
NETWORK(CDN)
01 A content delivery network (CDN) is a geographically distributed group of servers that caches
content close to end users.We can also say it as a edge servers
Azure CDN has a network of POPs (Points of Presence) strategically located around the world.
03 These POPs are responsible for caching and delivering content.
Azure Content Delivery Network (CDN) reduces load times, save bandwidth and speed
responsiveness.
04 Amazon CloudFront also operates using a network of edge locations, which are distributed
globally. Requests are automatically routed to the nearest edge location
Amazon CloudFront is a fast content delivery network (CDN) service that securely delivers data,
videos, applications, and APIs to customers globally with low latency, high transfer speeds.
CACHING
REDIS MEMCACHED
DATA STRUCTURE:
• Redis supports a variety of data structures, including • Memcached primarily deals with plain key-value pairs
strings, hashes, lists, sets, and more. This makes it without support for complex data structures. It's
versatile for a wide range of use cases. optimized for simplicity and speed.
PERSISTANCE:
• Redis offers options for data persistence, allowing you to • Memcached does not provide built-in support for data
persist data to disk. This feature makes Redis suitable for persistence. meaning data is only stored in memory and
use as both a cache and a primary data store. may be lost upon restart.
USECASES:
• Commonly used for caching, real-time analytics, • Widely used for caching purposes, particularly in
messaging systems, leaderboards, and more. scenarios where a simple, fast caching layer is needed to
relieve the load on databases.
CACHING
HOTSTAR CASE STUDY
02 Edge Caching:
• Edge caching involves placing caching servers (caches) closer to the end-users at the edge of
the network. This helps in minimizing the distance data needs to travel, improving response
times
THANK YOU