Bird
Raised Fist0
HLDsystem_design~10 mins

News feed generation in HLD - Interactive Code Practice

Choose your learning style9 modes available
Practice - 5 Tasks
Answer the questions below
1fill in blank
easy

Complete the code to identify the main component responsible for storing user posts in a news feed system.

HLD
The component that stores all user posts is called the [1].
Drag options to blanks, or click blank then click option'
AFeed Generator
BNotification Service
CPost Database
DCache Layer
Attempts:
3 left
💡 Hint
Common Mistakes
Confusing the feed generator with the storage component.
Choosing cache layer which is temporary storage.
2fill in blank
medium

Complete the code to specify the process that combines posts from followed users to create a personalized feed.

HLD
The process that combines posts from followed users is called the [1].
Drag options to blanks, or click blank then click option'
APost Indexing
BFeed Aggregation
CUser Authentication
DContent Moderation
Attempts:
3 left
💡 Hint
Common Mistakes
Choosing post indexing which is about organizing posts.
Confusing with user authentication which is login related.
3fill in blank
hard

Fix the error in the description of the caching layer used to speed up feed retrieval.

HLD
The caching layer stores [1] copies of the news feed to reduce database load.
Drag options to blanks, or click blank then click option'
Atemporary
Bpermanent
Cencrypted
Darchived
Attempts:
3 left
💡 Hint
Common Mistakes
Choosing permanent which defeats the purpose of cache.
Confusing with encrypted or archived which are unrelated here.
4fill in blank
hard

Fill both blanks to complete the description of feed generation methods.

HLD
In [1] feed generation, posts are combined in real-time, while in [2] feed generation, feeds are precomputed and stored.
Drag options to blanks, or click blank then click option'
APull-based
BPush-based
CBatch
DStream
Attempts:
3 left
💡 Hint
Common Mistakes
Mixing batch and stream which are data processing terms.
Confusing push and pull methods.
5fill in blank
hard

Fill all three blanks to complete the description of components in a scalable news feed system.

HLD
The [1] handles user requests, the [2] stores posts, and the [3] speeds up feed retrieval by caching.
Drag options to blanks, or click blank then click option'
AAPI Gateway
BPost Database
CCache Layer
DLoad Balancer
Attempts:
3 left
💡 Hint
Common Mistakes
Confusing Load Balancer with API Gateway.
Mixing up Cache Layer and Post Database roles.