R-Pi
Team Emertxe
IoT Communication Models
Model-1: Request - Response
Communication Models
Model-1: Request - Response
The client sends requests to the server and the server responds to the requests.
When the server receives a request, it decides
how to respond,
fetches the data,
retrieves resource representation,
prepares the response, and
then sends the response to the client.
stateless communication model.
Each request-response pair is independent of others.
Example:
HTTP works as a request-response protocol between a client and server.
A web browser may be the client, and an application on a computer that hosts a web site may be the server.
Communication Models
Model-1: Request - Response
Examples
CoAP
XMPP
Communication Models
Model-1: Request - Response
Communication Models
Model-2: Publish-Subscribe Model
Involves publishers, brokers and consumers.
Publishers are the source of data.
Publishers send the data to the topics which are managed by the broker.
Publishers are not aware of the consumers.
Consumers subscribe to the topics which are managed by the broker.
When the broker receive data for a topic from the publisher, it sends the data to all the subscribed consumers.
Communication Models
Model-2: Publish-Subscribe Model
Communication Models
Model-3: Push-Pull Model
The data producers push the data to queues and the consumers Pull the data from the Queues.
Producers do not need to be aware of the consumers.
Queues help in decoupling the messaging between the Producers and Consumers.
Queues also act as a buffer,
which helps in situations when there is a mismatch between the rate at which the producers push data and the
rate rate at which the consumer pull data.
Communication Models
Model-3: Push-Pull Model
Communication Models
Model-4: Exclusive Pair Model
Exclusive Pair is a
bidirectional
fully duplex that uses a persistent connection between the client and server.
Connection is setup it remains open until the client sends a request to close the connection.
Client and server can send messages to each other after connection setup.
Stateful communication model and the server is aware of all the open connections.
Communication Models
Model-4: Exclusive Pair Model
THANK YOU