Grokking the Advanced System Design Interview
Ask Author
Back to course home

0% completed

Vote For New Content
"Server B sees a write to key k1, with value bax. It assigns it a version of [B:...

Amey Naik

Sep 19, 2021

"Server B sees a write to key k1, with value bax. It assigns it a version of [B:1]."

0

0

Comments
Comments
A
Amey Naik4 years ago

Why are we writing to B? If 'A" node is missing, aren't we supposed to write to the hinted handoff buffer?

Design Gurus
Design Gurus4 years ago

In the given example, the system is maintaining two copies. Every write is replicated to both servers 'A' and 'B'. See step '1' and step '2': "This write also gets replicated to server B."

Each write can be handled by one of the servers and then replicated to the other...

P
Punj Prakash2 years ago

I thought that request will always go to Coordinator. In this case "A". If A is up, it will write in local buffer and if replica B is down it can write to hinted repilca. Why any request will go to B if A is up?

On this page

What is clock skew?

What is a vector clock?

Conflict-free replicated data types (CRDTs)

Last-write-wins (LWW)