Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Feature Request]: Topic array support for MqttIO.Read #32468

Open
2 of 17 tasks
SamLeurink opened this issue Sep 16, 2024 · 3 comments · May be fixed by #32881
Open
2 of 17 tasks

[Feature Request]: Topic array support for MqttIO.Read #32468

SamLeurink opened this issue Sep 16, 2024 · 3 comments · May be fixed by #32881

Comments

@SamLeurink
Copy link

What would you like to happen?

Currently MqttIO.ConnectionConfiguration only allows for a singular topic which in turn means that MqttIO.Read can only be done on one topic.

The use of topic arrays would, for me at least, greatly improve flexibility.

Issue Priority

Priority: 2 (default / most feature requests should be filed as P2)

Issue Components

  • Component: Python SDK
  • Component: Java SDK
  • Component: Go SDK
  • Component: Typescript SDK
  • Component: IO connector
  • Component: Beam YAML
  • Component: Beam examples
  • Component: Beam playground
  • Component: Beam katas
  • Component: Website
  • Component: Infrastructure
  • Component: Spark Runner
  • Component: Flink Runner
  • Component: Samza Runner
  • Component: Twister2 Runner
  • Component: Hazelcast Jet Runner
  • Component: Google Cloud Dataflow Runner
@twosom
Copy link
Contributor

twosom commented Oct 6, 2024

.take-issue

@twosom
Copy link
Contributor

twosom commented Oct 6, 2024

I think this feature is related to #32195

@twosom twosom linked a pull request Oct 20, 2024 that will close this issue
3 tasks
@twosom
Copy link
Contributor

twosom commented Oct 20, 2024

@SamLeurink
Hi,

I’ve added support for subscribing to multiple topics in MqttIO.read and MqttIO.readWithMetadata #32881.
Now you can configure multiple topics like this:

pipeline.apply(
    MqttIO.readWithMetadata()
        .withConnectionConfiguration(
            MqttIO.ConnectionConfiguration.create(
                "tcp://host:1883",
                "topic1",
                "topic2",
                "topic3"))
);

Let me know if you have any feedback!

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

Successfully merging a pull request may close this issue.

2 participants