Saturday, July 27, 2019

Redis system design | Distributed cache System design

Here is the link.

It is better for me to slow down and learn some basics first. I like to spend 30 minutes to watch the video, and take some notes for my first watching.


Cashing best practice

Valid
Cache miss


Features/ Estimation
1) TeraByte
2) 50k to 1 M QPS
3) close to 1 ms latency
4) LRU (Eviction)
5) 100  Availability
6) Scalable


1. Write through
2. Write around
3. Write back

Cache access pattern

-> C <--> DB

LRU

Hashmap, double linked list -> data structure for LRU

LRU - frequence of visit -> Another video to watch

Fault tolerant

1. Regular interval snapshot
2. Log Reconstruction




  

No comments:

Post a Comment