Amazon Interview Question
- 0of 0 votes
Design the Goodreads recommendation model.
Goodreads is a "social networking book" website that allows individuals to freely search its database of books.
- Any given user has a List of friends.
- User can add books to his/her shelve
- When a user logs in, we need to show the top 10 books owned by his friends
User1 has u2, u3, u4, u5 as friends
u2 owns b1, b2, …b10
u3 own b1, b2, b11…b20
u4 owns b1, b2, b11…b20
u5 owns b1, b33, b35, etc
topmost book is b1, second topmost book is b2 and so on.
If you maintain a cache of top 10 books in the user object for each of the users. How often will you update the cache ?
Country: United States
Interview Type: In-Person