Distributed Cache Writes: What You Have To Know | Systems Design Interview 0 to 1 With Ex-Google SWE

  Рет қаралды 5,735

Jordan has no life

Jordan has no life

Күн бұрын

Пікірлер: 22
@dearozero3631
@dearozero3631 Жыл бұрын
I am ex-Google and feel like I've studied content from every popular creator out there. I feel this is clearly among the best system design content out there. You helped me earn a number of offers ranging from pre-seed startups to FAANG, including a spectacular offer for L6 TL at Amazon! I'm regularly shocked by the gap in quality from your content compared to everything else. Your communication style is concise, clear, and deeply technical. I literally watch your videos on repeat. Thank you so much for taking the time to contribute your experience back to the tech community. Keep ramming, gigachads.
@jordanhasnolife5163
@jordanhasnolife5163 Жыл бұрын
Really appreciate the kind words! Best of luck in your new role, well done!!
@ricardobedin2953
@ricardobedin2953 11 ай бұрын
The way you throw random jokes and your super clear explanation makes consuming your content a piece of cake. Keep up the great work.
@jordanhasnolife5163
@jordanhasnolife5163 11 ай бұрын
Thanks Ricardo!
@atharvaI
@atharvaI 11 ай бұрын
your silly jokes remind me of how I was when I was your age, never change dude. Work harder to keep this energy.
@jordanhasnolife5163
@jordanhasnolife5163 11 ай бұрын
Haha oh man if I work any harder for that I may lose my job
@marcosoliveira1538
@marcosoliveira1538 4 ай бұрын
Your videos are 10 / 10
@dibll
@dibll 11 ай бұрын
Hey Jordan, I am not sure I understood the usage of distributed lock here. so lets say client1 writes value 10 to cache and grabs a distributed lock for that entry by talking to the locking service then when client 2 reads it from DB it knows it first needs to grab the lock so it goes the locking service, locking service notifies client1 , client1 updates the cache and release the lock and then client2 call is completed.Is my understanding right? If it is that means both client1 and client2 knows in advance they need to grab the lock before writing/reading values?
@jordanhasnolife5163
@jordanhasnolife5163 11 ай бұрын
Yep that's correct
@dind7926
@dind7926 Жыл бұрын
hey Jordan great video (when did you not have one), so for the write-around we are delegating the cache update to the read request? So on the cache miss during the read, we want to update the cache with the data from DB? Or am I missing something?
@jordanhasnolife5163
@jordanhasnolife5163 Жыл бұрын
That pretty much sounds right to me!
@arshadhammad
@arshadhammad 9 ай бұрын
Yes, that's the whole point. When you are there to read the data and the cache miss occurs, what choice do you have? You can only get data from the database. Then you return that data over to the user and save this data in the cache for the next requests.
@Andrew_J123
@Andrew_J123 Жыл бұрын
Hey just asking but do you think you'll get into ml systems design? If not can you sort of describe your process for learning what you present on the channel, i.e. starting with DDIA, then looking at the documentation for databases, etc so I can try to do the same if I ever go down that route. Also I believe you mentioned you switched from tech to finance, do you have to set up ml systems there?
@jordanhasnolife5163
@jordanhasnolife5163 Жыл бұрын
Very little ML in my role in particular, and to be honest my company just isn't that into it it's not super practical in HFT but companies are starting to try to apply it more. I think you basically just named my learning process haha. I was looking into vector databases the other day to see if they're worth talking about, and as of now the answer is maybe ;). It's a lot of math
@Andrew_J123
@Andrew_J123 Жыл бұрын
@@jordanhasnolife5163 Ah cool! Thanks for the answer and I also appreciate the vids!
@sahilguleria6976
@sahilguleria6976 2 ай бұрын
Hello Jordan, Regarding the distributed lock, Does the cache grabs the lock till the data is eventually written into DB? And will this be transaction specific lock or can be shared when multiple client updates the data in cache?
@jordanhasnolife5163
@jordanhasnolife5163 2 ай бұрын
1) Yes 2) It would be a row level lock (or if touching multiple grab them all)
@mishanenahov3382
@mishanenahov3382 Жыл бұрын
What is YOLO?
@jordanhasnolife5163
@jordanhasnolife5163 Жыл бұрын
"yo only live once" Aka no replication and hope your things don't break
@introvertidiot1502
@introvertidiot1502 11 ай бұрын
@@jordanhasnolife5163 aka the optimistic anxiety control
@Anonymous-ym6st
@Anonymous-ym6st 6 ай бұрын
I am wondering if the read / write cache are usually the same one cache in system? And if read cache has pattern like read-through, read-around, and read-back as well?
@jordanhasnolife5163
@jordanhasnolife5163 6 ай бұрын
Unless you're doing single leader replication with your caches, you'd be able to write to any. As for your second question, these are not policies I've heard of
Design a High-Throughput Logging System | System Design
8:23
Interview Pen
Рет қаралды 46 М.
SISTER EXPOSED MY MAGIC @Whoispelagheya
00:45
MasomkaMagic
Рет қаралды 16 МЛН
This dad wins Halloween! 🎃💀
01:00
Justin Flom
Рет қаралды 25 МЛН
Когда отец одевает ребёнка @JaySharon
00:16
История одного вокалиста
Рет қаралды 16 МЛН
REAL 3D brush can draw grass Life Hack #shorts #lifehacks
00:42
MrMaximus
Рет қаралды 12 МЛН
Episode 036 Becoming A Published Author is Fun   Time!
17:53
TR Independent Books
Рет қаралды 1
SISTER EXPOSED MY MAGIC @Whoispelagheya
00:45
MasomkaMagic
Рет қаралды 16 МЛН