spring-integration
spring-integration copied to clipboard
Investigate concurrency support for the MqttPahoMessageDrivenChannelAdapter
Affects Version(s): <Spring Integration version>
Does this open issue mean that the current implementation of MqttPahoMessageDrivenChannelAdapter is single threaded?
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.