Bird
Raised Fist0
HLDsystem_design~10 mins

Real-time features in HLD - Interactive Code Practice

Choose your learning style9 modes available
Practice - 5 Tasks
Answer the questions below
1fill in blank
easy

Complete the code to choose the main protocol used for real-time communication.

HLD
The system uses [1] protocol to enable real-time data exchange between clients and servers.
Drag options to blanks, or click blank then click option'
AWebSocket
BHTTP
CFTP
DSMTP
Attempts:
3 left
💡 Hint
Common Mistakes
Choosing HTTP which is request-response only.
Confusing FTP or SMTP with real-time protocols.
2fill in blank
medium

Complete the code to select the component responsible for broadcasting messages to multiple clients.

HLD
In the architecture, the [1] handles sending real-time updates to all connected users simultaneously.
Drag options to blanks, or click blank then click option'
ALoad Balancer
BDatabase
CMessage Broker
DAPI Gateway
Attempts:
3 left
💡 Hint
Common Mistakes
Confusing Load Balancer with message distribution.
Thinking API Gateway handles message broadcasting.
3fill in blank
hard

Fix the error in the code to ensure the system supports horizontal scaling of real-time connections.

HLD
To scale real-time connections, the system uses [1] to share session state across servers.
Drag options to blanks, or click blank then click option'
ADistributed Cache
BSticky Sessions
CLocal Cache
DSingle Server
Attempts:
3 left
💡 Hint
Common Mistakes
Using sticky sessions which reduce scalability.
Relying on local cache causing inconsistent state.
4fill in blank
hard

Fill both blanks to complete the real-time message flow code snippet.

HLD
Client sends a message via [1] to the server, which then publishes it to the [2] for distribution.
Drag options to blanks, or click blank then click option'
AWebSocket
BHTTP
CMessage Broker
DDatabase
Attempts:
3 left
💡 Hint
Common Mistakes
Using HTTP instead of WebSocket for real-time sending.
Choosing Database instead of Message Broker for distribution.
5fill in blank
hard

Fill all three blanks to complete the code for a scalable real-time notification system.

HLD
Notifications are sent from [1] to [2] using [3] to ensure low latency and high throughput.
Drag options to blanks, or click blank then click option'
AClient
BMessage Broker
CWebSocket
DDatabase
Attempts:
3 left
💡 Hint
Common Mistakes
Using Database as the message distributor.
Confusing WebSocket as the sender instead of the delivery protocol.