Interview Bootcamp
Ask Author
Back to course home

0% completed

Vote For New Content
I think some sections are misplaced in this problem.

a7mad.3bass

Sep 12, 2023

the part at the end which starts with:

"We would need 31 bits to store this number. Since on average we are expecting 1150 new tweets per second, we can allocate 17 bits to store auto incremented sequence; this will make our TweetID 48 bits long. So, every second we can store (2^17 => 130K) new tweets. We can reset our auto incrementing sequence every second. For fault tolerance and better performance, we can have two database servers to generate auto-incrementing keys for us, one generating even numbered keys and the other generating odd numbered keys."

till the end of the solution.. belongs before section 9

3

0

Comments
Comments
A
Aniket Joshi2 years ago

yep, section 8 is the one missing