Courses / Frontend System Design, with JavaScript Foundations / Chapter 16
Module 7 · Design Problems: Method, Feed and Video · Chapter 16 of 21
Design a News Feed
Builds on The DOM, Events and Observers, Non-functional Requirements, Frontend Fundamentals: Components, State, Data and Rendering, Performance and Optimisation, API Styles, Protocols and Data Formats, Security in Frontend Systems and A Step-by-Step Method for Frontend Design Sessions. Next up: Design a Video Streaming Platform.
Part 1 · Requirements and scope
What the feed must do
A news feed looks like the simplest screen in a product, and it hides a good share of the hard parts of frontend work. This chapter designs one for a phone, following the seven steps of the method chapter.
A feed is a list of posts that the reader scrolls through and acts on. A plain list hides four hard problems: it never ends, it changes while you read it, every row has a button that writes to the server, and every row can carry a picture.
Step one produces three lists. The functional requirements, written as actions the reader can take, are these.
- Read the feed, newest posts first.
- Keep scrolling, and have older posts load without pressing anything.