Bird
Raised Fist0
HLDsystem_design~10 mins

Group messaging 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 identify the main component responsible for storing group messages.

HLD
The component that stores all group messages is called the [1].
Drag options to blanks, or click blank then click option'
AMessage Queue
BAPI Gateway
CDatabase
DLoad Balancer
Attempts:
3 left
💡 Hint
Common Mistakes
Confusing message queue with storage
Choosing load balancer as storage
2fill in blank
medium

Complete the code to specify the component that manages user connections in group messaging.

HLD
The [1] handles all active user connections and routes messages in real-time.
Drag options to blanks, or click blank then click option'
AWebSocket Server
BLoad Balancer
CCache
DDatabase
Attempts:
3 left
💡 Hint
Common Mistakes
Choosing database instead of connection manager
Confusing load balancer with connection handler
3fill in blank
hard

Fix the error in the component responsible for message delivery to all group members.

HLD
The [1] is responsible for broadcasting messages to all members in a group.
Drag options to blanks, or click blank then click option'
ADatabase
BMessage Broker
CAPI Gateway
DLoad Balancer
Attempts:
3 left
💡 Hint
Common Mistakes
Choosing database for message delivery
Confusing load balancer with message distributor
4fill in blank
hard

Fill both blanks to complete the description of the system's scalability components.

HLD
To handle many users, the system uses [1] to distribute traffic and [2] to cache frequent data.
Drag options to blanks, or click blank then click option'
ALoad Balancer
BDatabase
CCache
DAPI Gateway
Attempts:
3 left
💡 Hint
Common Mistakes
Mixing up cache and database roles
Confusing API gateway with load balancer
5fill in blank
hard

Fill all three blanks to complete the request flow in group messaging.

HLD
User sends message to [1], which forwards it to [2]; then [3] broadcasts it to group members.
Drag options to blanks, or click blank then click option'
AAPI Gateway
BMessage Broker
CWebSocket Server
DDatabase
Attempts:
3 left
💡 Hint
Common Mistakes
Swapping roles of message broker and WebSocket server
Choosing database as the broadcaster