April 2018
Intermediate to advanced
248 pages
5h 31m
English
When a client connects to the broker, it subscribes to certain topics on which it wants to receive messages from the broker. If the client disconnects from the broker, then on reconnect it has to subscribe to all the topics again, which can be a burden for resource-constrained clients. This can be overcome by using a persistent session, which saves all the relevant client-related information on the broker and in the case of reconnection it helps to retain all subscriptions of the client. A client session is stored with respect to clientId. The following information is stored in a session:
Read now
Unlock full access