ycliper

Популярное

Музыка Кино и Анимация Автомобили Животные Спорт Путешествия Игры Юмор

Интересные видео

2025 Сериалы Трейлеры Новости Как сделать Видеоуроки Diy своими руками

Топ запросов

смотреть а4 schoolboy runaway турецкий сериал смотреть мультфильмы эдисон
Скачать

System Design Interview: How Social Media News Feeds Work | Fan-Out, Caching & Scalability

Автор: programmerCave

Загружено: 2025-11-20

Просмотров: 25

Описание: Are you learning social media feed design or preparing for your next system design interview? This video gives you an in-depth, interview-focused breakdown of everything you need to know to design scalable and efficient social media feeds—like Facebook News Feed, Twitter Timeline, or Instagram Home.

Elevate your tech career with [Scaler](https://www.scaler.com/?unlock_code=M...! Join a community dedicated to transforming careers in technology. With over 15,000 successful career transitions and partnerships with 900+ placement partners, [Scaler](https://www.scaler.com/?unlock_code=M... tailored learning experiences that can help you become part of the top 1% in the tech industry.
Explore a variety of programs, participate in live classes, and gain access to valuable resources designed to enhance your skills. Whether you're looking to advance in your current role or pivot to a new career, [Scaler](https://www.scaler.com/?unlock_code=M... the support and guidance you need to succeed. Don't miss out—book your free live class today!

https://programmercave.com/

📚 What’s Covered in This Video?

1. Problem Overview:

Understand the functional requirements for a social media feed:

Users can post content (text, images, videos)

Users can follow others

Feeds must be fast, highly available, and eventually consistent

2. Read vs. Write Optimization:

The social media feed system is highly read-heavy—one post can be read by thousands or millions.

Why we optimize the write path for faster feed reads.

3. Fan-Out Mechanisms Explained:

Fan-out on Read (Pull Model):

Feeds built when requested. Suits small follower sets, but slow for large-scale.

Fan-out on Write (Push Model):

Feeds precomputed and updated when a post is created—making read queries lightning fast.

4. High-Level Architecture:

Writing a post:

Request handled by Post Service → Post DB (Cassandra recommended) → Kafka message queue

Fan-out Service:

Consumes events, gets followers, injects post ID into each follower’s feed list (Redis cache for speed)

Reading a feed:

Fast query from Redis returns a list of post IDs, hydrated later for content

5. Handling Celebrities & Scale:

Hybrid Approach:

For normal users: Fan-out-on-write

For celebrity accounts (millions of followers): Fan-out-on-read, merge celebrity posts at read time for scalability and performance

Prevent system overload when celebrities post!

6. Important Architectural Components:

Message Queues (Kafka): Decoupling for async, reliable feed updates

In-Memory Cache (Redis):

Redis LPUSH, LTRIM, and LRANGE for managing user feed lists efficiently

Follower Graph Database (Redis/NoSQL): Mapping who follows whom at massive scale

7. Edge Cases, Challenges & Best Practices:

Feed consistency vs. latency: Eventual consistency is acceptable for most cases

Caching strategies for hot feeds

Handling billions of posts and hundreds of millions of active users

🔑 Key Interview Takeaways:

Always classify feeds as read-heavy systems; justify fan-out-on-write

Know the trade-offs between fan-out-on-read, fan-out-on-write, and hybrid solutions

Use message queues and Redis list operations in your design to show real-world understanding

Demonstrate handling of celebrity problem with a scalable hybrid approach

Who Should Watch?

Software engineers prepping for system design & backend engineering interviews

Students learning distributed systems, backend architecture, or caching strategies

Developers building their own social networking apps or feeds

Boost your interview success—learn core architecture patterns, handle scaling like a pro, and impress with cache + queue knowledge.

Effective Hashtags:
#SystemDesign #SocialMediaFeed #TechInterview #NewsFeed #BackendEngineering #Scalability #FanOut #RedisCache #Kafka #Microservices #FeedArchitecture #EngineeringInterview #DistributedSystems #Programming

➡️ LIKE, SUBSCRIBE & Drop Your Interview Questions in the Comments!

Не удается загрузить Youtube-плеер. Проверьте блокировку Youtube в вашей сети.
Повторяем попытку...
System Design Interview: How Social Media News Feeds Work | Fan-Out, Caching & Scalability

Поделиться в:

Доступные форматы для скачивания:

Скачать видео

  • Информация по загрузке:

Скачать аудио

Похожие видео

System Design Interview Walkthrough: Design Twitter

System Design Interview Walkthrough: Design Twitter

Design FB News Feed System Design Interview w/ ex: Meta Senior Manager

Design FB News Feed System Design Interview w/ ex: Meta Senior Manager

Дизайн Twitter — Интервью по системному проектированию

Дизайн Twitter — Интервью по системному проектированию

Акунин ошарашил прогнозом! Финал войны уже решён — Кремль скрывает правду

Акунин ошарашил прогнозом! Финал войны уже решён — Кремль скрывает правду

Concurrency in Depth: Threads, Locks, Deadlocks & Race Conditions | High Level Design

Concurrency in Depth: Threads, Locks, Deadlocks & Race Conditions | High Level Design

The 6 Most Profitable AI Businesses to Start in 2026

The 6 Most Profitable AI Businesses to Start in 2026

Design the Facebook/Twitter News Feed | Systems Design Questions 3.0 With Ex-Google SWE

Design the Facebook/Twitter News Feed | Systems Design Questions 3.0 With Ex-Google SWE

Интервью по проектированию системы Google: Design Spotify (с бывшим менеджером по маркетингу Google)

Интервью по проектированию системы Google: Design Spotify (с бывшим менеджером по маркетингу Google)

Facebook News Feed System Design | Mock Interview FAANG 2025

Facebook News Feed System Design | Mock Interview FAANG 2025

System Design Interview: Design Ticketmaster w/ a Ex-Meta Staff Engineer

System Design Interview: Design Ticketmaster w/ a Ex-Meta Staff Engineer

Я сдал технические собеседования на отлично, зная эти основы проектирования систем

Я сдал технические собеседования на отлично, зная эти основы проектирования систем

Проектирование системы: масштабирование системы от нуля до миллиона пользователей | #systemdesign

Проектирование системы: масштабирование системы от нуля до миллиона пользователей | #systemdesign

Чем ОПАСЕН МАХ? Разбор приложения специалистом по кибер безопасности

Чем ОПАСЕН МАХ? Разбор приложения специалистом по кибер безопасности

Tiny URL — вопрос для собеседования по системному проектированию (сокращение URL)

Tiny URL — вопрос для собеседования по системному проектированию (сокращение URL)

Ночные пробуждения в 3–4 часа: как найти причину и вернуть глубокий сон.

Ночные пробуждения в 3–4 часа: как найти причину и вернуть глубокий сон.

4 часа Шопена для обучения, концентрации и релаксации

4 часа Шопена для обучения, концентрации и релаксации

Проектирование INSTAGRAM: системное проектирование новостной ленты

Проектирование INSTAGRAM: системное проектирование новостной ленты

Михаил Крутихин: почему на самом деле Трамп вводит санкции против российской нефти?

Михаил Крутихин: почему на самом деле Трамп вводит санкции против российской нефти?

За что воюют «толстые, сытые, румяные запорожцы»? Академиум

За что воюют «толстые, сытые, румяные запорожцы»? Академиум

Почему Путин смеялся на прессухе

Почему Путин смеялся на прессухе

© 2025 ycliper. Все права защищены.



  • Контакты
  • О нас
  • Политика конфиденциальности



Контакты для правообладателей: [email protected]