Caching · Multiple choice

A feed cache stores each user's feed as a list of post ids, and the posts themselves in a separate cache. Why split them?

medium

Options

Why

A popular post can be in millions of feeds. Copying whole posts would make every edit, like count or deletion a million-way write; with ids, the feed lists stay small and the post objects change once.

Review this in your daily deck All cards in Caching