Scale Wars #5 — Twitter: The Fan-out Pattern and the Architecture Behind 140 Characters
The article discusses Twitter's architectural strategies for managing the challenges of updating timelines for users with large followings. It outlines two main approaches: Fan-out-on-Write and Fan-out-on-Read, and how Twitter implemented a hybrid solution based on user follower counts. This approach allows normal users to benefit from fast reads while managing the storage demands of celebrity users effectively.
- ▪Twitter faced a significant challenge in updating timelines for users with millions of followers.
- ▪The Fan-out-on-Write strategy writes tweets to all followers' timelines at the time of posting, while Fan-out-on-Read merges tweets when users open their timelines.
- ▪Twitter's hybrid solution categorizes users based on follower count to optimize performance and storage.
Opening excerpt (first ~120 words) tap to expand
try { if(localStorage) { let currentUser = localStorage.getItem('current_user'); if (currentUser) { currentUser = JSON.parse(currentUser); if (currentUser.id === 2891163) { document.getElementById('article-show-container').classList.add('current-user-is-article-author'); } } } } catch (e) { console.error(e); } Mehmet TURAÇ Posted on May 26 Scale Wars #5 — Twitter: The Fan-out Pattern and the Architecture Behind 140 Characters #systemdesign #architecture #backend #programming Scale Wars (8 Part Series) 1 Scale Wars — The Architectural Secrets of Tech Giants 2 Scale Wars #1 — Netflix: The Company That Killed the Monolith ... 4 more parts...
…
Excerpt limited to ~120 words for fair-use compliance. The full article is at DEV.to (Top).