All guide activities

CH-12 · CHAPTER REVIEW

Worked interview photo sharing and feeds

Solve these two questions after studying the chapter. State your assumptions and explain your reasoning.

Read. Try. Defend.

Companion to the Buildfest System Design guides.

Chapter review: two questions

Attempt both questions before opening the model answers.

Question 1

An author has two million followers and publishes three posts. Estimate feed-entry writes under pure fan-out on write, then describe a hybrid alternative.

Reveal model answer

At one entry per follower per post, six million feed-entry writes are created before other costs. A hybrid can avoid that pre-distribution for selected popular authors and merge their recent posts when readers ask. It trades lower write amplification for more read-time work and merging complexity.

Question 2

A user unfollows a private author while a fan-out job is delayed. What may the job still contain, and what must the feed read do before returning the post?

Reveal model answer

The delayed job may still carry an older follower list or an old feed-entry reference. The read must apply current visibility and ownership/permission rules before returning private content. Deletion and revocation policies must handle derived copies and media access; stale distribution does not grant permission.

Answers stay in this tab. Download before leaving. This practice is not graded or saved to your account.