Ocrolus Interview Experience

ocrolus logo
ocrolus
January 12, 20261 reads

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:

  1. Add a new User
    • Implement a method to register a new user
  2. Follow a User
    • Allow one user to follow another user
  3. Unfollow a User
    • Allow a user to unfollow another user they are already following
  4. Post a Tweet
    • Users should be able to post a tweet
  5. 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:

  1. Add a new User
    • Implement a method to register a new user
  2. Follow a User
    • Allow one user to follow another user
  3. Unfollow a User
    • Allow a user to unfollow another user they are already following
  4. Post a Tweet
    • Users should be able to post a tweet
  5. 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.

Discussion (0)

Share your thoughts and ask questions

Join the Discussion

Sign in with Google to share your thoughts and ask questions

No comments yet

Be the first to share your thoughts and start the discussion!