Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Tip

The Framework proposed in this space (Alex Xu) is applied to propose a design : Getting started - a framework to propose...

Introduction

News feed is the constantly updating list of stories in the middle of the home page. It includes status updates, photos, links, video, etc.

On this page.

Table of Contents

Part 1 - Understand the problem and establish design scope

Accessible via Mobile App or/and Web App ?

Both

Features ?

Publish and See other posts (from other users)

How is sorted the news feed ?

Reverse chronological order

How many friends user can have ?

5000

Traffic volume ?

10 million per day, active users

Contain images, videos or just text ?

All.

Part 2 - High-Level design

2 flows :

  • Feed publishing → user publishes a post, corresponding data is written into cache and DB.

  • Newsfeed building → news feed is built by aggregating friends’ posts in revers chronological order.

Part 3 - Deep dive design

Flow Feed Publishing

Focus is on Web servers and the fanout service.

Image Added

Flow Newsfeed Retrieval

Focus is on the CDN and the News Feed Service

Part 4 - Pros & Cons