Skip to content

Investigate concurrency support for the MqttPahoMessageDrivenChannelAdapter #2720

Open

Description

@artembilan

Affects Version(s): <Spring Integration version>


Activity

  1. added
    status: waiting-for-triage
    on Jan 25, 2019
  2. added this to the Backlog milestone on Feb 8, 2019
  3. luisfranciscob commented on Nov 11, 2021

    @luisfranciscob

    Does this open issue mean that the current implementation of MqttPahoMessageDrivenChannelAdapter is single threaded?

  4. artembilan commented on Nov 11, 2021

    @artembilan
    MemberAuthor

    The underlying Paho Client is single-threaded.
    It does have two loops:

    1. CommsReceiver.run() to read data from the MqttInputStream - mostly messages for the subscibed topics.
    2. 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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    in: mqttstatus: waiting-for-triagetype: enhancement

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions