Storage
Last updated
Last updated
Partition is needed because the write throughput for tweet table is 4600 per second in peak hours.
User ID:
Cons: Some users could create lots of tweets. And sharding by user id could create hot entries. This could be relieved by setting upper limit for tweet per day (Each user publish at most 50 tweets per day.)
Tweets (Tweet service)
Images
Videos