What is Distributed Caching? Explained with Redis!

Share this & earn $10
Gaurav Sen
Published at : 05 Nov 2021
614380 views
12621
379

Caching in distributed systems is an important aspect for designing scalable systems. We first discuss what is a cache and why we use it. We then talk about what are the key features of a cache in a distributed system.

The cache management policies of LRU and Sliding Window are mentioned here. For high performance, the cache eviction policy must be chosen carefully. To keep data consistent and memory footprint low, we must choose a write through or write back consistency policy.

Cache management is important because of its relation to cache hit ratios and performance. We talk about various scenarios in a distributed environment.

System Design Video Course:
https://get.interviewready.io/courses/system-design-interview-prep

A complete course on how systems are designed. Along with video lectures, the course has architecture diagrams, capacity planning, API contracts and evaluation tests.

Use the coupon code ‘earlybird’ for a 20% discount!

System Design Playlist: https://www.youtube.com/playlist?list=PLMCXHnjXnTnvo6alSjVkgxV-VH6EPyvoX
Designing Data Intensive Applications - https://amzn.to/2yQIrxH

Code: https://github.com/coding-parrot/Low-Level-Design/tree/master/distributed-cache

You can follow me on:
Facebook: https://facebook.com/gkcs0/
Quora: https://www.quora.com/profile/Gaurav-Sen-6
LinkedIn: https://www.linkedin.com/in/gaurav-sen-56b6a941/
Twitter: https://twitter.com/gkcs_

References:
Guava Cache - https://github.com/google/guava/wiki/CachesExplained
LRU - http://www.mathcs.emory.edu/~cheung/Courses/355/Syllabus/9-virtual-mem/LRU-replace.html
https://en.wikipedia.org/wiki/Cache_replacement_policies
Implementation of Sliding Window Cache policies (Caffeine) - https://github.com/ben-manes/caffeine
http://highscalability.com/blog/2016/1/25/design-of-a-modern-cache.html
https://docs.microsoft.com/en-us/previous-versions/msp-n-p/dn589802(v%3dpandp.10)

#SystemDesign #Caching #DistributedSystems

system designinterview preparationinterviews

How to Get Sturdy Dance Tutorial

How to Get Sturdy Dance Tutorial

School rooms

School rooms

Taking Good Care

Taking Good Care

WORKING At a FAST FOOD RESTAURANT! **WE GOT FIRED** | The Royalty Family

WORKING At a FAST FOOD RESTAURANT! **WE GOT FIRED** | The Royalty Family

Relatıve Clause : when-where-whose-in which-on which-at which#Ydt #Yds #Yökdil #

Relatıve Clause : when-where-whose-in which-on which-at which#Ydt #Yds #Yökdil #

Pencilmate Needs A Bathroom! - Pencilmation Cartoons

Pencilmate Needs A Bathroom! - Pencilmation Cartoons

Lil Baby - Consistent

Lil Baby - Consistent

ERA - Ameno

ERA - Ameno

Barcelona vs Dynamo Kyiv, Champions League | Ansu Fati set to RENEW? | Dest to start as a winger?

Barcelona vs Dynamo Kyiv, Champions League | Ansu Fati set to RENEW? | Dest to start as a winger?

Significant financing components under the new revenue standard (ASC 606)

Significant financing components under the new revenue standard (ASC 606)

I Completed Every Mission in Rust

I Completed Every Mission in Rust

Bloody Hawk  - Νύστα (Official Video)

Bloody Hawk - Νύστα (Official Video)

Luke Chiang Playlist (♪ songs that you can vibe to anytime)

Luke Chiang Playlist (♪ songs that you can vibe to anytime)

Panic buying leads to U.K. fuel shortage

Panic buying leads to U.K. fuel shortage

In Addition to in English Grammar  | Use of In Addition to | Spoken English Learning Videos part 101

In Addition to in English Grammar | Use of In Addition to | Spoken English Learning Videos part 101

Unfavorable Semicircle - Youtube's Strangest Channel

Unfavorable Semicircle - Youtube's Strangest Channel

BOTTLE FLIP ON HEAD CHALLENGE! (Q&A w/ Robust)

BOTTLE FLIP ON HEAD CHALLENGE! (Q&A w/ Robust)

Sunday Service Choir - Excellent (Audio)

Sunday Service Choir - Excellent (Audio)

Twine 2.0 - Introduction / Tutorial #1

Twine 2.0 - Introduction / Tutorial #1

Martin Garrix feat. Bono & The Edge - We Are The People [UEFA EURO 2020 Song] (Official Video)

Martin Garrix feat. Bono & The Edge - We Are The People [UEFA EURO 2020 Song] (Official Video)

The Importance of Intensity in Physical Activity

The Importance of Intensity in Physical Activity

10 Survival Riddles Make You Think Carefully Before Choosing

10 Survival Riddles Make You Think Carefully Before Choosing

Camila Cabello - Good 4 U (Olivia Rodrigo cover) in the Live Lounge

Camila Cabello - Good 4 U (Olivia Rodrigo cover) in the Live Lounge

Offensive fouls that are ommitted more often than you think 자주나오는 오펜스파울 상황

Offensive fouls that are ommitted more often than you think 자주나오는 오펜스파울 상황

Imagine Dragons - Believer (Thunder) | Cover by One Voice Children's Choir

Imagine Dragons - Believer (Thunder) | Cover by One Voice Children's Choir

In place,put in place very new concept औक़ात दिखाना,

In place,put in place very new concept औक़ात दिखाना,

S1mba ft. KSI - Loose [Music Video] | GRM Daily

S1mba ft. KSI - Loose [Music Video] | GRM Daily

Teen Models 2020 • Top 12

Teen Models 2020 • Top 12

MAJOR GRAND FINAL! NaVi vs G2 vs PGL Major Stockholm 2021 - HIGHLIGHTS l CSGO

MAJOR GRAND FINAL! NaVi vs G2 vs PGL Major Stockholm 2021 - HIGHLIGHTS l CSGO

When I Grow Up | Kids Songs | Super Simple Songs

When I Grow Up | Kids Songs | Super Simple Songs

6 Hours Mozart for Studying, Concentration, Relaxation

6 Hours Mozart for Studying, Concentration, Relaxation

House Tour Q&A w Architect & Home Owner who built his own Dream Home! 🌳An Architects Own Tiny Home

House Tour Q&A w Architect & Home Owner who built his own Dream Home! 🌳An Architects Own Tiny Home

Roommate WON'T BUY Groceries, What Happens Is Shocking | Dhar Mann

Roommate WON'T BUY Groceries, What Happens Is Shocking | Dhar Mann

Stephen Marley - Bob Marley 75th Celebration (Pt. 2)

Stephen Marley - Bob Marley 75th Celebration (Pt. 2)

Maino ft. T-Pain - All of the Above

Maino ft. T-Pain - All of the Above

Would Like (English grammar) (polite english, offers, invitations)

Would Like (English grammar) (polite english, offers, invitations)

Your Mind is an Excellent Servant, but a Terrible Master - David Foster Wallace

Your Mind is an Excellent Servant, but a Terrible Master - David Foster Wallace

Mila J feat. Ty Dolla $ing - My Main (Lyric Video)

Mila J feat. Ty Dolla $ing - My Main (Lyric Video)

Astronauts Confess about Mysterious Things They’ve Seen and Experienced in Space!

Astronauts Confess about Mysterious Things They’ve Seen and Experienced in Space!

ayansh को पत्रकार ही मरना चाहते हैं ayansh ki maa kya boli live me ?

ayansh को पत्रकार ही मरना चाहते हैं ayansh ki maa kya boli live me ?

ABBA - The Name Of The Game (Video)

ABBA - The Name Of The Game (Video)

James Arthur - Naked

James Arthur - Naked

Orkun Kökçü Is A SUPERB Midfielder!

Orkun Kökçü Is A SUPERB Midfielder!

James Taylor - Handy Man (Official Audio)

James Taylor - Handy Man (Official Audio)

Narcissists are AMAZED how you command an AUDIENCE WITH CONFIDENCE this is WHY~

Narcissists are AMAZED how you command an AUDIENCE WITH CONFIDENCE this is WHY~

Normally

Normally

When is a pandemic over?

When is a pandemic over?

Lionel Messi ● Overall 2015 ● HD

Lionel Messi ● Overall 2015 ● HD

Staniski feat Saël x Oswald  -They will Never Know

Staniski feat Saël x Oswald -They will Never Know