Chase DuBois

2%
Flag icon
The final twist of the Twitter anecdote: now that approach 2 is robustly implemented, Twitter is moving to a hybrid of both approaches. Most users’ tweets continue to be fanned out to home timelines at the time when they are posted, but a small number of users with a very large number of followers (i.e., celebrities) are excepted from this fan-out. Tweets from any celebrities that a user may follow are fetched separately and merged with that user’s home timeline when it is read, like in approach 1. This hybrid approach is able to deliver consistently good performance.
Robert and 1 other person liked this
Robert
· Flag
Robert
I guess when you follow someone (non-celebrity), it backfills your timeline?
Brian Rosenblat
· Flag
Brian Rosenblat
chase, you've become quite the SME on social network architecture :)
Brian
· Flag
Brian
@robert: yes, i believe so. nice thing is to use something like redis that you can insert entries in place without having to re-write the entire feed to cache.
Designing Data-Intensive Applications: The Big Ideas Behind Reliable, Scalable, and Maintainable Systems
Rate this book
Clear rating
Open Preview