Comparison
News Feed vs Notification Service: Two Kinds of Fan-out
By Ankur NayakReviewed
A news feed and a notification service both take one event and deliver it to many people, so interview answers for them often blur together. The difference is where the result ends up: a feed writes into timelines that users pull when they open the app, while a notification service pushes out through Apple, Google, email and SMS providers that you don't control.
Comparing them side by side makes the trade-offs sharper: what each one precomputes, what 'too many recipients' means for each, and how each survives a failure in the middle of a large send.
News Feed
Full designNotification Service
Full designSide by side
| Dimension | News Feed | Notification Service |
|---|---|---|
| Trigger | A user publishes a post | Any internal service calls the notification API |
| Fan-out target | Followers' cached timelines (post IDs in Redis lists) | Devices, inboxes and phone numbers, via APNs/FCM, email and SMS providers |
| Delivery model | Push into caches at write time, pull at read time (hybrid) | Queue per channel and priority, delivered by workers |
| 'Too many recipients' problem | Celebrities: skip fan-out, merge their posts at read time | Campaigns: rate-limited scheduler on a low-priority queue |
| Latency expectation | Feed loads in under 200 ms; new posts may arrive seconds late | Transactional sends in seconds; campaigns can take hours |
| Failure that matters most | Losing the timeline cache: fall back to slow fan-out on read | A third-party provider outage: retry with backoff, switch provider, or expire |
| User controls | Follow, mute, block | Per-channel preferences, quiet hours, unsubscribe |
Verdict
Both are fan-out problems solved with queues, but a feed optimises for cheap reads of precomputed results while a notification service optimises for reliable, prioritised delivery through systems it doesn't own. In an interview, say which one you are designing and spend your time on its hardest part: celebrities for feeds, provider failures and priority isolation for notifications.
Frequently asked questions
Can a notification service reuse the news feed's fan-out pipeline?
Partly: both read a recipient list and enqueue work per recipient. But notifications need per-user preferences, per-channel queues, provider-specific workers and delivery tracking, so they are usually a separate service that consumes the same events.
More comparisons
- Discord vs Slack: Two Ways to Build Real-Time Chat
- Netflix vs Uber: Streaming Bytes vs Real-time State
- Spanner vs DynamoDB: Global SQL or Predictable Key-Value
- Stripe vs Adyen: Two Ways to Never Lose a Payment
- WhatsApp vs Slack/Discord-style Chat: Architecture Compared
- YouTube vs Twitch: On-Demand Video vs Live Streaming