Design the Activity Feed Behind the Teams Notification Bell
Last updated: November 29, 2026
Quick Overview
Design the per-user activity feed in Microsoft Teams that collects mentions, replies, reactions and missed calls from every chat, channel and app, and shows them in order with unread counts.
Microsoft
November 29, 20260
0
0 solved
Design the per-user activity feed in Microsoft Teams that collects mentions, replies, reactions and missed calls from every chat, channel and app, and shows them in order with unread counts.
Teams onsite loops often use a familiar surface like the Activity tab so the candidate can focus on fan-out and read models instead of explaining the product. The interviewer checks whether you separate the source-of-truth message store from a per-user materialized feed and handle unread state correctly across devices.
What the Interviewer Expects
- Separates event producers (chat, channels, apps) from the feed service through an event bus
- Chooses fan-out on write for personal events with a clear argument why
- Models unread counts and read markers so they converge across desktop, web and mobile
- Handles large channels where an @channel mention touches tens of thousands of users
- Keeps the feed bounded with retention and pagination
Key Topics to Cover
How to Approach This
- Start by clarifying functional and non-functional requirements with the interviewer.
- Estimate the scale: QPS, storage, bandwidth. This drives your design decisions.
- Draw a high-level architecture first, then deep dive into 1-2 critical components.
- Discuss trade-offs explicitly (e.g., consistency vs availability, SQL vs NoSQL).
- Address failure scenarios, monitoring, and how the system handles 10x traffic spikes.
Possible Follow-up Questions
- How do you handle an @team mention in a team with 100,000 members?
- How do unread counts stay correct if a user reads an item on mobile while desktop is offline?
- How would you let third-party Teams apps post activity without letting them spam users?
Sharpen Your Skills on Codemia
Practice similar problems with our interactive workspace, get AI feedback, and track your progress.
Practice System Design ProblemsSample Answer
Requirements
Functional: every user sees a reverse-chronological list of activity items (mention, reply to my message, reaction, missed call, app card). Items deep-link to the source. Show an unread badge coun...
High-Level Design
- Chat, channel, calling and app platform services publish domain events (
MessagePosted,ReactionAdded,CallMissed) to a partitioned event bus. - An activity generator consumes them and de...