System Design Flashcards
2^10
1024
Gigabyte is 10 power of
10^9
Web socket
Bidirectional connection mainly used for chat
TCP server port limit
16 bit port number =
64,000 open connections max per server
Count min sketch
Get approximate counts of large number of keys by using multiple hash functions with fixed size array.
Increment count in each array on hit.
The approximate count is the min of the hash of key from all arrays
Spatial data
Grids and quad trees
1 million requests per day is how many per second
12 or 10 requests per second
1 billion bytes is how many in gb
33
How does relational database achieve atomicity ?
Write ahead logging
How does relational database achieve isolation ?
Locking records/rows for reads or writes