We can have dedicated servers that are continuously generating users’ News Feeds and storing them in a ‘UserNewsFeed’ table. So whenever any user needs the latest photos for their News-Feed, we will simply query this table and return the results to the user.
Wouldn’t this cost a lot of space. We are pre-generating gradually, but what if the user is not an active users (only open once in a year) ?