Thursday, April 15, 2021

System design: Design distributed database | Tushar Roy - Coding Made Simple

April 15, 2021

Here is the link. 

  • Durability
  • Availability 
  • Performance
  • Consistency model - strongly consistent - 
  • No ACID - Atomicity, I - Isolation
Operations
  • create table
  • put (table, key, value
  • get (table, key) -> value
  • delete (table, key)
  • List ( keys in table in ...)
Sequence

timestamp + unique per row  + unique id
in ns                 4 bytes                  4 bytes   = 16 bytes 
8 bytes                                           2^32 

stocks 
-----------------------
Name |  Price | Seq 
A             120    seq2
B            100     seq1
C             135    seq3

put(D, 140)

Design distributed database 


No comments:

Post a Comment