system-design-primer icon indicating copy to clipboard operation
system-design-primer copied to clipboard

For the twitter problem, why is the user_id 32 bytes and a tweet_id only 8 bytes?

Open danielyaa5 opened this issue 5 years ago • 1 comments

I would assume there would be more tweet_ids than user_ids. Also when showing the schema for redis memcache, user_id is referred to as an 8 byte value.

danielyaa5 avatar Dec 02 '19 02:12 danielyaa5

I also want to know what type of ID is 32 bytes, as far as I know, GUID is 16 bytes (128 bits). Also, integers are 64 bits (8 bytes only) so this is too big for integers also.

nour-s avatar Oct 08 '22 19:10 nour-s