notexOPENOverview
Notex/Systems/Cache architecture
11.10LESSON 10 OF 11 · 1 MIN READ

Cache architecture

Always free to read
SECTION VIDEOCache architecture

Video coming soon. Start with the reading below.

COMING SOON

Cache is extremely important for a news feed system. We divide the cache tier into 5 layers as shown in Figure 11-8.

Design a news feed system — original diagram 144
  • News Feed: It stores IDs of news feeds.
  • Content: It stores every post data. Popular content is stored in hot cache.
  • Social Graph: It stores user relationship data.
  • Action: It stores info about whether a user liked a post, replied a post, or took other actions on a post.
  • Counters: It stores counters for like, reply, follower, following, etc.
Progress is saved on this device.
KEEP EXPLORING

One note leads to another.

Back to the library →
⌕
Search across the entire library ⌘ K