Bird
Raised Fist0
HLDsystem_design~20 mins

Fan-out on write vs fan-out on read in HLD - Practice Questions

Choose your learning style9 modes available
Challenge - 5 Problems
🎖️
Fan-out Mastery
Get all challenges correct to earn this badge!
Test your skills under time pressure!
🧠 Conceptual
intermediate
2:00remaining
Understanding Fan-out on Write

In a social media system, when a user posts a new update, the system immediately copies this update to all followers' timelines. What is this approach called?

AFan-out on read
BFan-out on write
CLazy loading
DBatch processing
Attempts:
2 left
💡 Hint

Think about when the copying happens: at write time or read time?

🧠 Conceptual
intermediate
2:00remaining
Understanding Fan-out on Read

In a news feed system, when a user opens their feed, the system fetches the latest posts from all the people they follow at that moment. What is this approach called?

AFan-out on write
BData sharding
CPre-computation
DFan-out on read
Attempts:
2 left
💡 Hint

Consider when the system gathers data: during reading or writing?

tradeoff
advanced
2:30remaining
Trade-offs Between Fan-out on Write and Fan-out on Read

Which of the following is a true trade-off when choosing fan-out on write over fan-out on read in a large-scale social network?

AFan-out on write reduces write latency but increases read latency.
BFan-out on write decreases storage costs but increases read latency.
CFan-out on write increases storage costs but reduces read latency.
DFan-out on write reduces both storage and read latency.
Attempts:
2 left
💡 Hint

Think about when data is duplicated and how it affects storage and reading speed.

Architecture
advanced
3:00remaining
Choosing Fan-out Strategy for a High-Traffic Messaging App

You are designing a messaging app where users can have thousands of contacts. Which fan-out strategy is better to handle message delivery efficiently and why?

AFan-out on read, because messages are fetched from the sender's storage when a contact opens the chat, saving storage space.
BFan-out on write, because it reduces storage by not duplicating messages.
CFan-out on write, because messages are copied to all contacts immediately to ensure fast reads.
DFan-out on read, because it duplicates messages to all contacts at read time.
Attempts:
2 left
💡 Hint

Consider the number of contacts and storage implications for immediate copying.

scaling
expert
3:00remaining
Estimating Storage Impact of Fan-out on Write

A social network has 10 million users. Each user has on average 500 followers. If each user posts 2 updates per day, estimate how many total timeline entries are created daily using fan-out on write.

A10 million * 2 * 500 = 10 billion timeline entries
B10 million * 500 = 5 billion timeline entries
C10 million * 2 = 20 million timeline entries
D10 million * 2 / 500 = 40,000 timeline entries
Attempts:
2 left
💡 Hint

Multiply users, posts per user, and followers per user to find total timeline entries.