Partition Key for sharding in Twitter/Facebook
Difficulty: EASYCategory: InterviewExperienceFrequency: 1Asked On 2021-06-28Added By Anonymous
Source: Link
Company: Meta (Facebook)
Role: unknown
Interview Stage: unknown
Location: unknown
Year: unknown
Original Post Content:
Hello,
What should be the Partition Key for sharding in Twitter/Facebook Database. This was asked me in an interview. I told geolocation(latitude and longitude) but he was not satisfied. What is the ideal strategy and why. Consider we have users all around the world and main focus is on generating user and home timeline.