A subscriber (also known as a consumer) is an application that creates a subscription to receive publications (or messages) from a desired topic.
There are two types of subscribers:
Insecure Subscriber . This type of subscriber application will receive publications from the message provider if the application is running. As soon as the application ends, the message provider deletes the subscription.
Durable Subscriber . This is the second type of application that receives publications while they work. When the application ends, the message provider will cache publications for the subscriber and deliver them when the application returns.
source share