You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Investigate concurrency support for the MqttPahoMessageDrivenChannelAdapter #2720
The underlying Paho Client is single-threaded.
It does have two loops:
CommsReceiver.run() to read data from the MqttInputStream - mostly messages for the subscibed topics.
CommsCallback.run() to deliver those messages from an in-memory queue to the subscribed listeners in the application.
So, generally speaking: we always get delivery for all the topic we have subscribed in a single thread.
That's technically a point of this issue: to be able to distribute topics subscription between concurrency configured.
Activity
luisfranciscob commentedon Nov 11, 2021
Does this open issue mean that the current implementation of MqttPahoMessageDrivenChannelAdapter is single threaded?
artembilan commentedon Nov 11, 2021
The underlying Paho Client is single-threaded.
It does have two loops:
CommsReceiver.run()to read data from theMqttInputStream- mostly messages for the subscibed topics.CommsCallback.run()to deliver those messages from an in-memory queue to the subscribed listeners in the application.So, generally speaking: we always get delivery for all the topic we have subscribed in a single thread.
That's technically a point of this issue: to be able to distribute topics subscription between concurrency configured.