Open navigation menu
Close suggestions
Search
Search
en
Change Language
Upload
Sign in
Sign in
Download free for days
0 ratings
0% found this document useful (0 votes)
68 views
System Caching - Part 2
Uploaded by
satya
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content,
claim it here
.
Available Formats
Download as PDF or read online on Scribd
Download now
Download
Save System Caching - Part 2 For Later
Download
Save
Save System Caching - Part 2 For Later
0%
0% found this document useful, undefined
0%
, undefined
Embed
Share
Print
Report
0 ratings
0% found this document useful (0 votes)
68 views
System Caching - Part 2
Uploaded by
satya
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content,
claim it here
.
Available Formats
Download as PDF or read online on Scribd
Download now
Download
Save System Caching - Part 2 For Later
Carousel Previous
Carousel Next
Save
Save System Caching - Part 2 For Later
0%
0% found this document useful, undefined
0%
, undefined
Embed
Share
Print
Report
Download now
Download
You are on page 1
/ 7
Search
Fullscreen
47723, 205 PM Acrash Course in Caching - Part 2 - by Alox Xu A Crash Course in Caching - Part 2 Alex Xu averse Ow) This is part 2 of the Crash Course in Caching series. Distributed cache A distributed cache stores frequently accessed data in memory across multiple nodes. The cached data is partitioned across many nodes, with each node only storing a portion of the cached data. The nodes store data as key-value pairs, where each key is deterministically assigned to a specific partition or shard. When a client requests data, the cache system retrieves the data from the appropriate node, reducing the load on the backing storage. ‘There are different sharding strategies, including modulus, range-based and consistent hashing. Modulus sharding Modulus sharding involves assigning a key to a shard based on the hash value of the key modulo the total number of shards. Although this strategy is simple, it can result in many cache misses when the number of shards is increased or decreased. This is because most of the keys will be redistributed to different shards when the pool is resized. htpssblog.bytebylego.comipla-crash-course-n-caching-par-2 w417128, 205 PM Acrash Course in Caching - Part 2 - by Alox Xu ‘Modulus sharding Range-based sharding Range-based sharding assigns keys to specific shards based on predefined key ranges. With this approach, the system can divide the key space into specific ranges and then map each range to a particular shard. Range-based sharding can be useful for certain business scenarios where data is naturally grouped or partitioned in specific ranges, such as geolocation-based data or data related to specific customer segments. Range-based sharding 68) (6 15) (30) cS SS = Ss ———— Ss to
' 7 : 2. cache miss \ \ 3. read from storage ! & write to cache \ Storage ; \ Read-through ByteByteGo Newsletter t jet Start trial Sign in htpssblog.bytebylego.comipla-crash-course-n-caching-par-2417128, 205 PM Acrash Course in Caching - Part 2 - by Alox Xu © 2023 ByteByteGo - Privacy - Terms - Collection notice Substack is the home for great writing htpssblog.bytebylego.comipla-crash-course-n-caching-par-2 Ww
You might also like
Spring Boot Basics
PDF
No ratings yet
Spring Boot Basics
9 pages
Microsoft Tree Questions
PDF
No ratings yet
Microsoft Tree Questions
29 pages
Multithreading: The Java Thread Model
PDF
No ratings yet
Multithreading: The Java Thread Model
15 pages
Rethinking Classical Concurrency Patterns
PDF
No ratings yet
Rethinking Classical Concurrency Patterns
121 pages
Caching: Application Server Cache
PDF
No ratings yet
Caching: Application Server Cache
4 pages
Caching Strategy in Relational Database and Redis
PDF
No ratings yet
Caching Strategy in Relational Database and Redis
21 pages
DISTRIBUTEDSYSTEMSDesignGurus Io
PDF
No ratings yet
DISTRIBUTEDSYSTEMSDesignGurus Io
17 pages
Designing Twitter - Grokking The System Design Interview
PDF
No ratings yet
Designing Twitter - Grokking The System Design Interview
14 pages
Amazon Interview
PDF
No ratings yet
Amazon Interview
1 page
Learning-Notes - Books - Designing-Data-Intensive-Applications - MD at Master Keyvanakbary - Learning-Notes
PDF
No ratings yet
Learning-Notes - Books - Designing-Data-Intensive-Applications - MD at Master Keyvanakbary - Learning-Notes
91 pages
Systemdesign
PDF
No ratings yet
Systemdesign
36 pages
Data Structure and Algorithms For Interviews
PDF
No ratings yet
Data Structure and Algorithms For Interviews
4 pages
Black Friday Flash Sale - by Alex Xu
PDF
No ratings yet
Black Friday Flash Sale - by Alex Xu
2 pages
ACID Properties in DBMS.8
PDF
No ratings yet
ACID Properties in DBMS.8
4 pages
All DSA Pattern to crack any SDE Interview-1
PDF
No ratings yet
All DSA Pattern to crack any SDE Interview-1
11 pages
White Paper Architects Guide To Implementing Event Driven Architecture
PDF
No ratings yet
White Paper Architects Guide To Implementing Event Driven Architecture
31 pages
Cloud Native Approach With Microservices
PDF
No ratings yet
Cloud Native Approach With Microservices
13 pages
001 - Grokking The Advanced System Design Interview - Learn Interactively - WWW - Educative.io
PDF
No ratings yet
001 - Grokking The Advanced System Design Interview - Learn Interactively - WWW - Educative.io
9 pages
Linkedin Tagged LeetCode Problems
PDF
No ratings yet
Linkedin Tagged LeetCode Problems
7 pages
10 System Designed Interview Questions)
PDF
No ratings yet
10 System Designed Interview Questions)
19 pages
The Best of Bytebytego'S Newsletter: How Many Api Architecture Styles Do You Know?
PDF
No ratings yet
The Best of Bytebytego'S Newsletter: How Many Api Architecture Styles Do You Know?
72 pages
Scaling To Millions Users
PDF
No ratings yet
Scaling To Millions Users
21 pages
SQL Interview Questions
PDF
No ratings yet
SQL Interview Questions
39 pages
Node Interview Questions
PDF
No ratings yet
Node Interview Questions
21 pages
Educative System Design Part3
PDF
No ratings yet
Educative System Design Part3
51 pages
Technical Interview Questions
PDF
No ratings yet
Technical Interview Questions
8 pages
Vinay Reddy G Java
PDF
No ratings yet
Vinay Reddy G Java
7 pages
Dsa
PDF
No ratings yet
Dsa
178 pages
25 Golden Rules To Answer in A System Design Interview
PDF
No ratings yet
25 Golden Rules To Answer in A System Design Interview
28 pages
System-Design-Primer - Learn How To Design Large-Scale Systems. Prep For The System Design Interview. Includes Anki Flashcards
PDF
No ratings yet
System-Design-Primer - Learn How To Design Large-Scale Systems. Prep For The System Design Interview. Includes Anki Flashcards
78 pages
Node - Js - Interview Questions - Tutorialspoint
PDF
No ratings yet
Node - Js - Interview Questions - Tutorialspoint
12 pages
Microservices Architecture
PDF
No ratings yet
Microservices Architecture
2 pages
Java Titbits
PDF
No ratings yet
Java Titbits
24 pages
Algorithms (Complete Course) :-Btech CSE: Topics
PDF
No ratings yet
Algorithms (Complete Course) :-Btech CSE: Topics
4 pages
Learn DSA
PDF
No ratings yet
Learn DSA
11 pages
Java Main Points
PDF
No ratings yet
Java Main Points
76 pages
Bedtime Kubernetes Stories For DevOps Architects PDF
PDF
No ratings yet
Bedtime Kubernetes Stories For DevOps Architects PDF
15 pages
Java Performance Tuning Ver 1
PDF
No ratings yet
Java Performance Tuning Ver 1
72 pages
Dsa
PDF
No ratings yet
Dsa
21 pages
Java Basic Interview Questions: 1. Why Is Java A Platform Independent Language?
PDF
No ratings yet
Java Basic Interview Questions: 1. Why Is Java A Platform Independent Language?
32 pages
Advanced Java
PDF
No ratings yet
Advanced Java
50 pages
JVM (Java Virtual Machine)
PDF
No ratings yet
JVM (Java Virtual Machine)
34 pages
How Hashmap Works in Java
PDF
No ratings yet
How Hashmap Works in Java
6 pages
Exam Microservices
PDF
No ratings yet
Exam Microservices
3 pages
100 React Js Interview Questions!
PDF
No ratings yet
100 React Js Interview Questions!
7 pages
SD Blueprint Merged
PDF
No ratings yet
SD Blueprint Merged
160 pages
Hands on.reactive.programming.in.Spring.5 Images
PDF
No ratings yet
Hands on.reactive.programming.in.Spring.5 Images
65 pages
System Design Concepts
PDF
No ratings yet
System Design Concepts
36 pages
DSA & Java Lectures
PDF
No ratings yet
DSA & Java Lectures
54 pages
What Is Elastic Load Balancing
PDF
No ratings yet
What Is Elastic Load Balancing
3 pages
Microservices Architecture Using Spring Boot and Netflix Infrastructure
PDF
No ratings yet
Microservices Architecture Using Spring Boot and Netflix Infrastructure
6 pages
Microservices 1640736150
PDF
No ratings yet
Microservices 1640736150
9 pages
4.2.4 - Data Source Architectural Patterns
PDF
No ratings yet
4.2.4 - Data Source Architectural Patterns
20 pages
New Year Gift - Curated List of Top 75 LeetCode Questions
PDF
No ratings yet
New Year Gift - Curated List of Top 75 LeetCode Questions
5 pages
Lecture 07 - Key-Value Databases
PDF
No ratings yet
Lecture 07 - Key-Value Databases
75 pages
Strategy Pattern
PDF
No ratings yet
Strategy Pattern
10 pages
SD Interview
PDF
No ratings yet
SD Interview
7 pages
Java Notes
PDF
No ratings yet
Java Notes
14 pages
Singleton Pattern
PDF
No ratings yet
Singleton Pattern
6 pages
A Crash Course in Caching - Part 2 - by Alex Xu
PDF
No ratings yet
A Crash Course in Caching - Part 2 - by Alex Xu
9 pages