Bird
0
0
LLDsystem_design~20 mins

Notification system in LLD - Practice Problems & Coding Challenges

Choose your learning style9 modes available
Challenge - 5 Problems
🎖️
Notification System Master
Get all challenges correct to earn this badge!
Test your skills under time pressure!
Architecture
intermediate
2:00remaining
Design components for a scalable notification system

You need to design a notification system that can send alerts via email, SMS, and push notifications. Which component is essential to handle different notification types efficiently?

AA client-side script that sends notifications directly to users
BA single database table storing all notification logs without separation
CA unified notification dispatcher that routes messages to specific channels
DA monolithic service that sends all notifications synchronously
Attempts:
2 left
💡 Hint

Think about how to separate concerns for different notification channels.

scaling
intermediate
2:00remaining
Estimating capacity for peak notification loads

Your notification system must handle 10,000 notifications per second during peak hours. What is the best approach to estimate the required throughput capacity?

AIgnore peak loads and design for average daily notifications
BUse the total number of users multiplied by 10 without considering delivery time
CEstimate capacity by the number of developers working on the system
DCalculate based on average notification size, delivery latency, and concurrency limits of each channel
Attempts:
2 left
💡 Hint

Consider factors that affect how many notifications can be sent per second.

tradeoff
advanced
2:00remaining
Choosing between push and pull notification models

Which tradeoff is true when choosing a push-based notification system over a pull-based one?

APull delivers notifications instantly without server overhead
BPush reduces client polling but requires maintaining persistent connections, increasing server resource use
CPush requires clients to poll frequently, increasing network traffic
DPull requires servers to push messages directly to clients
Attempts:
2 left
💡 Hint

Think about how push and pull models handle message delivery and resource usage.

🧠 Conceptual
advanced
2:00remaining
Ensuring message delivery guarantees in notification systems

Which mechanism best ensures 'at least once' delivery guarantee for notifications?

AUse message queues with acknowledgments and retries on failure
BSend notifications without tracking delivery status
CDeliver notifications only once without retries
DUse fire-and-forget messaging without persistence
Attempts:
2 left
💡 Hint

Consider how to handle failures and retries to avoid lost messages.

component
expert
2:00remaining
Designing a notification throttling mechanism

You want to prevent users from receiving more than 5 notifications per minute. Which component design best enforces this throttling?

AA rate limiter that tracks notification counts per user and blocks excess sends
BA database trigger that deletes notifications after 5 per minute
CA client-side script that ignores notifications after 5 per minute
DA logging service that records notifications without blocking
Attempts:
2 left
💡 Hint

Think about where and how to enforce limits to control notification flow.