0
0
LLDsystem_design~20 mins

Notification on state change in LLD - Practice Problems & Coding Challenges

Choose your learning style9 modes available
Challenge - 5 Problems
🎖️
State Change Notification Master
Get all challenges correct to earn this badge!
Test your skills under time pressure!
🧠 Conceptual
intermediate
1:30remaining
Understanding Observer Pattern for State Change Notification

Which design pattern is best suited to notify multiple components when an object's state changes?

AObserver pattern
BSingleton pattern
CFactory pattern
DDecorator pattern
Attempts:
2 left
💡 Hint

Think about a pattern where one object informs many others about changes.

Architecture
intermediate
2:00remaining
Choosing Components for State Change Notification System

In a system where multiple services need to be notified of a state change in a central component, which architecture component is best to decouple the sender and receivers?

ADirect synchronous API calls
BMessage broker (e.g., Kafka, RabbitMQ)
CShared database polling
DMonolithic service with internal callbacks
Attempts:
2 left
💡 Hint

Look for a component that enables asynchronous communication and loose coupling.

scaling
advanced
2:30remaining
Scaling Notification Delivery for High Volume State Changes

Your system must notify thousands of clients instantly when a state changes. Which approach best ensures scalability and low latency?

AStore notifications in a database and let clients query on demand
BUse a polling mechanism where clients frequently check the state
CUse a push-based pub/sub system with partitioned topics and consumer groups
DSend individual HTTP requests to each client synchronously
Attempts:
2 left
💡 Hint

Consider how to handle many clients efficiently without overloading the server.

tradeoff
advanced
2:00remaining
Tradeoffs Between Synchronous and Asynchronous Notifications

What is a key tradeoff when choosing synchronous notifications over asynchronous notifications for state changes?

ASynchronous notifications provide immediate feedback but reduce system availability under load
BAsynchronous notifications guarantee delivery order but increase coupling
CSynchronous notifications improve scalability but increase message delay
DAsynchronous notifications require clients to block until notification arrives
Attempts:
2 left
💡 Hint

Think about system responsiveness and reliability under heavy load.

component
expert
3:00remaining
Designing a Reliable Notification System with Exactly-Once Delivery

Which component or technique is essential to ensure exactly-once delivery of notifications on state change in a distributed system?

ARelying on client-side retries without server tracking
BSimple fire-and-forget message sending without acknowledgments
CUsing UDP protocol for faster message delivery
DIdempotent message processing combined with unique message IDs and persistent storage
Attempts:
2 left
💡 Hint

Consider how to avoid duplicate processing despite retries or failures.