O'Reilly logo

Flask Blueprints by Joël Perras

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Social features – friends and followers

Many modern web applications allow users to friend or follow other users and be friended or followed themselves. While this concept may be simple to explain in words, there are numerous implementations and variations, all of which are optimized for their particular use-cases.

In this situation, where we want to implement a newsfeed-like service that displays information from a selected pool of users in an aggregated timeline that is unique for each authenticated user, the following are the three categories of approaches that may be used:

  • Fan-out on Write: Each newsfeed for a user is stored in a separate logical container with the intention of making reads exceedingly simple, fast, and straightforward, at the ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required