Ocrolus
Quick Navigation
Summary
This post details an interview experience with Ocrolus, focusing on a system design question to build a Twitter-like social media platform.
Full Experience
Round 1
Design a Twitter class that simulates a simplified version of a social media platform. Your implementation should support the following functionalities:
- Add a new User
- Implement a method to register a new user
- Follow a User
- Allow one user to follow another user
- Unfollow a User
- Allow a user to unfollow another user they are already following
- Post a Tweet
- Users should be able to post a tweet
- Get User Feed
- Retrieve the 10 most recent tweets from the user and it's follower
- Read latency should be good
Some followups on Kafka Streaming and Composite Indexing when to and when not to use it.
Interview Questions (1)
Q1
Design Twitter
System Design
Design a Twitter class that simulates a simplified version of a social media platform. Your implementation should support the following functionalities:
- Add a new User
- Implement a method to register a new user
- Follow a User
- Allow one user to follow another user
- Unfollow a User
- Allow a user to unfollow another user they are already following
- Post a Tweet
- Users should be able to post a tweet
- Get User Feed
- Retrieve the 10 most recent tweets from the user and it's follower
- Read latency should be good
Some followups on Kafka Streaming and Composite Indexing when to and when not to use it.