Complete the code to identify the main component that acts as a middleman in the publish-subscribe model.
In the publish-subscribe model, the [1] is responsible for receiving messages from publishers and forwarding them to subscribers.
The broker acts as the middleman in the publish-subscribe model, managing message distribution between publishers and subscribers.
Complete the sentence to describe the communication style of the client-server model.
In the client-server model, communication is typically [1], where clients request and servers respond.
The client-server model usually uses synchronous communication, where clients send requests and wait for server responses.
Fix the error in the statement about message delivery in publish-subscribe.
In publish-subscribe, messages are sent directly from publishers to subscribers without any [1].
This statement is incorrect because in publish-subscribe, messages go through a broker, which manages delivery.
Fill both blanks to complete the description of client-server and publish-subscribe models.
In the client-server model, clients [1] requests to a server, while in publish-subscribe, publishers send messages to a [2].
Clients send requests to servers in client-server. Publishers send messages to a broker in publish-subscribe.
Fill all three blanks to complete the code snippet describing message flow in publish-subscribe.
Messages are published by [1], sent to the [2], and then delivered to [3] who subscribed to the topic.
Publishers send messages to the broker, which then delivers them to subscribers.