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

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

Interview Pen

55 лет назад

69,383 Просмотров

Visit Our Website: https://interviewpen.com/?utm_campaign=twitter
Join Our Discord (24/7 help): https://discord.gg/Qy85PT9wj6
Join Our Newsletter - The Blueprint: https://theblueprint.dev/subscribe
Like & Subscribe: https://youtube.com/@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 high-level, 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: https://twitter.com/InterviewPen
Twitter (The Blueprint): https://twitter.com/theblueprintdev
LinkedIn: https://www.linkedin.com/company/interviewpen
Website: https://interviewpen.com/?utm_campaign=twitter
Ссылки и html тэги не поддерживаются


Комментарии: