Design the Facebook Credit system which is a application where users can buy/trade virtual currency and can use the virtual currency to purchase Facebook services, like paid apps.
Design a system to detect typos and provide suggestions to users.
How will you design TinyUrl?
How will you design facebook newsfeed. Focus was on a design which could handle the huge number of status updates and display them on each of the user’s friend’s wall.
Facebook system design question from careercup
Question: Design a component that implements the following functionality..
1) Record an Event (For the sake of simplicity, treat the Event as an integer code)
2) Return the number of Events recorded in the last one minute.
3) Return the number of Events recorded in the last one hour.
i.e implement the following interface
- Design the interface first
- Give the implementation detail.
Open ended question:
What if there isn’t enough storage available to store each individual event ?
Say you need to design a web application which needs to support friends of
friends function(like in linked in, when you search a person, it will show
you if this person is linked with you, your connection or your connections’
conection…), we expect to have millions of users and each user may have
thousands of friends, how would you design/implement this function to make
Consider only crops and animals for now.
Whats classes will you have?
How will you handle interactions between various objects?
What design patterns can you use?
How will you handle millions of users?
How will you design the backend for facebook. To handle millions of users. Explain the following transactions
1) Adding/Deleting a friend
2) Friend suggestions
$mem->set(‘key1′, ’This is first value’, 0, 60);