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

Producers/Consumers to support specific topics within a topology to access #352

Closed
jeqo opened this issue Oct 14, 2021 · 4 comments
Closed
Labels
enhancement New feature or request

Comments

@jeqo
Copy link
Contributor

jeqo commented Oct 14, 2021

Is your feature request related to a problem? Please describe.

Producers/Consumer:

    consumers:
      - principal: "User:App0"
      - principal: "User:App1"
    producers:
      - principal: "User:App3"
      - principal: "User:App4"

Get access to all the topics within a topology.

Describe the solution you'd like

Support defining specific topics, similar to Kafka Streams:

   consumers:
     - principal: "User:App0"
     - principal: "User:App1"
        topics:
          read:
            - "topicA"
            - "topicB"

    producers:
      - principal: "User:App3"
      - principal: "User:App4"
        topics:
          write:
            - "topicC"
            - "topicD"

Not sure if this is supported in any other way.

@jeqo jeqo added the enhancement New feature or request label Oct 14, 2021
@purbon
Copy link
Collaborator

purbon commented Oct 14, 2021

Hi @jeqo thanks for your proposal. this should be already possible using the #336 - custom roles feature. What do you think?

@jeqo
Copy link
Contributor Author

jeqo commented Oct 15, 2021

Oh, I love the idea of custom roles feature!

Though, I still see value on extending producer/consumer abstractions to have the ability to filter the roles they work with. It also align these two with how streams and connectors behave.

wdyt?

@akselh
Copy link
Contributor

akselh commented Oct 20, 2021

I guess you know that you can already define consumers and producers under a specific topic @jeqo? This will achieve pretty much the same thing, right?

@jeqo
Copy link
Contributor Author

jeqo commented Oct 22, 2021

Aha! I didn't know about this feature, thanks @akselh!

So this should be possible:

    topics:
      - name: bar
        consumers:
          - principal: "User:App0"
          - principal: "User:App1"
        producers:
          - principal: "User:App3"
          - principal: "User:App4"

That's it then. Will close the this.

One more reason to work on this issue: #358 ;-)

@jeqo jeqo closed this as completed Oct 22, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants