Grow your YouTube views, likes and subscribers for free
Get Free YouTube Subscribers, Views and Likes

System Design for Twitter (Timeline Live Updates Tweeting) | System Design Interview Prep

Follow
Interview Pen

Visit Our Website: https://interviewpen.com/?utm_campaig...'>https://interviewpen.com/?utm_campaig...
Join Our Discord (24/7 help):   / discord  
Join Our Newsletter The Blueprint: https://theblueprint.dev/subscribe
Like & Subscribe:    / @interviewpen  

This is an example of a full video available on interviewpen.com. Check out our website to find more premium content like this!

Problem Statement:
Provide a highlevel, barebones, design for a service like Twitter.

*Users will be able to:*
Tweet (create text/media posts)
Follow other users
See a timeline (syndicated from the posts of those they follow)

*Assumptions*
You can assume the user is authenticated during interaction with your design

*Additional Resources*
OSI Model: https://en.wikipedia.org/wiki/OSI_model) (layers of system interaction

Table of Contents:
0:00 Supported Functionality
1:40 Basic Visuals & App Design
2:41 Visit interviewpen.com
3:00 Endpoints
4:54 The Timeline
9:06 Starting Design (naive)
11:11 Database Schema
15:15 Load Management
17:35 Scaling the Database
19:21 Breaking the System Up
20:57 Sharding the Database
26:46 Realtime Pushes
28:27 Timeline Cache
30:24 Tweet Fanout & Message Queue
32:45 The Full Design
34:44 Recap
36:01 Extension
37:03 Visit interviewpen.com

Socials:
Twitter:   / interviewpen  
Twitter (The Blueprint):   / theblueprintdev  
LinkedIn:   / interviewpen  
Website: https://interviewpen.com/?utm_campaig...'>https://interviewpen.com/?utm_campaig...

posted by pohodiliav