MQTT is the Pub / Sub protocol, the basis of which is from 1 to many messages, not from 1 to 1 (of many) that you describe. What you described will be more like a message queuing system, which is clearly different from Pub / Sub.
Mosquitto as a pure implementation of this protocol does not support delivery, as you describe it. One solution is a local queue in which the subscriber adds and then consumes incoming messages by the thread pool.
I really believe that the IBM Message Sight device may offer the type of message delivery you are looking for as an extension to a protocol called General Subscriptions , but it deviates from the pure MQTT specification.
source share